LaTeX, BibTex, multibib and TeXlipse ramblings
Oh Boy!! This is about when its starts to get nasty with LaTeX editing.
I'am writing my Diplomathesis at the moment, and I choosed LaTex for the typesetting, which is normally without a doubt the best choice you can take for that task.
But I'm now at a point, where it starts to get nasty...
For the purpose of splitting my bibliography references into two bibliographies (one for the referred normal scientific literature and one for referred websites).
Ok... I started researching on how to do this. The answer was quickliy found. If you are using BibTex for your Bibliography management (like I do), the multibib package will be your choice.
I read through the docs and followed the necessary steps to set this up. To my pleasure I got It working in a nice really straight forward attempt. :-)
First thing which was not so nice is, that you can't tell TeXlipse (which I used as the IDE to author the .tex files) without a cusomized build script, to compile the files necessary according to the use with multibib. :-/
I setted this build script for using multibib up. As you can see in the listing you have to perfom bibtex on each .aux file which is produced. The number of .aux files depends on the number of differnt bibliographies you use in your document. And there was no way to tell this TeXlipse!
#!/bin/sh pdflatex -interaction=nonstopmode -output-directory=../out --src-specials diplomarbeit bibtex ../out/diplomarbeit bibtex ../out/web pdflatex -interaction=nonstopmode -output-directory=../out --src-specials diplomarbeit pdflatex -interaction=nonstopmode -output-directory=../out --src-specials diplomarbeit evince ../out/diplomarbeit.pdf &
Nice! This worked! 8-) ... until I started to put web references (from my second bibliography) into caption descriptions of tables or figures.
This produced a very funny TeX Error:
! TeX capacity exceeded, sorry [input stack size=10000].
\par@update ->\let \par@update
\default@par@update \par@updaterelative
l.14 ...dellierung.}}{31}{figure.2.12}
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
I really enjoyed this helpfull additional Information in the last sentence of the error message. I thought man! 10000 kb is not that much!? I don't have to be a wizard to give the program the needed space for its stack. But by looking into 'texmf.cnf', I found out that the stack size referes to the number of "simultaneous input sources". So I guess, multibib produces due to a bug endless loops of invoking some resources, if refernces are used within captions of figures and tables... but I'm not to sure here.
So, I now endet up to "hardcode" the bibliography references from within caption tags, instaed of using cite. Not the nicest solution, but it works and the numper of figures and tables is not to big within my thesis, so that I can keep track of em manually. I'm looking further for a better solution for this, I f anybody who may read this know how to go here, please drop me a note!
Anyway! Due to this pain in the ass, I streamlined my LaTex setup now to just using gedit and command line compiling with the script shown above. This is way more robust than this TeXlipse setup. A good texteditor and a commandline prompt is all you need for happy TeXing. :-)
best
Christian
