Can't put labels in small-caps headers in LyX

Issue #26 closed
Former user created an issue

``` What steps will reproduce the problem? 1. Create a chapter, or other heading that uses some sort of caps font, in a LyX document 2. Put a label inside heading 3. Click view (or build PDF) in LyX

What is the expected output? What do you see instead?

LaTeX errors:

! Argument of \NoCaseChange has an extra }. <inserted text> \par l.34 ...hap:Designing-a-good}Designing a good API}

I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away.

Runaway argument? ! Paragraph ended before \NoCaseChange was complete. <to be read again> \par l.34 ...hap:Designing-a-good}Designing a good API}

I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best.

What version of the product are you using? On what operating system? LyX 2.0.0, ClassicThesis-LyX-3.0-RC3

Please provide any additional information below. Labels other places, e.g. in figures, work fine.

```

Original issue reported on code.google.com by `medrakil` on 2011-05-12 12:59:38

Comments (3)

  1. Former user Account Deleted

    ``` As the text of a chapter header is being transformed by classicthesis.sty commands, a label command put within the header (look at what it's translated to from LyX to LaTeX through View/View source) is transformed as well. Good news is that you can put your label in the line following the header. Take a look at how it's been done at the very beginning of Chapter04.lyx. ```

    Original issue reported on code.google.com by `ivo.pletikosic` on 2011-05-12 19:18:03 - Labels added: Type-Other - Labels removed: Type-Defect

  2. Former user Account Deleted

    ``` Seems that adding a space between the header and its label might also help. ```

    Original issue reported on code.google.com by `ivo.pletikosic` on 2011-05-13 01:48:42

  3. Log in to comment