I'm a very new LaTeX user and I'm having some difficulty with a LaTeX error. I'm using overleaf and the error when trying to recompile is this:
./main.aux:130:
Missing \endcsname inserted.
<to be read again>
\protect
l.130 ...f Cytochrome \textit {$bo_3$}}{{2.1}{8}}
The file was working fine last night when I left it but today decided it doesn't want to compile. I'm not sure what the {{2.1}{8}} means either. I have looked online for a solution which suggested that the labels I'd used weren't correct so I changed the labels, same error, and deleted the figure which contained the labels, still the same error.
I'd really appreciate any help on this!! Thanks
The link for read&edit is https://www.overleaf.com/9227780jqrvxqvgmqng
Best Answer
You have
which doesn't cater for
\textit
(which you probably have removed since).Note that labels should be strings of characters (possibly meaningful, of course): they should not contain commands and also formulas are best not included.
Spaces might be dangerous, essentially because the editor may use them for line breaking, which hinders readability of the typescript.
Better
A command such as
\textit
inside a\label
will definitely break exactly as in your error message.After such errors, remember to remove the
.aux
file before rerunning LaTeX.