Skip to main content
Remove wrong markdown title markup
Link
gusbrs
  • 15.1k
  • 2
  • 27
  • 71

`microtype` microtype, `csquotes` autoquotecsquotes active quotes and `itemize`itemize interaction

Source Link
gusbrs
  • 15.1k
  • 2
  • 27
  • 71

`microtype`, `csquotes` autoquote and `itemize` interaction

I've met today a bad interaction between microtype, csquotes autoquotes, and the itemize environment, essentially leading to a "forgotten \endgroup" error.

A MWE:

\documentclass{article}

\usepackage{microtype}

\usepackage{csquotes}
\MakeAutoQuote{“}{”}

\begin{document}

\begin{itemize}
\item “foo”
\end{itemize}

\end{document}

Which leads to error:

./document.tex:11: Extra }, or forgotten \endgroup.
<recently read> }
                 
l.11 \item “
              foo”
./document.tex:12: Missing } inserted.
<inserted text> 
                }
l.12 \end{itemize}

I can only reproduce when both packages are loaded and the active quote immediately follows \item (passing an empty optional argument to it does not change things).

Am I missing something, or is this really a bad interaction between the packages? (I'm pretty sure this used to work, but my memory is known to have failed in similar instances...). If it is indeed, I suppose a report is due. I'd gladly do it, but I'm not sure whom to with this. Pointers in that regard are welcome. As is some temporary workaround.