Bug 14650

Summary: add text/x-latex and text/x-context
Product: shared-mime-info Reporter: Matija “hook” Šuklje <matija>
Component: freedesktop.org.xmlAssignee: Shared Mime Info group <shared_mime_info>
Status: RESOLVED MOVED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: An example ConTeXt file
An example LaTeX file

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.