[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1019000: pandoc: LaTeX Error: Environment Shaded undefined.



Package: pandoc
Version: 2.17.1.1-1
Severity: normal
X-Debbugs-Cc: josch@debian.org

Hi,

since pandoc 2.17.1.1-1, the latex generated from rst by [this script]
fails to build with:

    [14] [15] [16]
    Chapter 5.
    (/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-cmr.cfg)
    Overfull \hbox (15.37852pt too wide) in paragraph at lines 251--258
    \TU/Inter(0)/m/n/10 for your computer to execute, but also to write programs (s
    cripts) 
    [17]
    
    ! LaTeX Error: Environment Shaded undefined.
    
    See the LaTeX manual or LaTeX Companion for explanation.
    Type  H <return>  for immediate help.
     ...                                              
                                                      
    l.278 \begin{Shaded}
                        
    ? 
    ! Emergency stop.
     ...                                              
                                                      
    l.278 \begin{Shaded}
                        
    Output written on reform-handbook.pdf (17 pages).
    Transcript written on reform-handbook.log.

Responsible for this is pandoc as evident from a debbisect run with this
reproducer script test.sh:

    #!/bin/sh
    set -e
    chroot "$1" useradd --home-dir /home/user --create-home user
    chroot "$1" runuser -u user -- env --chdir=/home/user sh -e << EOF
    pip3 install sphinx
    wget https://github.com/rsms/inter/releases/download/v3.15/Inter-3.15.zip
    mkdir -p /home/user/.local/share/fonts
    unzip Inter-3.15.zip
    mv 'Inter Desktop' /home/user/.local/share/fonts/
    fc-cache /home/user/.local/share/fonts
    git clone https://source.mnt.re/reform/reform-handbook.git
    mkdir -p reform-handbook/src/build
    env --chdir=reform-handbook/src ./build-pdf-book.sh
    EOF

And this command line:

    $ debbisect --cache=./cache --depends=python3-pip,texlive-xetex,texlive-latex-extra,pandoc,wget,unzip,fontconfig,texlive-font-utils,git,ca-certificates,texlive-fonts-recommended,ghostscript 20220813T160100Z 20220813T214310Z ./test.sh
    snapshot timestamp difference: 0.237616 days
    approximately 2 steps left to test
    #1: using cached results from debbisect.20220813T160100Z.log.good
    computation time left: 0:00:00.000067
    approximately 1 steps left to test
    #2: using cached results from debbisect.20220813T214310Z.log.bad
    snapshot timestamp difference: 0.237616 days
    computation time left: 0:00:00
    approximately 0 steps left to test
    #3: using cached result (was good) from debbisect.20220813T160100Z.log.good
    bisection finished successfully
      last good timestamp: 2022-08-13 16:01:00+00:00
      first bad timestamp: 2022-08-13 21:43:10+02:00
    the following packages differ between the last good and first bad timestamp:
      liblua5.3-0:amd64 (n.a.) -> 5.3.6-1
      libyaml-0-2:amd64 (n.a.) -> 0.2.5-1
      pandoc 2.9.2.1-3+b2 -> 2.17.1.1-1
      pandoc-data 2.9.2.1-3 -> 2.17.1.1-1
    test installing liblua5.3-0:amd64 5.3.6-1...
      installing liblua5.3-0:amd64 does not cause the problem
    test installing libyaml-0-2:amd64 0.2.5-1...
      installing libyaml-0-2:amd64 does not cause the problem
    test upgrading pandoc 2.9.2.1-3+b2 -> 2.17.1.1-1...
      upgrading pandoc triggered the problem
      additional packages that got upgraded/installed at the same time:
        liblua5.3-0:amd64 (n.a.) -> 5.3.6-1
        libyaml-0-2:amd64 (n.a.) -> 0.2.5-1
        pandoc-data 2.9.2.1-3 -> 2.17.1.1-1
    test upgrading pandoc-data 2.9.2.1-3 -> 2.17.1.1-1...
      upgrading pandoc-data triggered the problem
      additional packages that got upgraded/installed at the same time:
        liblua5.3-0:amd64 (n.a.) -> 5.3.6-1
        libyaml-0-2:amd64 (n.a.) -> 0.2.5-1
        pandoc 2.9.2.1-3+b2 -> 2.17.1.1-1

Thanks!

cheers, josch

[this script] https://source.mnt.re/reform/reform-handbook/-/blob/master/src/build-pdf-book.sh


Reply to: