# When does it make sense to use TeX only and skip LaTeX?

In what applications doesn't LaTeX give you much?

-

If you have a simple document, with precise layout requirements, then TeX can be a more direct solution, because there are fewer things to 'turn off'. The convenient features of LaTeX -- the ones that make it massively more useful than TeX in most cases -- are implemented via sometimes rather arcane logic, which can get in the way of your desire for a box to go here, dammit!

For example, I remember once producing a set of auto-numbered tickets, eight to a sheet, for some event. They had (if I do say so myself) a rather elegantly sparse design. Using TeX probably wasn't the wisest technology choice for that, but doing it in LaTeX would have resulted in rather more hair being torn out.

On another occasion, I wanted to produce a short booklet of simple texts (that is, no maths, tables, figures, and so on). I had a very clear idea of my intended layout, and it wasn't planned to be generalisable. I got exactly what I wanted, reasonably quickly and unhackily, using XeTeX, in combination with some nice platform fonts.

-
Why was TeX probably not the wisest choice for the tickets? You think you should have used hand-coded PostScript, or what? –  SamB Dec 17 '10 at 23:05
Well, converting numbers to words in TeX (ie, 48 -> 'forty eight') probably comes more naturally under the heading of 'entertainingly perverse' rather than 'efficient'. Come to think of it, that's the column where hand-coded postscript almost lives, but that was an alternative I didn't consider at the time. –  Norman Gray Dec 19 '10 at 14:39

TeX is also useful if you are generating code. To compile a piece of TeX, you don't need to have all these preamble stuff. You can simply have `\$x^2\$ \bye` and it will compile.

-
It Works indeed! –  Łukasz Lew Jul 27 '10 at 11:08
@Quadrescence Could you be more specific? –  Lover of Structure Feb 10 '13 at 11:04

The great advantage of LaTeX(2e) over TeX is that content and formatting are well separated. This allows for logical markup, which improves the organisation of the document and allows you to make global changes to the "look" without affecting the content.

Hence if you want to exert total typographical control over the document, go for TeX, but if the document is in any way structurally complex, go for LaTeX.

-

Usually you want to use TeX directly when you don't want the typographic settings been done as it is done by LaTeX. If you want to use direct control of the kerning etc., you probably better off using directly TeX.

-

It's worth remebering that almost anything in TeX will be valid in LaTeX as well, so you can always do most of heavy lifting in LaTeX, and then use TeX to tweak things.

Also, I use the TeX `\$` for in-line math rather than than LaTeX `\(` and `\)`.

-
That's a good point, but not totally true. LaTeX is not a superset of plain TeX. For example, the `\line` macros in TeX and LaTeX have quite different purposes. –  TH. Jan 6 '11 at 16:53
I edited your answer slightly to change `\[` and `\]` to `\(` and `\)` which are the LaTeX macros for inline math. `\[` and `\]` are for display math. –  TH. Jan 6 '11 at 16:54
`\$` and `\[...\]` are far diffrent. I suppose you mean `\(...\)` –  Herbert Jan 6 '11 at 16:55
@herbert : yes, I meant the latter - my was brain in wrong gear. @TH : I didn't know it wasn't a superset - thanks for that! –  Tom W Jan 6 '11 at 18:29
Isn't `\$...\$` valid LaTeX, too? As far as I know, only `\$\$...\$\$` is deprecated and should be avoided. –  Federico Poloni Feb 10 '13 at 13:34