I was using this:


To try and create numbered examples in my document.

However, when I load it and put the example exe in that link in one of the separate Tex files (Introduction.tex) I include in main.tex, I get:

TeX capacity exceeded, sorry [parameter stack s
\gb@ifnextchar #1#2#3->
                       \let \reserved@d =#1\def \reserved@a {#2}\def \reserv...
l.14 ... and political news \cite{washington_post}
                                                  .  More importantly, when ...

Which is not even referring to the exe example I inserted but a couple of blocks of tex above it.

For info, here is my full code before my document begins:

% [fontsize=11pt,border=5pt]
% standalone for the tree
% This overrides warnings like http://tex.stackexchange.com/questions/52576/difference-between-bookmark-levels-greater-than-one-what-does-this-mean
% This is for hyperlinks

% Not sure why I need to use this
% \usepackage{graphicx}
% \graphicspath{ {images/} }
% \usepackage[pdftex]{graphicx}
% fontsize=11pt,twoside]{scrartcl}
% This is for numbered examples

Would appreciate some help as I feel like my Latex is very messy here.


The gb4e package redefines the underscore character so that it can be used in regular text mode. Although this is very useful for linguists, it can easily cause problems and in your case the problem is with your citation key washington_post.

The best way to solve this problem is immediately after loading gb4e you issue the command


which turns off the redefinition.

  • You've saved my thesis defense presentation. Thank you. I was getting this with gb4e + beamer + abntex2 bibliographic packages. – melissa_boiko Nov 7 '16 at 1:36

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.