1

My sections are labeled, for example, as "5.3," where the 5 is the chapter number and the 3 is the section number. Using \ref{} to refer to that section would produce "5.3"; however, I would only like it to return "3" (the § number only, without the chapter number). Is this possible? How?

Geremia
  • 2,201
  • You can follow the guidelines in Extract Section number from Equation reference. Specifically, zref provides a neat interface to provide what you're after (in my answer it's \secref). – Werner Apr 15 '14 at 22:14
  • 2
    You tagged this question using [tag:svmono]. If this is for an article submission, I wouldn't bother with creating special references. Regardless, since you might be using a special setup, you should ... always ... create something that we can play with, like a minimal working example (MWE). Is that too much to ask? – Werner Apr 15 '14 at 22:18
  • 4
    In fact, if it is for submission it is better not to do this as you will only annoy the copy editor. – cfr Apr 15 '14 at 22:21
  • @Werner: It seems there's a conflict with zref and svmono… – Geremia Apr 15 '14 at 22:21
  • @Geremia: I can mock up a minimal example using zref and svmono without problem. Can you please provide us with something that replicates your problem? – Werner Apr 15 '14 at 22:25
  • 1
    It is very likely that you will get an Author Query from the typesetter/copy editor to specify the reference if you really going to use bare section refs. Apart from that your problem is not easy to solve unless you redefine the way section numbers are written into your aux-files. Anyhow, it would be quite helpful to know whether you need the section number for (real) cross-referencing or whether you need it to do stuff with it, like, say, creating a counter for a custom environment. – Lupino Apr 16 '14 at 06:42

0 Answers0