I have this code:
Code: Select all
\documentclass{book}
\usepackage[english]{babel}
\usepackage{gb4e} % Glosses and examples
\usepackage{acronym} % Provides acronym support (it's actually abbreviations in general).
\begin{document}
\begin{acronym}[widthofabbrev]
\acro{E}{point of the event}
\end{acronym}
\ac{E}
\end{document}
I see from threads such as this one that gb4e can be problematic, so following the advice there, I use it after the acronym package instead of before, and all is well...until I add an acronym with maths in it:MiKTeX 2.7 wrote:! Argument of ^ has an extra }.
<inserted text>
\par
l.14 \ac{E}
Code: Select all
\documentclass{book}
\usepackage[english]{babel}
\usepackage{acronym} % Provides acronym support (it's actually abbreviations in general).
\usepackage{gb4e} % Glosses and examples
\begin{document}
\begin{acronym}[widthofabbrev]
\acro{E0}[\texorpdfstring{$\mathsf{E}_{0}$}{E0}]{speech act}
\end{acronym}
\ac{E0}
\end{document}
I know that using \texorpdfstring in acronyms is ok because I use them in other acronym declarations.MiKTeX 2.7 wrote:! Argument of ^ has an extra }.
<inserted text>
\par
l.15 \ac{E0}
I know that using maths in a texorpdfstring command is ok because Wikibooks says I can do it.
I also know that using maths in acronyms is ok, because the documentation for acronym gives this example: \acro{H2O}[$\mathrm{H_2O}$]{water}.
Also, if I comment out gb4e, there's no problems with the maths or /texorpdfstring.
I also tried using \ensuremath instead of the $s, but I still got errors.
So the problem is clearly gb4e. The date of my version is 2001-05-14.
Anyone know what's going on and how to fix or workaround it? Changing to another package for abbreviations is a last resort because I like this one and I've used it a lot so far in this work. Any ideas and time spent on this is much appreciated.
Cheers,
Pandammonium