0

It is happening something really strange. I know that many people have this error for different reasons and I am here to add another one.

I wrote a document with a certain section which is called

 \section{First derivative of $\boldsymbol{\beta}_{ij}$}

The command works all over the document but when I have it in the \section title it gives me the error:

! TeX capacity exceeded, sorry [input stack size=5000].

It is a problem of the \boldsymbol command I think because if I remove it, it works fine. Someone can help me?

EDIT: It is also strange that this works flawlessly

\section{First derivative of $\beta$}
$\boldsymbol{\beta}_{ij}$

Thanks a lot

closed as unclear what you're asking by user36296, Stefan Pinnow, TeXnician, Schweinebacke, Maarten Dhondt Jun 28 '17 at 10:11

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2

Works without problems.

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\section{First derivative of $\boldsymbol{\beta}_{ij}$}

\end{document}

enter image description here

  • It is really strange. For me it continues to not work. I checked everywhere. There is no redefinition of \boldsymbol . The first occurence of \boldsymbol I have in my document is \newcommand{\nullProj}{\boldsymbol{P}} – kalmanIsAGameChanger Jun 27 '17 at 13:28
  • 2
    @minidiable then update your question with exactly which mwe are are testing with. You can start with Henris example here. Also note exactly which engine you use to compile, pdflatex, xelatex, lualatex, and if possible provide the log file. – daleif Jun 27 '17 at 13:36
  • @minidiable Step one: try the minimal working example from this answer. In case this works for you: next step, produce a minimal document that demonstrates your problem – user36296 Jun 27 '17 at 13:36

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