5

I'm trying to make a simple Hello, World example for ConTeXt. The file itself works, but I can't manage to instruct arara to compile it with texexec.

% arara: context
\starttext
Hello, World!
\stoptext

Neither of the rules context or texexec exist in the search path, but I can't imagine there is no rule for ConTeXt. (The absence of one though will make for a nice arara-'Hello World'.)

  • AFAIK there is no context rule. But it's not too hard to write one... it added one to my personal rules a few weeks ago – clemens Feb 20 '14 at 18:14
  • looking in /usr/local/texlive/2013/texmf-dist/scripts/arara/rules, it doesn't appear that one exists. If you (or whoever) make(s) it, you should submit a pull request to the project on github. Constructing a simple rule should be straight forward enough- I would do it, but I don't know any of the options that it would need – cmhughes Feb 22 '14 at 4:54
  • 2
    What is the advantage of having an arara rule for context? Unlike LaTeX, context is a wrapper around a lua script that runs the context format as many times as need. The context script runs bibtex as well. Index sorting, etc are handled natively by the script. – Aditya Feb 27 '14 at 1:31
  • @Aditya Not too familiar with ConTeXt—definitely didn't know that! I think the proper answer to this question is pretty apparent at this point. Since you have a reason as to why it's unnecessary, would you mind posting this as an answer? :) – Sean Allred Feb 27 '14 at 3:32
  • @SeanAllred: Done – Aditya Feb 27 '14 at 17:20
8

LaTeX compiation tools such arara, latexmk, rubber, etc are not needed for ConTeXt.

In LaTeX, the basic commands such as latex, pdflatex, luatatex just run the underlying TeX engine with LaTeX format pre-loaded. Features such as bibliography, index, glossary, etc are handled by external tools, and it is the responsibility of the user to run these tools. Furthermore, it is up to the user to run LaTeX appropriate number of times to get the cross-references etc right.

In contrast, in ConTeXt the basic commands context and texexec are wrappers around scripts written in lua and ruby respectively that take care of everything. Sorting of indexes and glossaries are handled the ConTeXt format, and the wrapper scripts run bibtex if needed and also compile the file as many times as needed.

Coming back to the question at hand, there is no need for a context rule for arara.

  • /asking as someone who doesn't know much about ConTeXt/ but context does have options, doesn't it? or does a user only ever need to run context myfile without any other options? if it does take options, then it seems like an arara rule may well be appropriate – cmhughes Feb 28 '14 at 23:19
  • You can specify context options in the tex file anyways. I'll update my answer when I am on a computer – Aditya Mar 1 '14 at 16:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.