Section references

Steve Hnizdur houndean at
Wed Jul 21 09:58:58 UTC 2021


I would like to show in

- TOC,
- Headings and
- the heading to a section

a simple number <section>, but when referencing it in the text body, 
display it as <chapter>.<section>. I have tried titleformat which just 
affects the heading to a section and overrides the setting \thesection 
which affects all of TOC, Headings (using fancyhdr) and references.

Neither prettyref or refstyle seem to provide this facility.

Ideally it would be nice to set \thesection and have some way to just 
format the references.

There is an obvious clunky way of putting "Section <section> of Chapter 
<chapter>" in the text but I would like to avoid this if possible.

Hopefully this makes sense and any thoughts would be very welcome.

I'm using on Ubuntu 18.04.

Steve Hnizdur

More information about the lyx-users mailing list