TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am fairly used to TikZ/pdfLaTeX. Only recently I have started using ConTeXt. I like context because of consistency of style in macros. TikZ support is also available in ConTeXt. I stand to gain from ConTeXt. I was wondering if there is something one looses by abandoning pdfLaTeX for ConTeXt? Mostly I have following in mind:

  • For journal submission, can I reuse LaTeX style file with ConTeXt?
  • Are some packages which are very useful (algorithm2e, pgfplots, xstring, beamer and others, I may not be aware of them) not portable to ConTeXt?

In short, I am wondering, despite the benefits of ConTeXt, will there be limitations with ConTeXt especially when a large ecosystem of LaTeX packages is available?

share|improve this question
4  
Point to think about: Are you submitting a camera-ready pdf to the journal? If not, they (most likely) won't be happy with ConTeXt. – Johannes_B Mar 27 at 12:12
3  
You might want to specify your general subject area (as package-equivalent code in ConTeXt is not a 'flat surface'). – Joseph Wright Mar 27 at 12:15
3  
most journals do not support context at all. It is best to assume that most latex packages are not portable to context, it may be (must be really) possible to write similar functionality for context but it may be better to start from scratch to write context code rather than try to port the latex version. – David Carlisle Mar 27 at 13:49
    
You'll not be able to use tex4ht with context. tex4ht needs latex. – Nasser Mar 31 at 18:38

It depends on the type of documents that you generate. Most (rather almost all) LaTeX packages do not work with ConTeXt. This is not as scary as it sounds, though; because it is relative easy to get the functionality of most packages by writing a few lines of code in ConTeXt.

Types of documents

  1. Journal articles (if they require a LaTeX file): You will have to provide a LaTeX file. If they require camera ready copy, you can submit ConTeXt generated pdfs.

  2. Conference articles. Most conference require camera ready PDFs, so in principle you can submit ConTeXt generated PDFs. However, as one often reuses the content from a conference paper to a journal paper, it is easier to LaTeX for both (given that you have to use LaTeX for journal submissions).

  3. Presentations. There is no inherent advantage of either LaTeX or ConTeXt. With LaTeX, you get some very well thought of presentation classes (beamer, powerdot, ...); with ConTeXt, there are some modules that provide a basic functionality, but for the most part you are on your own. But that is a good thing!

    What I realized after using ConTeXt for a while is that presentations are just simple documents written on a 3:4 paper. And you can easily write your own style. (I wrote a tutorial on how to create a basic presentation style in 40 commits).

    With LaTeX, it is easy to create your first presentation. But as you start making more presentations and want to tweak the style to your personal tastes, things get tricky. Customizing the look and feel is much easier in ConTeXt.

    The same remarks hold for posters, but I haven't created any posters, so I cannot give more details.

  4. Letters. Both LaTeX and ConTeXt provide style files for letters. Personally, I find it much easier to write my own style file (in ConTeXt) than to read the documentation of existing styles and tweak them to my liking. Letters are really simple document. The only tricky part is placing the address-like elements at specific locations on a page. Doing that is really simple in ConTeXt (using layers).

  5. CVs. There are various LaTeX packages for CVs but not any that I know of for ConTeXt. But again, CVs are relatively simple documents and it is straight forward to create your own style in ConTeXt.

I have been using ConTeXt for over 10 years. I now typically write my journal and conference papers in LaTeX, and write presentations, lecture notes, assignments, CV, letters, one off documents in ConTeXt.

Packages

Most LaTeX packages do not work in ConTeXt, but often similar functionality is available by other means.

  1. Tikz, pgfplots, and circuitikz work in ConTeXt.
  2. There is a module similar to algorithm2e, but I haven't used both (the LaTeX or the ConTeXt version) to know how they compare in terms of features.
  3. xstring: There are few basic string manipulation macros in ConTeXt, but for anything sophisticated, it is much simpler to use Lua.

Documentation

ConTeXt documentation is sparser than LaTeX documentation. Having said that, the documentation is still extensive (probably around 1000 pages of different manuals, compared to around 50,000-100,000 pages for LaTeX). Personally, I prefer the personal writing style of ConTeXt manuals compared to the more academic writing style of LaTeX manuals. But, I know, that some people really dislike the writing style of ConTeXt manuals.

Summary

You don't have to make a permanent choice between either LaTeX or ConTeXt. Use both. If you are already proficient in LaTeX, start using ConTeXt for documents where you don't have to share the source file with others (presentations, letters, CVs).

Functionality wise, both are comparable. But the user experience that you get from the two macro packages is very different. Which one you'll end up liking depends a bit on your personal taste. Neither is universally better than the other.

share|improve this answer

When I have tried to get into ConTeXt, what I miss, or maybe its just under-documented, is how to write something like a document class. I have several finely-tuned classes for letters, memos, legal documents of various sorts that makes composing them in LaTeX a breeze.

ConTeXt, at least from the part of the tutorials I have read, appears to be a system for ad-hoc formatting, exactly the reason I don't like word processors such as Word.

I want to like ConTeXt, but this issue has always tripped me up when I have looked into in.

share|improve this answer
1  
Welcome to TeX.sx – touhami Mar 27 at 14:09
5  
ConTeXt is similar in spirit to plain TeX. You write your own style file. Ad-hoc formatting is frowned up on, as with LaTeX – Aditya Mar 27 at 14:46
    
But is there a good tutorial or other document on how to go about writing your own style file or document class? Something like the appendicies to The LaTeX Companion? That's what I've missed. – Daniel Doherty Apr 1 at 16:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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