Discussion:
Bug#870280: xelatex: Undefined control sequence \l__xeCJK_listings_letter_bool
Adrian Bunk
2017-07-31 14:17:12 UTC
Permalink
Package: texlive-latex-recommended
Version: 2017.20170724-1
Severity: serious
Control: affects -1 src: auto-multiple-choice src:debian-reference src:installation-guide src:maint-guide

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/auto-multiple-choice.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/debian-reference.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/installation-guide.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/maint-guide.html

These packages FTBFS with an error that can be reproduced with:

$ cat test.tex
\documentclass{article}
\usepackage{ifxetex}
\usepackage{docbook}
\setuplocale{ja}
\usepackage{xeCJK}
\setCJKmainfont{IPAexMincho}
\setCJKsansfont{IPAexGothic}
\setCJKmonofont{IPAexGothic}

\begin{document}
\begin{CJK}{UTF8}{gkai}
\lstsetup
\end{CJK}
\end{document}
$ xelatex test.tex
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Debian) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2017-04-15>
Babel <3.12> and hyphenation patterns for 9 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf/tex/latex/dblatex/style/docbook.sty
(/usr/share/texlive/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/latex/pdfpages/pdfpages.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/eso-pic/eso-pic.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/atbegshi.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def)))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/usr/share/texlive/texmf-dist/tex/latex/pdfpages/ppxetex.def))
(/usr/share/texlive/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.cfg))
(/usr/share/texlive/texmf-dist/tex/latex/tools/tabularx.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty))
(/usr/share/texlive/texmf-dist/tex/latex/footmisc/footmisc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/appendix/appendix.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_fonts.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty)))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_hyper.sty
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hxetex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hxetex.def
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/stringenc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/bookmark.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/bkm-dvipdfm.def)))
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz)) (/usr/share/texlive/texmf-dist/tex/latex/float/float.sty)
(/usr/share/texlive/texmf-dist/tex/latex/lastpage/lastpage.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_locale.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_title.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_headfoot.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_revision.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_admonition.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_changebar.sty
(/usr/share/texlive/texmf-dist/tex/latex/changebar/changebar.sty))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_biblio.sty
(/usr/share/texlive/texmf-dist/tex/latex/bibtopic/bibtopic.sty))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_table.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/lscape.sty)
(/usr/share/texlive/texmf-dist/tex/latex/colortbl/colortbl.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/hhline.sty)
(/usr/share/texmf/tex/latex/dblatex/misc/multirow2.sty))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_item.sty
(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_graphic.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_cover.sty)
(/usr/share/texmf/tex/latex/dblatex/style/dbk_verbatim.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg)))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_misc.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty))
(/usr/share/texmf/tex/latex/dblatex/style/dbk_callout.sty
(/usr/share/texlive/texmf-dist/tex/latex/overpic/overpic.sty
Package: overpic v0.53 <2010/09/13> (RN)
(/usr/share/texlive/texmf-dist/tex/latex/eepic/epic.sty
Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
)
overpic: relative positioning in percent
)) (/usr/share/texmf/tex/latex/dblatex/style/dbk_annot.sty))
(/usr/share/texlive/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texlive/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty
(/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/share/texmf/tex/latex/tipa/t3enc.def)))
(/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
*** Reloading Xunicode for encoding 'TU' ***
) (/usr/share/texlive/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def)
(/usr/share/texlive/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))
(/usr/share/texlive/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty)
(./test.aux) (/usr/share/texmf/tex/latex/tipa/t3cmr.fd)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/pdflscape.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))

Package hyperref Warning: Rerun to get /PageLabels entry.


Package changebar: Odd left : -30.81825pt Odd right : 512.23888pt
(changebar) Even left: -30.81825pt Even right: 512.23888pt.

! Undefined control sequence.
<argument> \l__xeCJK_listings_letter_bool

l.12 \lstsetup

?


It works after downgrading texlive-latex-recommended to 2017.20170629-1
Norbert Preining
2017-07-31 14:49:38 UTC
Permalink
tags 870280 + moreinfo
severity 870280 normal
thanks
Post by Adrian Bunk
\usepackage{docbook}
Using this package has been an endless source of problems. Please
provide a minimal non-working example *NOT* using docbook (dblatex)
or reassign the bug to dblatex.

dblatex is notorious for messing up all kinds of internals of all
kinds of packages, and there is nothing to be debugged in the
horrible conondrum of dblatex. It is up to the dblatex maintainers.

Best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Loading...