Skip to content

U+2212 MINUS SIGN breaking PDF generation #4136

Closed

Description

@JulienPalard

Subject: When using U+2212 to denote a negative integer, sphinx can no longer build PDF.

Problem

Unicode character U+2212 in rst files breaks PDF generation.

Procedure to reproduce the problem

$ sphinx-quickstart
[…]
$ cd in_the_directory
$ printf "\n\nHello −4 world." >> index.rst
$ make latexpdf

Error logs / results

[…]
! Package inputenc Error: Unicode char − (U+2212)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.86 Hello −
              4 world.
? 
(./minus.ind) [1] (./minus.aux) ){/usr/share/texlive/texmf-dist/fonts/enc/dvips
/base/8r.enc}</usr/share/texlive/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb
></usr/share/texlive/texmf-dist/fonts/type1/urw/helvetic/uhvbo8a.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/urw/times/utmb8a.pfb></usr/share/texlive/texmf
-dist/fonts/type1/urw/times/utmr8a.pfb>
Output written on minus.pdf (5 pages, 40041 bytes).
Transcript written on minus.log.
Latexmk: Index file 'minus.idx' was written
Latexmk: Log file says output to 'minus.pdf'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
Makefile:33: recipe for target 'minus.pdf' failed
make[1]: *** [minus.pdf] Error 12
make[1]: Leaving directory '/home/mdk/Downloads/test-minus/_build/latex'
Makefile:20: recipe for target 'latexpdf' failed
make: *** [latexpdf] Error 2

Expected results

I'd just expect my minus sign to be correctly rendered in a PDF file.

Environment info

  • OS: Debian sid
  • Python version: 3.6.2
  • Sphinx version: 1.6.4
  • texlive 2017.20171004-1

Looks like there a lots of problems with some unicode characters: https://tex.stackexchange.com/search?q=inputenc+2212

Maybe we should just add another DeclareUnicodeCharacter in utf8extra in latex.py?

