Linked Questions
12 questions linked to/from Does TeX/LaTeX give a headstart with other programming languages?
211 votes
10 answers
30k views
Why is LaTeX so complicated? [closed]
I have been using LaTeX professionally almost every day for almost 10 years, so I think I can say that, by now, I more or less know what I'm doing. I also do a lot of ordinary computer programming, in ...
156 votes
6 answers
14k views
LaTeX3 versus pure Lua
Reading this site for the last nearly two years I've learned a lot about LaTeX3 (which I had previously understood to be a defunct pipe dream) and LuaTeX (of which I was previously totally unaware). ...
45 votes
8 answers
6k views
List of TeX formats
LaTeX, ConTeXt and plain are the most well known TeX formats/macro packages. But there are others, such as Lollipop. What others are out there and are any in use these days anymore?
42 votes
4 answers
6k views
Why are there so many underscores in LaTeX3 commands?
This question springs from a comment of mine and the subsequent discussion in chat. I don't know anything about TeX, but I can easily understand a command like: \let\oldmacro\somemacro whereas \...
83 votes
3 answers
4k views
Why isn't everything expandable?
TeX's macro processor does its work in a process called expansion. For an input stream of tokens, the macro processor repeatedly expands them until non-expandable tokens remain. The resulting stream ...
49 votes
5 answers
6k views
What do \@firstoftwo and \@secondoftwo do?
The LaTeX kernel uses these two all over the place. For example, apparently the correct way of defining something like \ifeq{\macro 1}{\macro 2}{true}{false} is (note Martin's response: each case ...
52 votes
5 answers
3k views
TeX macro idioms, or: understanding advanced macros
I often find that when I look at solutions from the experts here, the macro definitions are completely inscrutable to me. Trying to use standard techniques one would use to understand code in most ...
26 votes
6 answers
3k views
Why does TeX remove braces around delimited arguments?
On pp. 203–204 of the TeXbook, Knuth describes how TeX absorbs macros' arguments: delimited go until the first appearance of the delimiter, and undelimited go until the next token, in both cases ...
37 votes
3 answers
2k views
A LaTeX course for intermediate users stuck on the learning curve
Background: This question is aimed primarily at those of us who have been using LaTeX for quite some time but feel like they do not have a very "principled understanding" of it even though ...
20 votes
4 answers
1k views
Can I use an easy programming language with XeTeX?
TeX is frustrating me. It has only the basics - and even then, I have to search how to divide two numbers. The question is this: can I write my macros in more convenient language like Ruby or Lisp? ...
20 votes
2 answers
2k views
Macros in LaTeX and in programming languages
There is a fairly widespread consensus that macros are a bad idea in most programming languages. (For example, cf. http://scienceblogs.com/goodmath/2007/12/17/macros-why-theyre-evil/ .) That said, I ...
3 votes
1 answer
257 views
Coding non-trivial algorithms within TeX
This is kind of a hard question to formulate correctly, so forgive me if I have to clarify this question later. I want to draw a lot of somewhat complex TikZ diagrams, which to be done effectively ...