3 ms·
I always see this claim that latex separates content from presentation, but I don't see how it's true. As the article says, \emph{hello} is implemented in terms
by lmm 12y ago
I always see this claim that latex separates content from presentation, but I don't see how it's true. As the article says, \emph{hello} is implemented in terms of font commands; it entangles the semantics (emphasis) and the presentation (italicisation), and there is no way to extract the semantics of a latex document and render it in a different format the way you can with e.g. Markdown.
- tincholio 12y ago\emph does not always render as italics, it actually depends on the document class you're using, and you're free to redefine it as you see fit. It just indicates that the argument should be emphasized, not how.
- lottin 12y agoBad example, because \emph means emphasis, not italics, and you can represent the emphasis in any way you want — the italics is just the default. So there is separation of format and content. Though it's true that it's not enforced.