On Sat, Feb 25, 2017 at 09:42:10AM +0100, Marvin Gülker wrote: > However, it appears there's a number of XEPs on xmpp.org/extensions > whose PDF files have no Table of Contents, albeit the HTML versions > have.
I looked into this problem a little more, and it appears that the Makefile only runs xelatex once. That's not sufficient to build the ToC, since LaTeX generally needs at least two runs to build a document from scratch successfully (collecting and resolving crossreferences, especially for the ToC). See here: https://github.com/xsf/xeps/blob/860f1ab116bca50481c0f73f6be25f9792c97615/Makefile#L82 Changing that to run xelatex multiple times (at least twice) fixes the problem. I didn't have the "Gentium Basic" font available, but a "Gentium Plus" font, which looks pretty similar, so changing the font name in xep2texml.xsl was also required. After these changes, I was able to compile XEPs to PDFs from the XSF GitHub repository linked to above. There are some other problems (e.g., in XEP-0136 there is a nested table that fails to compile in XeLaTeX), but I won't bother with them for now. Greetings Marvin -- Blog: https://www.guelkerdev.de PGP/GPG ID: F1D8799FBCC8BC4F _______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: standards-unsubscr...@xmpp.org _______________________________________________