lyx-devel Digest, Vol 254, Issue 1
Igor
rychphd at gmail.com
Mon Sep 9 09:20:59 UTC 2024
==========
Cc: Danie Els
Hi Dannie,
Seeing that you've updated the refstyle packages quite recently, on
2024/02/01, could you comment on the issue below? Full discussion
starts from https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222793.html.
Basically, due to a refstyle bug (?) of eating up the whitespaces from
label names aka " refstyle does not support spaces in references", the
LyX developers have to either escape ALL label names or as suggested
in the patch below, to enclose the label's name within additional {}
just for refstyle's formatted references uses...
I was wondering if you could rather fix it inside refstyle.sty?!
Thanks,
Igor
==========
> > Seems like a refstyle's bug.
> > \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.
>
> > > \secref{{A B}} -- works!
> >
> > Actually, considering all eventualities, this might be the best
> > solution, as the problem only concerns refstyle's formatted ref
> > commands. All other solutions that I could think of add unnecessary
> > complication.
> > Does tex2lyx need some adaptation to avoid {{{{labels}}}} on
> > roundtrips?
>
> Yes, you're right.
Jürgen, thank you for the patch and the others for the discussion. Let
me answer this question of yours:
> Would it work for you if we limited the space escaping to the case only
> where refstyle is used? I.e., could you uncheck "Use refstyle"?
-- refstyle gets loaded automatically when I choose Formatted
reference through LyX GUI. Ironically I redefine most of the
refstyle's formatted commands underneath :) I'm going to test to see
how I can implement this with "Use refstyle" unchecked in the future
documents.
Thanks,
Igor
More information about the lyx-devel
mailing list