Thursday, December 09, 2004

Random tip for LaTeX users

On Unix/Cygwin boxen with the watch utility, open up a console and use the following command to extract a live, automatically updated outline of your paper:

watch --interval=30 grep '^\.*section\{' latexfilename.tex

where latexfilename.tex is replaced with your paper's filename, of course. This will refresh every 30 seconds; use a different value for the --interval argument in order to get a view that's updated more or less frequently.

The above assumes that, like me, you compose using a documentclass that uses the standard \section, \subsection, and \subsubsection commands, and that your section declarations start at the beginning of a line.

(Yes, I'm using this tip at this very moment. Sigh. Deadlines.)

No comments:

Post a Comment