label whitespaces no more

Jürgen Spitzmüller jspitzm at gmail.com
Sat Sep 7 16:06:03 UTC 2024


Am Sonntag, dem 08.09.2024 um 02:26 +1200 schrieb Igor:
> Seems like a refstyle's bug. The workaround is to enclose the label
> name within additional {} when referencing and leave the original
> label as the user intended.
> 
> For example. Firstly, we'd need to use something like \secref to
> actually expose this refstyle's problem. Insert the Ctrl+L TeX
> commands into a section and refer it to it later like so:
> 
> \label{sec:A B}
> ...
> \secref{A B} -- can't find the label sec:AB -- refstyle has eaten up
> my whitespace!
> 
> \secref{{A B}} -- works!

Maybe, but as long as refstyle is not fixed (and I believe it is not
maintained any longer), escaping whitespace seems better than such
extra-grouping.

Long term, more purpose-specific escaping seems the way to go, but this
requires some work.

> I've relied on my labels to be preserved internally with whitespaces
> etc. because it's never been forbidden before. I'd have to modify all
> my manuscripts.

What is the concrete problem you have? I'd like to understand that.

-- 
Jürgen


More information about the lyx-devel mailing list