<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,<br>
<br>
To chime in a bit: sphinx should probably adjust its templates
depending on tex engine used.<br>
<br>
For xelatex and lualatex you most probably want to use fontspec /
unicode-math for encoding and font handling<br>
instead of inputenc/fontenc/cmap.<br>
<br>
Cheers<br>
Max<br>
</p>
<div class="moz-cite-prefix">On 05.02.21 14:15, Jonathan Fine wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALD=Yf_qtp=XmddurxyJySnmWtvkEt8b5JbAN4g5jUqVz1LdiQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">On Fri, Feb 5, 2021 at 12:31 PM Norbert Preining
<<a href="mailto:norbert@preining.info"
moz-do-not-send="true">norbert@preining.info</a>> wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Just to give a bit of
background - but consider that I am not an expert<br>
here - the problem arose with Sphinx documentation, the
default<br>
documentation system in Python, which generates code for
html/pdf/...<br>
For generating pdf it uses xelatex and lualatex (AFAIS ...
don't bite me<br>
if I am wrong) and there are some templates that generate
the documents.</blockquote>
<div><br>
</div>
<div>As both a TeX and Python user I can provide some more
information, or at least links.</div>
<div><br>
</div>
<div><a href="https://docs.python.org/3/"
moz-do-not-send="true">https://docs.python.org/3/</a>
states that it's generated using Sphinx 2.4.4.<br>
</div>
<div><br>
</div>
<div><a href="https://www.sphinx-doc.org/en/master/latex.html"
moz-do-not-send="true">https://www.sphinx-doc.org/en/master/latex.html</a>
gives information about use of xelatex and lualatex. There's
a change in font handing in Sphinx 4.0.0.<br>
</div>
<div><br>
</div>
<div><a href="https://readthedocs.org/" moz-do-not-send="true">https://readthedocs.org/</a>
hosts automated document generation for Sphinx and other
systems. It's a major publisher of Sphinx documentation,
which it generates from source.<br>
</div>
<div><br>
</div>
<div>Here's some relevant URLs from Read The Docs.</div>
<div><a
href="https://docs.readthedocs.io/en/stable/guides/pdf-non-ascii-languages.html"
moz-do-not-send="true">https://docs.readthedocs.io/en/stable/guides/pdf-non-ascii-languages.html</a><br>
</div>
<div><a
href="https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-latex_engine"
moz-do-not-send="true">https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-latex_engine</a><br>
</div>
<div><br>
</div>
<div>Here's a suggestion. Create a simple Sphinx project,
submit to ReadTheDocs, and see if it builds correctly. Then,
somehow, repeat the build with the new TeXLive. This might
help experts catch and fix problems before users discover
them.</div>
<div><br>
</div>
<div>I hope at least some of this helps.</div>
<div><br>
</div>
<div>with best regards</div>
<div><br>
</div>
<div>Jonathan</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> </div>
</div>
</div>
</blockquote>
</body>
</html>