News for hackers. Stuff that matters.
Re:Have you ever asked yourself “how did research get done b... by godelski on Thursday May 28, 2020 @06:21PM (#23343569)
Generally I use a Makefile that looks like this

```

SRC :=$(wildcard .tex .bib)

Paper.pdf: $(SRC)

pdflatex Paper

bibtex Paper.aux

pdflatex Paper

pdflatex Paper

short: $(SRC)

pdflatex Paper

clean:

rm -f .glo .log .dvi .gls .toc .aux .ist .out .glg .pdf .bbl .blg .lof .brf *.sta

.PHONY: clean

```

I hate that you have to run things multiple times to get references right. Really it should just be `pdflatex Paper` and you should be done.

Every once in awhile I just get references that don't want to stick. Same with images. [ht!] and floatbarriers only go so far. As much as tikz is a pain (and beautiful), I'd definitely invest more time into making image placement and references easier for the average user.

EDIT: code has a lot of wildcards before every extension but I'm not sure how to escape those on HN

Re:Have you ever asked yourself “how did research get done b... by lokedhs on Friday May 29, 2020 @03:55AM (#23347407)
Isn't this what latexmk does for you?

I don't use things like bibtext so I don't know how it handles that, but latexmk works perfectly for normal use cases, and ensures that you never have to run it more times than you need to.

Re:Have you ever asked yourself “how did research get done b... by godelski on Friday May 29, 2020 @02:31PM (#23353740)
I didn't know about this before so I can't answer, but it looks like yes. Thanks!