Live data from Hacker News

The Art of LaTeX: Common mistakes and advice for typesetting proofs

fanpu.io

121–130 of 149 posts

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#121

Earlier quoted context omitted.

This is the first time I have seen such a complaint against bibtex. Yes bib files are finicky to write correctly, and bibtex can be a pain to use. But bibliographies are never "imprecise, missing important info or plain wrong." I've written 100s of pieces with latex+bibtex, papers, websites, reports, books. bibtex always makes citations and bib entries look like what I or the publisher need. If something is missing,…

I have seen very few fully correct bibliographies written with bibtex in the wild. Not everything wrong with bibtex is a bug; the big problem is that bibtex is not adapted to its modern usage. A non-comprehensive list of problems: 1. Does anyone run bibtex directly from the command line? No, it's an extra step and the syntax is hard to memorize (should it run on the tex or the bib, and with or without the extension?)…

For 1, I just use latexmk. I honestly assumed that was standard but I guess not? It comes with TeXLive anyway. For the rest, I use Zotero with betterbibtex and with both that and LaTeX in general I use the more recent biblatex instead of bibtex.

This won't fix everything you've mentioned, but I feel like I generally have a lot fewer issues than what your comment would suggest.

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#123

Most of this is good advice, but I don't see the \mathbbm vs. \mathbb distinction as anything other than subjective taste. Also, I use things like \newcommand{\abs}[1]{\left| #1 \right|} in the preamble. This way, I can use \abs{...} without any asterisks, and it automatically adjusts its size. In the 1% situations where I don't want it to adjust the size, I write the delimiters manually. Making maths look good in La…

Both mathbbm and mathbb are wrong for number sets. These fonts look like the blackboard hack that you use to simulate boldface using chalk. On a computer you don't have this problem and you can simply use mathbf (actual boldface).

How about using the Unicode characters ℕ, ℤ, ℚ, ℝ, ℂ, etc.?

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#124

In the spacing section, the author's suggestion to use absolute spacing operator (e.g \;) is actually not recommended. a better way is to make `dx` a math operator (`d` is an operator isn't it?). Some other suggestion is not actually recommended in the official documentation of amsmath as I recall. Hope this helps.

I use \mathop{}\!{\mathrm d}} myself. That is a bit convoluted, but it takes care of the spacing in just about every context.. Of course, I put that in a macro definition so I don’t have to sprinkle it all over my document.

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#125

Earlier quoted context omitted.

I have seen very few fully correct bibliographies written with bibtex in the wild. Not everything wrong with bibtex is a bug; the big problem is that bibtex is not adapted to its modern usage. A non-comprehensive list of problems: 1. Does anyone run bibtex directly from the command line? No, it's an extra step and the syntax is hard to memorize (should it run on the tex or the bib, and with or without the extension?)…

By these standards, are any citation managers adapted to modern use? I’m definitely open to the idea that we should change how we refer to other findings, but EndNote, Zotero, and the like also can’t save you from new editions, overly-strict rules about reference formatting, and bad publisher-provided information. If you can deviate slightly from a particular reference format, it’s fairly easy to emit either a DOI or…

The alternative is to just write the bibliography by hand. This means possibly having to make changes before final publication to adapt to the journal's style. But it is faster in my experience than getting things into bibtex pre-emptively, particularly as the latter doesn't reliably prevent problems at publication time. And it is sufficiently transparent that you don't have to deal with sneaky silent errors.

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#126

Most of this is good advice, but I don't see the \mathbbm vs. \mathbb distinction as anything other than subjective taste. Also, I use things like \newcommand{\abs}[1]{\left| #1 \right|} in the preamble. This way, I can use \abs{...} without any asterisks, and it automatically adjusts its size. In the 1% situations where I don't want it to adjust the size, I write the delimiters manually. Making maths look good in La…

Both mathbbm and mathbb are wrong for number sets. These fonts look like the blackboard hack that you use to simulate boldface using chalk. On a computer you don't have this problem and you can simply use mathbf (actual boldface).

That would be going against the near-universal custom of using actual mathbb. They don't look like a hack to mathematicians because they are used everywhere and most people like them. Mathbf is rare and I don't recommend it.

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#128
post #127

Not a single mention of 'hbox' (I opened and immediately grepped) - surely the primary issue (or seemingly non-issue but annoying error/warning) anyone runs into is 'overfull hbox', typically without any idea what an hbox even is anyway.

Yeah! When I make my book into PDFs, I get a ton of those yet see no issues visually.

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#129
post #59

I have a question: if what you have to write in order to create your beautiful and aesthetically pleasing proof, and thereby "establish your ethos and character" (presumably as a righteous and good), is an ugly and fragile instance of a poorly designed, inherently unreadable, archaic language that embodies none of the characteristics you are after, can the result really be "a work of art that combines both the precis…

As ugly as it may appear to you, it is so much more readable than MathML Core. TeX is, in fact, still better than all the alternatives to represent mathematical equations in plain text created so far.

I guess readability is in the eye of the beholder, but I find latex much more readable than html and usually more readable than reStructuredText. Markdown might be more readable, but it's so limited it shouldn't even be in conversation.

Re: The Art of LaTeX: Common mistakes and advice for typesetting proofs

#130
post #61

Many LaTeX tricks only get passed down from advisors to students, or from collaborators to collaborators. Rarely someone would look for how to improve their typesetting when all they want is to quickly communicate content. It be nice if content and typesetting can be completely separated, where I just write content, and something (LaTeX, AI, some manual typesetter) does all the typesetting. Also, should I be the one…

check out MonsterWriter
Post reply on HN