I have a label that references what is currently section 1.4. Can I tweak either the \ref or \label so that it appears as 4 (i.e. only the subsection number) when reffed?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
||||
|
|
|
Assuming you're sure that your reference have the form m.n, then the following code
will do: call It's more complicated if the form of the references is different (say if they are chapter.section.subsection, but not conceptually more difficult. A less efficient implementation that works also in expansion context is
|
|||
|
|