My personal document template: template.tex.
If you are going to use LaTeX seriously, it is very useful to have the 'official' manual Leslie Lamport, LATEX: A Document Preparation System . I keep a list of my personal errata of this book.
There is also an internet reference guide.
By augmenting the .bbl file (the file containing the pre-compiled list of references) with hyperlink tags, we get clickable references. I wrote a little tool for doing this: addhyperlinkstobbl.pl. Docs are included in the source. It looks for hyperlink information in the bibtex entries, and adds them to the bbl file. After generating the bbl file with bibtex, and then running addhyperlinkstobbl over it, latex2html generates the proper html code.
The following bibtex attributes designate hyperlinks:
url = "http://www.jantje.com/doc.pdf". Various bibtex
entries you find on the net have the url attribute.
availability = "internet
(http:/www.oomhenk.com/doc2.pdf)".
availability = "online". Online
indicates that the document can be found on your local webpage. It does not
need a parameter, it just assumes that the file is found in a specific
directory, with the filename being the same as the bibtex key (followed
by .ps, .ps.gz, .pdf or whatever). It looks for a file with the proper base,
and then uses this filename to generate a hyperlink. Note that, in bibtex
keys, the ":" symbol is often used, while some OSes are unhappy with using the
":" in filenames. Therefore, the tool also looks for a file with the ":"
symbols stripped (i.e. key johnsson:93:dialog becomes filename johnsson93dialog).
\makeindex in the preamble of
your LaTeX document, and a \printindex in the body where you
want your index to appear. Now, you can put \index{word}
statements in your document in the places where you want the index to point
to. Now run latex to generate a .idx file, then run
makeindex to generate a .ind file, then run
latex again to include the index in your document.
Because it is too cumbersome to put in all the \index{...}
statements by hand, I have written a program that does this automatically.
You have to specify an [ENTER]-separated list of concepts you
wish to appear in the index, and the program will be able to generate a new
file with \index statements inserted next to all occurrences of
the concepts.
list2idx.pl < yourfile.tex
> generatedfile.tex.
By converting this HTML to LaTeX, it is possible to include highlighted source in a LaTeX document. This is what vimhtml2latex.pl does. Example usage:
vimhtml2latex < FILE.html > FILE.tex
\input{FILE.tex}.
Don't forget to define the colours using \definecolor.
If you like landscape (computer screen shaped) slides, for example for use
with a videobeamer, you can use the standard seminar.sty style.
xdvi uses antialiased fonts and can display inline postscript
figures (unlike most WYSIWYG editors I know), so xdvi is as
WYSIWYG as it can get. It's also faster than most postscript viewers, and
automatically rereads the dvi file when its window is refreshed.
However, one would still have to compile one's document(s) and
figure(s) by hand to postscript and dvi formats. This is where the LaTeX
assistant comes in: it runs in the background, recompiling the dvi/ps files
as soon as you save one of your source files. It simply relies on
make to check dependencies and recompile.
By putting the dvi viewer and your favourite editor in adjacent windows in your virtual desktop, it is then possible to switch between source and the automatically-updated preview using something as simple as the cursor keys.
The programs
The assistant
sample Makefile