LyXArgument of \NoCaseChange has an extra }.

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Geek10
Posts: 1
Joined: Thu Oct 14, 2010 9:32 am

Argument of \NoCaseChange has an extra }.

Post by Geek10 »

If you have cross-referenced a subheading in your document, and want to see what it looks like in PDF form and you get the following error:

Argument of \NoCaseChange has an extra }.
Paragraph ended before \NoCaseChange was complete.

All you have to do is type one space in between the heading and the cross-reference, and the PDF will now compile. I got the above error twice for missing a single space, meaning I couldn't compile the PDF. It wasn't very helpful advice by Lyx, but maybe the code gurus would have picked that up faster than me...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

redseventyseven
Posts: 3
Joined: Fri May 06, 2011 12:02 pm

Argument of \NoCaseChange has an extra }.

Post by redseventyseven »

I tried this, came up with a new problem.

In my case, the "Argument of \NoCaseChange has an extra }" error comes up whenever a Section heading is immediately followed by a Subsection heading, and I want to reference the Section.

Adding a space between the Section heading and the label breaks any cross-references referring to it.

Back to square one it seems!

Follow-up:
The workaround I'm using is to get rid of the Subsection heading completely. In most cases the Subsection heading was something like "Introduction" or "Background", so isn't strictly necessary.
redseventyseven
Posts: 3
Joined: Fri May 06, 2011 12:02 pm

Re: Argument of \NoCaseChange has an extra }.

Post by redseventyseven »

Nope, still not right.

Cross-references to Subsections work fine, without the extra space.

Cross-references to Sections are broken: I get the error mentioned above if I don't include an extra space; I get "Section ??" in the rendered pdf if I do.

Any ideas?
redseventyseven
Posts: 3
Joined: Fri May 06, 2011 12:02 pm

Re: Argument of \NoCaseChange has an extra }.

Post by redseventyseven »

I think I finally solved it. In my case, inserting a space did not work. Putting the label on a new line (in "Standard" markup) immediately after the Section heading did work.
Post Reply