← Back to DAGDA | Support | Source: https://github.com/sphinx-doc/sphinx/issues/3546
Skip to content

A ; in a literal block causes failed PDF build with xelatex, TL2015, and French language #3546

Closed

Description

@jfbu

Subject: PDF build fails with a LaTeX error

Problem

[1] [2] (/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1lmtt.fd)
! Improper discretionary list.
<recently read> }
                 
l.57 \PYG{p}{;}
               
? X
Output written on FOO.pdf (4 pages).

Procedure to reproduce the problem

index.rst:

::

  ;

conf.py:

language = 'fr'
latex_engine = 'xelatex'

Error logs / results

see above

Expected results

make latexpdf succeeds.

Environment info

  • OS: mac os x 10.9.5
  • Python version: 3.5.3
  • Sphinx version: 1.5.3
  • TeXLive 2015

Activity

  1. changed the title [-]A ``;`` in a literal block causes failed PDF build with xelatex and TL2015[/-] [+]A ``;`` in a literal block causes failed PDF build with xelatex, TL2015, and French language[/+] on Mar 11, 2017
  2. jfbu commented on Mar 11, 2017

    @jfbu
    ContributorAuthor

    This appears to be a bug in the French module of polyglossia, which does not exist anymore in TeXLive 2016, updated in March 2017. edit: it may have been rather a bug in xetex itself, see next comment

    I compile to PDF with no problem on TeXLive 2016:

    (/usr/local/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2]
    (./FOO.toc) [1] [2] (./FOO.ind)
    
    Package sphinx Warning: 
    **** SPHINX DEPRECATION WARNING:
     \strong  will be (or has been) deprecated at Sphinx 1.6
     and will be removed at Sphinx 1.7.
     \strong  already existed at Sphinx loading time! Not redefined!
     Sphinx mark-up uses only \sphinxstrong .
    ****.
    
    [1] (./FOO.aux) )
    Output written on FOO.pdf (5 pages).
    

    The deprecation warning is caused by current fontspec having already defined \strong macro.

    (With Sphinx 1.5.2 and TeXLive 2016 as of now, make latexpdf fails due to Sphinx raising an error due to already existing \strong but this has been fixed for Sphinx 1.5.3 at b0a5ec1 see issue #3428.)

    Whenever one uses xelatex or lualatex one must use most recent TeXLive installation. For this reason, no action will be taken by Sphinx.

    Leaving this issue open for some time so that people see it, then I will close. I opened the ticket for future reference if the issue arises when more Sphinx users do latex_engine = 'xelatex'. This issue is specific to the French language module of polyglossia. (edit: specific to the extent it is related to insertion of a thinspace before the semi-colon but the issue seems to go to the xetex engine itself).

  3. jfbu commented on Mar 11, 2017

    @jfbu
    ContributorAuthor

    actually it might have been a bug in xetex itself, because there is absolutely no difference between polyglossia.sty and gloss-french.ldf of my TL2015 versus TL2016. On the other hand the TeX-trace differ and this seems to come from xetex itself which went from version 0.99992 to 0.99996. (handling of \discretionary TeX primitive) I have not researched more.

    (I remove the wontfix label because it is not Sphinx issue and wontfix does not convey that)

  4. jfbu commented on Mar 12, 2017

    @jfbu
    ContributorAuthor

    Closing as this is (was) a bug of xetex, not of Sphinx. Please update your TeX installation: the bug does not show with XeTeX 0.99996.

  5. locked as resolved and limited conversation to collaborators on Aug 22, 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