3 ms·
I'm writing my dissertation (music theory) with LaTeX; the text is all stored in git, and all of my examples are PDF files in a submodule (so the main repo does
by theOnliest 12y ago
I'm writing my dissertation (music theory) with LaTeX; the text is all stored in git, and all of my examples are PDF files in a submodule (so the main repo doesn't get huge). I need to have the examples tracked, and the submodule allows me to pin a particular version of the examples with a particular version of the text. If I need the PDF of a chapter I sent to my advisor, for example, I can just check out that tag and run xelatex again to generate the real document.
The example PDF files aren't easily generated with TeX, so I make them in Illustrator and store them with Git. They change a little less frequently than the text itself, and usually once an example is done it doesn't get updated very frequently. In my case, at least, I can't easily version the "raw source" for the examples, as the Illustrator binary files are ~3x larger than the resulting PDFs.
I suppose I could use something like git-annex, but every time I've tried I haven't really been able to get the hang of it, and the time I'd spend learning it is better spent actually writing the thing.
(Incidentally, this new Github feature makes it much easier to browse my examples repo!)