Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.11.2023 um 13:48 +0100 schrieb Jürgen Spitzmüller:
> Also, please file a bug report. I think we should handle this case
> ans mask spaces when refstyle is used.

No longer needed. I went ahead and fixed it.

-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.11.2023 um 13:41 +0100 schrieb Jürgen Spitzmüller:
> Spaces in labels work AFAICS. Special characters are automatically
> replaced by LyX.

On a closer look, it seems that refstyle doesn't work with spaces in
label IDs. Other mechanisms do work.

So either omit spaces or use prettyref instead of refstyle (Document >
Settings > Document Class.

Also, please file a bug report. I think we should handle this case ans
mask spaces when refstyle is used.

-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.11.2023 um 13:10 +0100 schrieb Ricardo Berlasso:
> El lun, 6 nov 2023 a las 12:23, Trevor Jenkins
> () escribió:
> > I need to create labels/references to multiple tables in my LyX
> > document. There is nothing in the various Table menu items for
> > this. The Insert > Label and Insert > Cross-Reference… menu items
> > do not appear to function in that for example if I set the name of
> > the label to tab:Electoral Roll Extract and then pick that name of
> > the list when inserting the cross reference neither appears in the
> > final document. The label does not appear with the table and the
> > reference does not appear at the point of reference either.
> 
> Try renaming the label to tab:Electoral-Roll-Extract,i.e. replace the
> spaces with dashes. Does it work that way? I think that labels do not
> accept spaces or special characters. If this is the case, you have
> found a problem as the dialog should warn that the label is invalid.

Spaces in labels work AFAICS. Special characters are automatically
replaced by LyX.

I think a minimal example file showing the problem would help us
helping.

-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Ricardo Berlasso
El lun, 6 nov 2023 a las 12:23, Trevor Jenkins ()
escribió:

> I need to create labels/references to multiple tables in my LyX document.
> There is nothing in the various Table menu items for this. The Insert >
> Label and Insert > Cross-Reference… menu items do not appear to function in
> that for example if I set the name of the label to tab:Electoral Roll
> Extract and then pick that name of the list when inserting the cross
> reference neither appears in the final document. The label does not appear
> with the table and the reference does not appear at the point of reference
> either.
>

Try renaming the label to tab:Electoral-Roll-Extract,i.e. replace the
spaces with dashes. Does it work that way? I think that labels do not
accept spaces or special characters. If this is the case, you have found a
problem as the dialog should warn that the label is invalid.

Regards,
Ricardo




>
> How do I setup labels for each of my tables and then reference them in the
> text of my document?
>
>
> Version information etc.
>
> LyX 2.3.7
> macOS Sonoma 14.1 on a Mac mini M1
> TeXlive 2023
> Python 3.11.5
>
> Document class Tufte Handout
> Local layout “Include ../citeengines/basic.citeengine”(because I am using
> bibtex)
> Also using pdflscape (updated from TeXlive an hour ago) as the tables are
> very wide
>
> Regards, Trevor.
>
> <>< Re: deemed!
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Setting up labels for and references to tables in LyX

2023-11-06 Thread Trevor Jenkins
I need to create labels/references to multiple tables in my LyX document. There 
is nothing in the various Table menu items for this. The Insert > Label and 
Insert > Cross-Reference… menu items do not appear to function in that for 
example if I set the name of the label to tab:Electoral Roll Extract and then 
pick that name of the list when inserting the cross reference neither appears 
in the final document. The label does not appear with the table and the 
reference does not appear at the point of reference either.

How do I setup labels for each of my tables and then reference them in the text 
of my document?


Version information etc.

LyX 2.3.7
macOS Sonoma 14.1 on a Mac mini M1
TeXlive 2023
Python 3.11.5

Document class Tufte Handout
Local layout “Include ../citeengines/basic.citeengine”(because I am using 
bibtex)
Also using pdflscape (updated from TeXlive an hour ago) as the tables are very 
wide

Regards, Trevor.

<>< Re: deemed!

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users