I found a strange problem which seems to be unique to the combination of polyglossia with german language together with csquotes and hyperref.

% XeLaTeX




\section{Section with "quote"}
"Quote in Text"

\section{Section with \enquote{quote}}
\enquote{Quote in Text}

Both, \enquote and the " shorthand, work fine in normal text but in section headings they cause this error (plus some following errors):

! Argument of " has an extra }.
<inserted text> 
l.16 \section{Section with \enquote{quote}}

Theres no problem with \setmainlanguage{english} and with PDFLaTeX (and babel) it works too.

My workaround ist to use „quotes“ directly but it takes away the flexibility provided by csquotes.


The following MWE with also following file list still reproduces the error.

% XeLaTeX




\section{Section with \enquote{quote}}
\enquote{Quote in Text}
*File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
polyglossia.sty    2014/05/21 v1.33.5 Babel replacement for XeLaTeX and LuaTeX
etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
makecmds.sty    2009/09/03 v1.0a extra command making commands
 xkeyval.sty    2014/05/25 v2.7 package option processing (HA)
 xkeyval.tex    2014/05/25 v2.7 key=value parser (HA)
fontspec.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX
   expl3.sty    2014/09/15 v5423 L3 programming layer (loader) 
expl3-code.tex    2014/09/15 v5423 L3 programming layer 
l3unicode-data.def    2014/08/12 v5276 L3 Unicode data
  xparse.sty    2014/09/15 v5423 L3 Experimental document command parser
fontspec-patches.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTe
fontspec-xetex.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX
  eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
  eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth
er characters in Unicode lower plane
 eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern
graphicx.sty    2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
   xetex.def    2014/07/25 v4.03 LaTeX color/graphics driver for XeTeX (RRM/JK)

ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
gloss-german.ldf    polyglossia: module for german
 babelsh.def    2013/04/30 Babel common definitions for shorthands
 Taken verbatim from babel.def (2013/04/15 v3.9e)
csquotes.sty    2011/10/22 v5.1d context-sensitive quotations
csquotes.def    2011/10/22 v5.1d csquotes generic definitions
hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX
hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
  hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)
  bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)
uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)
letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
 hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)
xcolor-patch.sty    2011/01/30 xcolor patch
atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)
atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)
refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)
 hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
 auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
  pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  hxetex.def    2012/11/06 v6.83m Hyperref driver for XeTeX
   puenc.def    2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)
stringenc.sty    2011/12/02 v1.10 Convert strings between diff. encodings (HO)
rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
   t3cmr.fd    2001/12/31 TIPA font definitions
 nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section
gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)
se-ascii-print.def    2011/12/02 v1.10 stringenc: Printable ASCII characters
  • Does loading fixltx2e help? Sep 21 '14 at 16:30
  • Note that you can define the outer quote that way and use them outside special contexts, provided you don't use them in e.g. section titles. Still annoying, though.
    – cfr
    Sep 21 '14 at 16:32
  • @AndrewSwann: No, it doesn’t.
    – Tobi
    Sep 22 '14 at 21:38

The quoting mechanism using " conflicts with the Babel shorthands that German polyglossia sets up. This actually happens also with pdflatex and babel, where the " used for quoting simply kills the babel shorthands without warning.

So the method can be recommended neither with babel nor with polyglossia.

If you really don't need the shorthands, do

  • Thank You! This is strange … it works in the MWE but not in my real project: XeLaTeX seems to hang as soon as the first page containing " appears … any ideas?
    – Tobi
    Sep 22 '14 at 16:50
  • @Tobi My answer has to be read: “Don't use " as a shorthand for quotes, especially if you're writing in German”.
    – egreg
    Sep 22 '14 at 17:37
  • Damn … I had a feeling that you meant something like this. But what is the alternative even the non-short way with \enquote doesn’t work …
    – Tobi
    Sep 22 '14 at 20:41
  • @Tobi \enquote works for me.
    – egreg
    Sep 22 '14 at 20:44
  • Not in my MWE … :-( made an update of TeX Live a few minutes ago but I added my file list to my question.
    – Tobi
    Sep 22 '14 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.