For the next computer-science book I'm planning to edit, I'm considering switching from pdflatex+bibtex to a more modern setup.
To get an idea of the contents, think of 400 pages in the style of "Introduction to Algorithms" by Cormen, Leiserson, and Rivest (mild mathematics, some pseudocode in a self-invented, GCL-like programming language, some self-drawn diagrams, a few images), but to be sent as a PDF file to Springer. The book's main language is going to be German, and there will be a tiny amount of typesetting in other languages (including mostly other Latin-based languages, Russian, and Hebrew math letters when I expend all the Latin letters). I am very likely to use babel
and microtype
as follows: \usepackage[USenglish,british,canadian,finnish,latin,russian,french,dutch,german,ngerman]{babel}
(nongerman mostly used for typesetting bibliography) and \usepackage[babel=true,verbose=errors,protrusion=true,expansion=true,kerning=true]{microtype}
. I am planning to produce an index (or indices) and a table of notation, ideally both with the glossaries
package. The diagrams and graphs are likely to be drawn using TikZ
.
Based on my experiences so far, I consider choosing XeLaTeX and/or biber. XeLaTeX would give me, as far as my tests go, the direct advantage that certain characters that now go as garbage to the text layer of the PDF file produced would become meaningful, selectable characters. With biber
, typesetting a multilingual bibliography would get easier than with bibtex
+babelbib
.
An aside has to be made. I did consider LuaLaTeX as an alternative to XeLaTeX. But my tests showed that LuaLaTeX was way slower than XeLaTeX on my input, which would make my typesetter's daily life harder, especially for a huge book. (For the curious, my experiments showed the following quotients for the running time of pdflatex : xelatex : lualatex on the same contents while adapting the preamble to suit the compiler: 1 : 1.86 : 2.78. So, lualatex
is 1.5 times slower than xelatex
for my input. Thus, an often expressed claim that lualatex would be faster than xelatex, is in general misleading.) As for now, a whole compilation (from scratch rather a re-compilation) of a slighlty larger book with similar contents takes 2 minutes with pdflatex
; I could probably tolerate 3 minutes with {xe|lua}latex, but not more. I had no experience with ConTeXt and cannot say anything about it so far. SILE apparently has no maths as of today, or at least I don't see it in the manual. Omega and NTS seem to be pretty dead as of today.
There is a high chance that SVMono will have to be adapted to XeLaTeX. The main font will be Times New Roman or similar; the secondary font (for headings of sections and chapters) will be Arial, Helvetica or similar. Therefore, I'm looking at TeX Gyre Termes and TeX Gyre Heros. Moreover, I took a look at Moving from pdfLaTeX to XeTeX - what do I need to know?, Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX, Transparency in tikz, preview package and xelatex, PSTricks transparency does not work with MikTeX's XeLaTeX, and PDF Layers (OCG) using xelatex and considered them non-issues in my case.
Now, has anyone tried to use XeLaTeX+biber for tasks similar to the one described above, and, if so, what were your experiences? E.g.:
How hard was it to adapt SVMono to XeLaTeX and/or biber?
Was there a barrier that you could not overcome (or not overcome easily) and had to invest major unplanned effort or to switch back to pdflatex+bibtex?
Which pitfalls are to be avoided?
Was there any free lunch you did not expect?