Hi Mauro, I see this has already been merged, but let me comment after the fact. On Thu, 21 Aug 2025 10:16:43 +0200, Mauro Carvalho Chehab wrote: > Makes it more adehent with modern Sphinx LaTeX build setup as > defined at: > > https://www.sphinx-doc.org/en/master/latex.html > > There, it suggests: > > 1) to add: 'printindex' > > “printindex” call, the last thing in the file. Override if you want to generate > the index differently, append some content after the index, or change the font. > As LaTeX uses two-column mode for the index it is often advisable to set this > key to r'\footnotesize\raggedright\printindex'. > > This indeed solved a corner case on a distro where the index was not properly > generated. This looks good. > > 2) to add at the main example: > \PassOptionsToPackage{svgnames}{xcolor} OK. So I guess Sphinx's latex builder is going to start using SVG color naming in the near future. > > 3) I got a corner case on one of the distros was using xindy to produce > indexes. This ended causing the build logic to incorretly try to use > T1 fontenc, which is not UTF-8 compatible. > > This patch adds: > > \PassOptionsToPackage{xindy}{language=english,codepage=utf8,noautomatic} > > to cover such case. It should be noticed that, as the config doesn't > have \usepackage{xindy}, this will be used only if latexmk ends > using xindy. But I can't see how this macro (executed by XeTeX engine) would have any effect on xindy (command) invoked from latexmk. Can you elaborate on your theory of how it works? And which distro runs xindy? Thanks, Akira