2

This sample gives me ! Extra \else. l.6 \else and I don't see why. It is caused by line 5 and the sample is fine if I pull it out of the if or invert the logic, so the \setdefaultlanguage isn't followed by \else. Why is this happening?

\documentclass{article}
\usepackage{iftex}
\ifXeTeX
    \usepackage{polyglossia}
    \setdefaultlanguage{german}
\else
   \PackageError{foo}{Cannot build with (pdf-)latex}{Use Xelatex or Lualatex}
   \stop
\fi

closed as off-topic by egreg, David Carlisle, Werner, mafp, Stefan Kottwitz Dec 8 '13 at 0:48

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • with xelatex in texlive2013 I get no error and just reach the * prompt typing \stop exits cleanly – David Carlisle Sep 5 '13 at 20:56
  • 1
    I too have no problem. It should be \expandafter\stop, anyway, so the conditional is properly terminated before the job ends in case the false branch is followed. – egreg Sep 5 '13 at 20:59
  • This is puzzling, I also use texlive 2013. Any idea where to start debugging this? – Max Sep 5 '13 at 21:00
  • @Max try tlmgr update --all – David Carlisle Sep 5 '13 at 21:02
  • 5
    This question appears to be off-topic because it is about a problem solved with a software update – egreg Dec 7 '13 at 23:35

Browse other questions tagged or ask your own question.