Andrew Stacey


About
Andrew Stacey
Information about my research, teaching, and other interests.

By: Andrew Stacey
Contact details


Andrew Stacey


blosxom icon

home :: HowDidIDoThat :: LaTeX

LaTeX Hacks

Gathered here are the various hacks that I use or have used to make LaTeX (and occasionally TeX) do what I want it to do.


Thu, 20th Dec 2007 (HowDidIDoThat :: LaTeX)

Document Revision System

I've decided to start using a document revision system for my papers. My current ad hoc method is getting seriously strained; exchanging copies with collaborators, merging their comments with my revisions, preparing different versions for different places (archives, journals, home pages); it was all getting too confusing.

So I had a look around on the web and found a paper (also available as a wikibook) promoting the use of subversion. This is actually a software revision system. However, the general principle is the same: a typical LaTeX paper consists of several text files and this is exactly what a typical piece of software consists of and thus what software revision systems are designed to track.

There are several different systems around and it's not clear which is the "right" one. Subversion certainly seems better than CVS, but there's also GNU Arch and its variants. I had a quick play with subversion, but am going to give bazaar a serious go.

See more ...

[Full link]
Last modified on Thu, 20th Dec 2007

Mon, 26th Feb 2007 (HowDidIDoThat :: LaTeX)

MathGrep - Search and Replace in Mathematics

This is a Perl script which does either a search (known in the Unix world as a grep) or a search-and-replace on a LaTeX document looking only in sections of mathematics.

See more ...

[Full link]
Last modified on Mon, 26th Feb 2007

Thu, 18th Jan 2007 (HowDidIDoThat :: LaTeX)

Importing XFig Files into LaTeX Documents

I find it useful to be able to switch the type of output LaTeX produces between PDF and postscript (once I get the hang of MathML then I might add that to this list). Most of the time this is purely a matter of using pdflatex instead of latex + dvips but with more complicated LaTeX documents then it is sometimes a little more involved. This is particularly the case where external graphics files are involved.

See more ...

UPDATE 2008/01/14: Fink and Epsfig

[Full link]
Last modified on Thu, 18th Jan 2007