more instructions
@@ -20,24 +20,44 @@ LaTeX source from arXiv. For example:
Afterwards,
```
-mkdir 1909.08079/
-tar xvzf 1909.08079.tar.gz --directory 1909.08079/
+mkdir 1909.08079_input_original/
+tar xvzf 1909.08079 --directory 1909.08079_input_original/
```
Double check that your LaTeX source compiles properly:
```
-mkdir 1909.08079_original/
-cd 1909.08079/
-pdflatex -interaction=nonstopmode -shell-escape -output-directory=../1909.08079_original/ main*.tex
-pdflatex -interaction=nonstopmode -shell-escape -output-directory=../1909.08079_original/ main*.tex
+mkdir 1909.08079_output_original/
+cd 1909.08079_input_original/
+pdflatex -interaction=nonstopmode -shell-escape -output-directory=../1909.08079_output_original/ mainRecSys.tex
+pdflatex -interaction=nonstopmode -shell-escape -output-directory=../1909.08079_output_original/ mainRecSys.tex
```
-You need to do this twice because... reasons? LaTeX is weird.
+You need to do this twice because... reasons? LaTeX is weird. If you don't do this, the references don't show up.
-Check `1909.08079_original/` for a `PDF` file.
+Check `1909.08079_output_original/mainRecSys.pdf` to see if the PDF rendered correctly.
-### run
+### injecting color tags into LaTeX source
+
+Manual effort:
+
+- Copy `1909.08079_input_original/mainRecSys.tex` to `1909.08079_input_colorized/mainRecSys.tex`
+- Open up `1909.08079_input_colorized/mainRecSys.tex`, Ctrl-F `$` symbol to find some math, and wrap the `$\math$` with tags to produce `{\color{red} $\math$}`.
+
+Render to PDF to check that the math symbols turned red.
+
+### turn PDFs into images
+
+```
+gs -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dNOPAUSE -dBATCH -dSAFER -dQUIET -sDEVICE=png16m -r96 -sOutputFile=1909.08079_output_original/%04d.png -dBufferSpace=1000000000 -dBandBufferSpace=500000000 -sBandListStorage=memory -c 1000000000 setvmthreshold -dNOGC -dLastPage=50 -dNumRenderingThreads=4 -f 1909.08079_output_original/mainRecSys.pdf
+```
+
+Check `1909.08079_output_original/` for `*.png` files, one for each page.
+
+
+### image diffs
+
+Let's say you ran the previous GhostScript command on `1909.08079_output_original/mainRecSys.pdf` and `1909.08079_output_colorized/mainRecSys.pdf`.
