Bug 14650 - add text/x-latex and text/x-context
Summary: add text/x-latex and text/x-context
Status: RESOLVED MOVED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-24 08:38 UTC by Matija “hook” Šuklje
Modified: 2018-10-13 10:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
An example ConTeXt file (3.62 KB, text/x-tex)
2008-08-30 13:58 UTC, Matija “hook” Šuklje
Details
An example LaTeX file (866 bytes, text/x-tex)
2008-08-30 14:00 UTC, Matija “hook” Šuklje
Details

Description Matija “hook” Šuklje 2008-02-24 08:38:47 UTC
Apart from pure TeX there are two big macro languages for TeX:
* LaTeX (more known, wide userbase, badly maintained)
* ConTeXt (less known, smaller but fast growing userbase, very actively maintained and extensible)

Since to most advances editors it is not the same which is which (because of different syntax highlighting, autocompletion etc.), I suggest that a mime type should be added to differentiate these two from plain TeX.

The most notable difference are the environments (given example is how the document text is handled, but same applies to all the other environments):
* e.g. in LaTeX: \begin{document} ... \end{document}
* e.g. in ConTeXt: \starttext ... \stopttext

Another example. This time of a user-specified environment:
* in LaTeX: \begin{my_env} ... \end{my_env}
* in ConTeXt: \startmy_env \stopmy_env
Comment 1 Bastien Nocera 2008-06-11 09:48:53 UTC
Could you please provide an example file for it?
Comment 2 Matija “hook” Šuklje 2008-08-30 13:58:15 UTC
Created attachment 18594 [details]
An example ConTeXt file

This is an example ConTeXt file taken from:
http://wiki.contextgarden.net/Hello_world
Comment 3 Matija “hook” Šuklje 2008-08-30 14:00:59 UTC
Created attachment 18595 [details]
An example LaTeX file

Example LaTeX file taken from:
http://en.wikipedia.org/wiki/LaTeX
Comment 4 Bastien Nocera 2011-05-25 06:54:22 UTC
Please follow the instructions at:
http://cgit.freedesktop.org/xdg/shared-mime-info/tree/HACKING#n31
for mime-type additions.
Comment 5 GitLab Migration User 2018-10-13 10:41:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/91.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.