tud-cd / tudscr

TUD-Script
Other
106 stars 23 forks source link

laden von polyglossia unter lualatex wirft fehler "command already defined". #52

Closed steven-omaha closed 4 years ago

steven-omaha commented 4 years ago

Aktuelles und vollständiges tex-live.

MWE:

\documentclass[ngerman]{tudscrreprt}
\usepackage{polyglossia}

\begin{document}
Test.
\end{document}

Compilieren:

$ lualatex -pdf -halt-on-error diss.tex
lualatex: unrecognized option '-pdf'
This is LuaHBTeX, Version 1.12.0 (TeX Live 2020)
 restricted system commands enabled.
(./diss.tex
LaTeX2e <2020-02-02> patch level 5
 L3 programming layer <2020-06-18>
(/usr/local/texlive/2020/texmf-dist/tex/latex/tudscr/tudscrreprt.cls
Document Class: tudscrreprt 2020/06/18 v2.06g TUD-Script document class (scrrep
rt)
+------------------------------------------------------------------
| Corporate Design of Technische Universitaet Dresden
| Class: tudscrreprt
| Version: 2020/06/18 v2.06g TUD-Script
| Author: Falk Hanisch (hanisch.latex@outlook.com)
| Repository: https://github.com/tud-cd/tudscr
| Forum: https://latex.wcms-file3.tu-dresden.de
+------------------------------------------------------------------
(/usr/local/texlive/2020/texmf-dist/tex/latex/tudscr/tudscrbase.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/scrlfile.sty))
(/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/xpatch/xpatch.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.
tex)))
(/usr/local/texlive/2020/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(/usr/local/texlive/2020/texmf-dist/tex/generic/etexcmds/etexcmds.sty
(/usr/local/texlive/2020/texmf-dist/tex/generic/infwarerr/infwarerr.sty))
(/usr/local/texlive/2020/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/trimspaces/trimspaces.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2020/04/19 v3.30 KOMA-Script document class (report)
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/scrkbase.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(/usr/local/texlive/2020/texmf-dist/tex/latex/koma-script/typearea.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/environ/environ.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty
) (/usr/local/texlive/2020/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/ifvtex.sty)))
(/usr/local/texlive/2020/texmf-dist/tex/latex/polyglossia/polyglossia.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/makecmds/makecmds.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2020/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2020/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(/usr/local/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/ifluatex.sty)
(/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/ifxetex.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
 (/usr/local/texlive/2020/texmf-dist/tex/latex/filehook/filehook.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty))
(/usr/local/texlive/2020/texmf-dist/tex/luatex/luatexbase/luatexbase.sty
(/usr/local/texlive/2020/texmf-dist/tex/luatex/ctablestack/ctablestack.sty))

! LaTeX Error: Command \iflanguageloaded already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.1801 }

 415 words of node memory still in use:
   2 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 3 attribute, 56 glue_spec, 3 attrib
ute_list, 1 write nodes
   avail lists: 1:2,2:35,3:3,4:3,5:6,6:1,7:29,9:3,11:4
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on diss.log.

Logfile: diss.log

Ich kann gerne weitere Informationen geben, falls nötig.

mrpiggi commented 4 years ago

Workaround:

\documentclass[ngerman]{tudscrreprt}
\BeforePackage{polyglossia}{\let\iflanguageloaded\relax}
\usepackage{polyglossia}

\begin{document}
Test.
\end{document}

Bugfix folgt...

steven-omaha commented 4 years ago

Danke für den schnellen Workaround!