Activity

  1. JulienPalard commented on Oct 9, 2017

    @JulienPalard
    ContributorAuthor

    Same with Є U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE:

    ! Package inputenc Error: Unicode char Є (U+404)
    (inputenc)                not set up for use with LaTeX.
    
  2. jfbu commented on Oct 9, 2017

    @jfbu
    Contributor

    U+2212 belongs to the Symbol, Math category of the Mathematical Operators block. As such, naive stand of a LaTeX user would be that this is supposed to be used in math mode. Thus the nowadays standard LaTeX answer is to say to switch to Unicode engine xelatex or lualatex and use package unicode-math. Its default config will arrange for suitable math fonts hopefully having the glyph.

    As per U+0404, then of course we can find thousands of similar example: utf8 option of inputenc can not cover the full Unicode range (but it did get expanded in recent years, so an up-to-date TeX install is always advisable.) Here again, the probably better answer is to switch to Unicode engine xelatex or lualatex.

    You may also try option utf8x for inputenc, with traditional pdflatex. It may work, or not. Check 'inputenc' key. You need to solve also the font problem then, the LaTeX font must contain glyph of the wanted Unicode codepoint.

    Related: #3444

  3. glyg commented on Oct 10, 2017

    @glyg
    Contributor

    Relevant tests from pandoc's default.latex template:

    \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
      \usepackage[utf8]{inputenc} % no inputenc with xetex
    
     \ifxetex
        \usepackage{mathspec}
        \usepackage{xltxtra,xunicode}
      \else
        \usepackage{fontspec} % no fontspec
    %%% hyperref
    \ifxetex
      \usepackage[setpagesize=false, % page size defined by xetex
                  unicode=false, % unicode breaks when used with xetex
                  xetex]{hyperref}
    \else
      \usepackage[unicode=true]{hyperref}
    %%% (not) Babel
    \ifxetex
      \usepackage{polyglossia}
      \setmainlanguage{$mainlang$}
    \else
      \usepackage[$lang$]{babel}

    Hope this helps
    To summerize:

    • No inputenc
    • No fontspec
    • No babel
    • Packages:
      • mathspec
      • xltxtra,xunicode
      • polyglossia

    And the tricky hyperref options...

  4. jfbu commented on Oct 10, 2017

    @jfbu
    Contributor

    Well, check Sphinx's latex_engine config setting. The default will use polyglossia.

    One can recommend adding \usepackage{unicode-math} to preamble (which provides \setmathfont in particular).

    About using mathspec (xetex only) : it serves not much simply loading it without using its commands.

    As per xunicode I think it is now obsoleted by recent fontspec and xltxtra not sure. Probably also (no time to check now). It is xelatex specific.

    Sphinx provides minimal set-up via latex_engine, using polyglossia but user should add preamble config for custom fonts. And possibly add unicode-math. This is not done by default because it very significantly slows down build time for PDF; but it is the de facto standard package for math mode with xelatex/lualatex. (mathspec does other things, xelatex only)

  5. jfbu commented on Oct 10, 2017

    @jfbu
    Contributor

    @JulienPalard There is no problem with

    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \usepackage[ukrainian]{babel}% or russian
    \begin{document}
    Є
    \end{document}

    So if your document uses suitable language it will ok, also with traditional pdflatex.

    For an isolated letter, you may need more. Please provide a minimal example of Sphinx project displaying the problem. You could modify 'babel' key for extra language used for special letters. Then package newunicodechar can facilitate using dedicated (TeX) font having that glyph.

  6. jfbu commented on Oct 10, 2017

    @jfbu
    Contributor

    @JulienPalard

    This:

    \documentclass{article}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[ukrainian, english]{babel}
    \usepackage{newunicodechar}
    \newunicodechar{Є}{\foreignlanguage{ukrainian}{\IeC {\CYRIE }}}
    \begin{document}
    This is a Ukrainian letter: Є
    \end{document}

    shows (but see note below) how you can configure your Sphinx project latex preamble : you only need modify the 'babel' latex-elements key and add to preamble the two lines with newunicodechar.

    It will fix your Є problem if it is a one-shot problem with this letter, with no change needed to produced Sphinx mark-up, only via Sphinx user customization of LaTeX document preamble.

    Important side note: there appears to be a LaTeX bug with babel+ukrainian which causes extra spaces in output, sadly. As a result the thing to do is rather to get the preamble either to contain:

    \usepackage[ukrainian, english]{babel}
    \usepackage{newunicodechar}
    \newunicodechar{Є}{{\fontencoding{T2A}\selectfont\IeC {\CYRIE }}}

    or to use russian and not ukrainian:

    \usepackage[russian, english]{babel}
    \usepackage{newunicodechar}
    \newunicodechar{Є}{\foreignlanguage{russian}{\IeC {\CYRIE }}}
    
  7. jfbu commented on Oct 10, 2017

    @jfbu
    Contributor

    As proof of concept I have tried this in conf.py

    latex_elements = {
        # The paper size ('letterpaper' or 'a4paper').
        #
        # 'papersize': 'letterpaper',
    
        # The font size ('10pt', '11pt' or '12pt').
        #
        # 'pointsize': '10pt',
    
        # Additional stuff for the LaTeX preamble.
        #
        # 'preamble': '',
    
        # Latex figure (float) alignment
        #
        # 'figure_align': 'htbp',
    'babel': r'\usepackage[russian, main=english]{babel}',
    
    'preamble': r'''
    \usepackage{newunicodechar}
    \newunicodechar{Є}{\foreignlanguage{russian}{\IeC {\CYRIE }}}
    '''
    }
    

    then I compile my project containing Є character using make latexpdf.

    There is no problem and the build succeeds. Warnings appear in the LaTeX log:

    LaTeX Font Warning: Font shape `T2A/ptm/m/n' undefined
    (Font)              using `T2A/cmr/m/n' instead on input line 74.
    

    which says that the (TeX) Times font (from \usepackage{times}) does not exist in the T2A encoding loaded by russian language. But the Computer Modern font exists in this (TeX) encoding.

    Side note: there is a strange problem that if I use

    'babel': r'\usepackage[russian, english]{babel}',
    

    and not

    'babel': r'\usepackage[russian, main=english]{babel}',
    

    then the LaTeX compilation is done with Russian as main document language. This seems a bug of LaTeX-babel as it contradicts its documentation, english being the last option. There is something strange non-Sphinx related here. Perhaps interaction with newunicodechar package, anyway, I have not debugged that so far. But it is not due to Sphinx.

    EDIT: this is indeed a documented LaTeX-babel bug. In situations like this:

    \documentclass[letterpaper,10pt,english]{report}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[ngerman, english]{babel}
    \title{FOO Documentation}
    \date{Oct 10, 2017}
    \author{JFB}
    \begin{document}
    \maketitle
    \tableofcontents
    
    Foo bar.
    \end{document}

    the document language turns out be German !! If one suppresses the global class option english, then the document language is English (last option to babel). The babel documentation contains

    WARNING Languages may be set as global and as package option at the same time,
    but in such a case you should set explicitly the main language with the package
    option main:
    \documentclass[italian]{book}
    \usepackage[ngerman,main=italian]{babel}
    
  8. jfbu commented on Oct 10, 2017

    @jfbu
    Contributor

    Still for cyrillic letter , there is an alternative to using russian language locally. One does

    latex_elements = {
        'fontenc': r'\usepackage[T2A, T1]{fontenc}',
    
        'preamble': r'''
    \usepackage{newunicodechar}
    \newunicodechar{Є}{{\fontencoding{T2A}\fontfamily{cmr}\selectfont\IeC {\CYRIE }}}
    '''
    }
    

    This gives more efficient code (the babel method also sets up hyphenation patterns which however are not needed for an isolated letter). Problem is that average LaTeX user will not know how to automatize, where does the \IeC {\CYRIE } come from. There is an intrinsic LaTeX problem which is that it makes such Unicode characters "active" via \usepackage[utf8]{inputenc} but the character will not by itself change the font: it knows which fontenc encoding to use, but if the current (TeX) font used is not with that encoding, it throws an error rather than changing by itself temporarily the font !

    Thus, we use newunicodechar to modify the meaning, but we have to know the LICR representation. I don't have time now, but I suspect with some hacking we could automatize that, something like \sphinxnewunicodechar{Є}{T2A/cmr} the second argument indicating which TeX font to temporarily switch too to avoid the LaTeX error message of the style "no such character in font encoding T1".

  9. JulienPalard commented on Oct 11, 2017

    @JulienPalard
    ContributorAuthor

    Wow, thanks for your extensive feedback everyone!!

    I'm reviewing it all, I'll probably first try to use a mix between platex and xelatex (from python/cpython#3940 (comment)):

    if language != 'ja':
        latex_engine = 'xelatex'
    

    I'm strongly against all kinds of hardcoding like sphinxnewunicodechar{Є}, for the record the documentation I try to build is the Python documentation, so I expect characters to be added regularly and don't want documentation writers and translators to have to update the sphinx configuration each time, this is a nonsense, so I hope we can do without this.

  10. JulienPalard commented on Oct 11, 2017

    @JulienPalard
    ContributorAuthor

    Hum, I can't access language in my config.py, sphinx/config.py line 150 does not give it execfile_(filename, config), but language: 'fr' is stored in overrides, in my specific context... I'll still try to see if it works with xelatex for english and french, and platex for japanese.

  11. JulienPalard commented on Oct 11, 2017

    @JulienPalard
    ContributorAuthor

    The following minimalist configuration:

    latex_engine = 'xelatex'
    latex_elements = {}
    

    builds english and french versions of the Python documentation. So I think we should add some information near the latex_engine documentation telling about how to choose one? I don't expect sphinx users to know luatex, xetex, platex, I personally never heard of xetex and platex before today.

  12. JulienPalard commented on Oct 13, 2017

    @JulienPalard
    ContributorAuthor

    I'm opening a specific issue about the documentation subject.

  13. 17 remaining items

  14. jfbu commented on Oct 21, 2017

    @jfbu
    Contributor

    Thanks for the explanation relative to the internationalization. I have git cloned the French translated repo, manually created cpython/Doc/locales/fr/LC_MESSAGES symlink in a checkout of cpython 3.6 tag with my patched conf.py, then I have manually run the make latex with suitable SPHINXOPTS in a Python 3.6 environment.

    I got two innocuous warnings, then I cd to build/latex and run there make clean, make all-pdf. Ok, I see some problems.

    This one looks like a typo in French translation:

    Le nœud qui suit immédiatement le nœud courant dans le même parent. Voir également {\hyperref[\detokenize{library/xml.dom:xml.dom.Node.previousSibling}]{\sphinxcrossref{\sphinxcode{previousSibling}}}}. Si ce nœud est le dernier de son parent, alors l’attribut sera \sphinxcode{Ǹone}. Cet attribut est en lecture seule.
    

    this is on line 101211 of library.tex. There is Ǹ in None which looks very suspicious.

  15. jfbu commented on Oct 21, 2017

    @jfbu
    Contributor

    There is a U+200b in line

    Python définit \sphinxcode{pow(0, 0)} et \sphinxcode{0 ** 0} valant \sphinxcode{1}, ​puisque c’est courant pour les langages de programmation, et logique.
    

    which is line 2096 of library.tex, right before puisque and this looks again very suspicious. Why should a zero-width space be there?

  16. jfbu commented on Oct 21, 2017

    @jfbu
    Contributor

    I confirm I can build all French CPython Docs with pdflatex using the above. However there are bugs in the French translation strings (at least on typo and a possible stray zero-width space) which require extra steps. I did:

    diff --git a/Doc/conf.py b/Doc/conf.py
    index f7073d116a..433f7f259f 100644
    --- a/Doc/conf.py
    +++ b/Doc/conf.py
    @@ -15,6 +15,7 @@ sys.path.append(os.path.abspath('tools/extensions'))
     extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
                   'pyspecific', 'c_annotations']
     
    +
     # General substitutions.
     project = 'Python'
     copyright = '2001-%s, Python Software Foundation' % time.strftime('%Y')
    @@ -91,9 +92,7 @@ html_split_index = True
     
     # Get LaTeX to handle Unicode correctly
     latex_elements = {
    -    'inputenc': r'\usepackage[utf8x]{inputenc}',
    -    'utf8extra': '',
    -    'fontenc': r'\usepackage[T1,T2A]{fontenc}',
    +    'fontenc': r'\usepackage[T2A,TS1,T1]{fontenc}',
     }
     
     # Additional stuff for the LaTeX preamble.
    @@ -102,8 +101,13 @@ latex_elements['preamble'] = r'''
       \sphinxstrong{Python Software Foundation}\\
       Email: \sphinxemail{[email protected]}
     }
    -\let\Verbatim=\OriginalVerbatim
    -\let\endVerbatim=\endOriginalVerbatim
    +\usepackage{newunicodechar}
    +\newunicodechar{ſ}{{\fontencoding{TS1}\fontfamily{lmr}\selectfont s}}
    +\newunicodechar{K}{\ensuremath{\mathrm K}}
    +\newunicodechar{−}{\textminus}
    +\newunicodechar{Є}{{\fontencoding{T2A}\fontfamily{cmr}\selectfont\IeC{\CYRIE}}}
    +\usepackage{uspace}% handles Unicode spaces inclusive of zero width U+200B
    +\newunicodechar{Ǹ}{N}
     '''
     
     # The paper size ('letter' or 'a4').

    The package uspace handles Unicode space characters. It may not be installed at your TeX locale because it is relatively recent, see its repo.

    You an also simply do

    \DeclareUnicodeCharacter{200B}{}
    

    to get rid of it (as it looked typo).

    As per the Ǹ it is surely a typo so, I redeclared it to be N, I have not looked at how it should be defined really if it had been needed.

    Sorry for delays, but building all PDFs takes time each time.

    Notice that ironically, bugs are revealed from not using Unicode savvy engine, as then input typos are detected.

    I find it useful though to have spent time on this big project (library.pdf in French going to 1742 pages), as this can be used in future in case of Sphinx LaTeX changes as a test.

  17. JulienPalard commented on Oct 21, 2017

    @JulienPalard
    ContributorAuthor

    I fixed the Ǹ, and I don't think the zero-width space is a thing, so I also removed them.

  18. JulienPalard commented on Oct 21, 2017

    @JulienPalard
    ContributorAuthor

    Notice that ironically, bugs are revealed from not using Unicode savvy engine, as then input typos are detected.

    Yes, I take note. Also having this in conf.py is way more suitable than havig to move the logic in https://github.com/python/docsbuild-scripts: It allows one to build more naturally using the cpython makefile instead of having to rely of another tool, I like it.

    Would you like to PR this on https://github.com/python/cpython (issue already opened: https://bugs.python.org/issue31589)?

  19. jfbu commented on Oct 21, 2017

    @jfbu
    Contributor

    I would be glad to PR, but unfortunately putting this in conf.py will break Japanese translated builds, because package newunicodechar works only in context of \usepackage[utf8]{inputenc} (it is not compatible with utf8x), and is not compatible with platex engine.

    But it is possible to enclose it in some LaTeX conditional branch and avoid executing it if engine is platex. (or perhaps there is some Sphinx latex_elements key which we can use, offhand I don't remember will check now).

    Oh, simply I can use 'utf8extra' key. no sorry, my mistake. Will go the LaTeX conditional way.

    Regarding Japanese docs, I understand you build with no LaTeX errors. But do the PDFs look fine regarding the problematic characters? (i.e. particularly the long s ſ and the Є)

  20. jfbu commented on Oct 21, 2017

    @jfbu
    Contributor

    @JulienPalard I have done the PR at python/cpython#4069

  21. jfbu commented on Oct 23, 2017

    @jfbu
    Contributor

    I have found a way for Japanese. I could not solve the problem with pLaTeX which Sphinx uses by default for Japanese. But after some trial and error I perhaps have a way with upLaTeX. But: many files of the CPython documentation use Sphinx howto which use jreport which I do not know how to make work with upLaTeX. For the biggest file which is library.tex it uses jsbook and one can make it work with upLaTeX using LaTeX document class option uplatex.

    In conf.py:

    latex_elements = {
    
        'extraclassoptions': 'uplatex',
    
        'inputenc': r'\usepackage[utf8]{inputenc}',
    
        'fontenc': r'\usepackage[T2A, TS1, T1]{fontenc}',
    
        'preamble': r'''
    \ifx\XeTeXinterchartoks\undefined % not for xelatex
    \ifx\directlua\undefined          % not for lualatex
      \ifx\kcatcode\undefined\else  %  extra preparation for uplatex
      \kcatcode`ſ 15
      \kcatcode`K 15
      \kcatcode`Є 15
      \kcatcode`− 15
      \fi
    \DeclareUnicodeCharacter{017F}% ſ
      {{\fontencoding{TS1}\fontfamily{lmr}\selectfont s}}
    \DeclareUnicodeCharacter{212A}% K
      {\ensuremath{\mathrm{K}}}
    \DeclareUnicodeCharacter{0404}% Є
      {{\fontencoding{T2A}\fontfamily{cmr}\selectfont\IeC{\CYRIE}}}
    \DeclareUnicodeCharacter{2212}{\textminus}
    \fi\fi
    '''
    }
    

    Unfortunately the extra class option uplatex is not expected by LaTeX when not used with jsbook class so it reports a warning in each latex compilation log when one tries the above with -D language=fr for example. This is mostly invisible to user but I should think better about getting uplatex as class option only for Japanese (one can actually use own version of LaTeX template to add somestuff before the document class, inclusive of some conditional \PassOptionsToClass).

    Then we also need this in conf.py:

    latex_additional_files = ['latexmkjarc']
    

    and finally we need this latexmkjarc file, which is fastest way I found to trick Sphinx to use upLaTeX and not pLaTeX engine for Japanese:

    $latex = 'uplatex ' . $ENV{'LATEXOPTS'} . ' -kanji=utf8 %O %S';
    $dvipdf = 'dvipdfmx %O -o %D %S';
    $makeindex = 'rm -f %D; upmendex -U -f -d %B.dic -s python.ist %S || echo "upmendex exited with error code $? (ignoring)" && : >> %D';
    add_cus_dep( "glo", "gls", 0, "makeglo" );
    sub makeglo {
     return system( "upmendex -J -f -s gglo.ist -o '$_[0].gls' '$_[0].glo'" );
    }
    

    edit: upmendex apparently doesn't recognize -U option, which should be removed, it was option for mendex to Set input/output kanji encoding to UTF-8. which perhaps makes no sense for upmendex (possibly similarly as -kanji=utf8 perhaps also makes no sense as option for uplatex)

    I think the -kanji = utf8 option should be removed, but I can't read Japanese documentation and I worked from google translate... this file above is exactly the Sphinx provided latexmkjarc except that I replaced platex by uplatex and mendex by upmendex.

    With this set-up I can compile successfully for English, French, and Japanese: sadly however in Japanese only when 'manual' is chosen for the docclass not 'howto'. So I compiled all CPython docs succesfully in Japanese, but after having forced 'manual' everywhere.

    • I can't use utf8 inputenc with pLaTeX, but I can with upLaTeX,

    • package newunicodechar refuses to work with upLaTeX, this is why I reverted to \DeclareUnicodeCharacter

    • the method above is set-up to work both with pdflatex and with uplatex,

    • because this method uses the Latexmk way, it does not work on Windows, as currently Sphinx does not use Latexmk on Windows.

    • there is no need to set latex_engine: Sphinx for Japanese uses 'platex'but the used binary is actually the one listed in the latexmkjarc file ..., so we can workaround the fact that Sphinx does not (yet) provide a 'uplatex' setting for latex_engine.

    • careful that when copying pasting from here the K it may become K.

    @cocoatomo do you have any comment? do you build Japanese CPython documentation with standard Sphinx set-up using pLaTeX?

    I couldn't make pLaTeX work with the characters above, except the U+2212 − which at least gives reasonable output it seems with no extra set-up. I had some partial success but then unexpected results arose from using these characters in code-blocks or literal.

    Or course there might be much better way, but as I can't read Japanese it is very hard for me to understand how LaTeX classes and engines work there.

  22. JulienPalard commented on Oct 23, 2017

    @JulienPalard
    ContributorAuthor

    nosy @methane ^

  23. jfbu commented on Oct 23, 2017

    @jfbu
    Contributor

    There is a ujreport LateX document class for usage with upLaTeX.

    I can force Sphinx to use it by this kind of patching in conf.py:

    from sphinx.builders import latex
    
    def my_default_latex_docclass(config):
        # type: (Config) -> Dict[unicode, unicode]
        """ Better default latex_docclass settings for specific languages. """
        if config.language == 'ja':
            return {'manual': 'jsbook',
                    'howto': 'ujreport'}  # replace jreport by ujreport
        else:
            return {}
    
    latex.default_latex_docclass = my_default_latex_docclass
    

    With patch like the above I can then build the whole CPython documentation for Japanese (without having to replace 'howto' by 'manual' as in my first try with upLaTeX).

    The uplatex extra class option is ignored by ujreport LaTeX class, and the log warning is inocuous.

    @tk0miya is there easier way to get Sphinx to use ujreport as docclass rather than jreport when language is 'ja' and document type 'howto'?

    Also it would be convenient to have a 'passoptionstoclass' latex_elements key, because this can have conditional LaTeX code that can't be put safely in 'extraclassoptions'. Admittedly, this can now be done at user level using template override.

  24. brechtm commented on Jun 9, 2020

    @brechtm
    Contributor

    I happened to see this issue when I was searching for tickets on another topic. I just wanted to mention that building a PDF using rinohtype might make things easier when dealing with languages other than English. As long as your fonts contain the needed glyphs, things should just work... provided the script doesn't require advanced typesetting features that are currently not supported by rinohtype. You should also know that rinohtype doesn't support typesettings of maths as of yet.

    I would be interested to learn how rinohtype handles your document. I welcome any feedback in the rinohtype issue tracker.

  25. tk0miya commented on Jun 11, 2020

    @tk0miya
    Member

    @tk0miya is there easier way to get Sphinx to use ujreport as docclass rather than jreport when language is 'ja' and document type 'howto'?

    Now Sphinx uses ujreport when latex_engine = 'uplatex'. May I close this issue?

  26. jfbu commented on Jun 11, 2020

    @jfbu
    Contributor

    @tk0miya: +1 for closing as far as I can see.

  27. locked as resolved and limited conversation to collaborators on Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions