Examples from The LaTeX Companion book (3rd edition)

42 teleforce 8 9/12/2025, 8:52:53 AM ctan.org ↗

Comments (8)

bobajeff · 22m ago
This[1] is what I use. So far haven't needed anything that's not supported by Katex. and Pandoc doesn't seem to have any problem with converting my stuff to Latex.

The only real problems I ever ran into were due to markdown (errors?) that vscode preview ignores but pandoc trips over. Mostly having to do with not leaving blank lines between different Markdown elements.

[1]: https://katex.org/docs/supported.html

gucci-on-fleek · 9m ago
KaTeX and MathJax aren't really the same as (La)TeX at all though---they support the same math syntax, but LaTeX is a complete document processing system while KaTeX is just a math renderer.

KaTeX + Markdown is comparable to LaTeX, in the same way that notepad.exe is comparable to an IDE---they both do the same thing, but one has 1000× as many features as the other. I'm personally biased towards LaTeX, but simpler solutions like Markdown certainly have their place.

haunter · 3h ago
Not sure why is this posted here, pretty much useless without the book
maweki · 3h ago
Who doesn't own the third edition of the LaTeX Companion book?
psychoslave · 1h ago
Hmm, I guess most people. Just like TAOC, everybody talk about it and even those who buy it let it rot on a shelve.

I remember in university one of the professor coming to me during my master asking how did I achieved this fancy stuff in my report. Dude I just red the book, lol. I didn't manage to validate my M2 though, double lol. :D

sombragris · 1h ago
Well, it's a reference book, not a tutorial. You "let it rot on a shelve" until that moment when you need to achieve a specific outcome in your LaTeX code and then check out the book.
psychoslave · 1h ago
Just when I started to look back at latex to typeset some poetry of mine yesterday!

Been a while since I didn't touch it, so I didn't even have texlive installed on my Ubuntu box, and started a chase of dependency to make my French specific stuff to install. I still need to see if I can manage to make the three strophe I wrote be as rectangle shaped as possible, be it with automatic line break on a vers (not sure the term in English) to the next row right aligned and preceded with a [

gucci-on-fleek · 26m ago
I'm not 100% sure what you're looking for, but placing "\parfillskip=0pt" at the start of the paragraph will make the last line end on the right margin, which I think is what you mean by "rectangle shaped".