docbook: Thread: Is there a built-in macro that references the current chapter?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Is there a built-in macro that references the current chapter?
From: David Horton ####@####.####
Date: 16 May 2003 21:32:01 -0000
Message-Id: <3EC559F8.8030900@megsinet.net>

Hi,

I am trying to figure out a way to reference a chapter number using an 
ampersand macro or entity.  (Please excuse me if I butcher the 
terminology here.)  Specifically, I would like to be able to say 
something like this in my document:  "Save your file as: 
Ch&chap;-file.txt" where &chap; will magically turn into the current 
chapter number giving "Ch2-file.txt" for example.  I know that I could 
define &chap somewhere, but it seems like I might be able to use some 
sort of predefined chapter counting macro from the output processor.  My 
reasoning being that I end up with chapter number on my HTML output file 
when I never defined any specific numbers in the original XML.  Does 
anyone know what this macro might be called?

Dave

[<<] [<] Page 1 of 1 [>] [>>]


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.