[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Having chapter titles with numbers and figures without chapter prefix
Hello, Hmm, setting prefix to an empty string worked for me. What processor did you use? The choose statement has only two choices, so if you got per-chapter numbering you should also have gotten the separator character. I'm not sure I understand your question about page numbers restarting. The default behavior is to not restart page numbering on each chapter. In any case, the template named 'initial.page.number' in fo/pagesetup.xsl is called at the beginning of each page-sequence to add the initial-page-number FO property. You can customize that as needed. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Juha Mustonen" <juha.mustonen@iki.fi> To: <docbook-apps@lists.oasis-open.org>; "Bob Stayton" <bobs@sagehill.net> Sent: Friday, September 01, 2006 8:17 AM Subject: Re: [docbook-apps] Having chapter titles with numbers and figures without chapter prefix > Hello Bob, and thanks for the reply. > > Setting prefix empty did work, but test underneath still counted per > chapter > making numbers starting all over again. Anyway, commenting out everything > else but <xsl:number format="1" from="book|article" level="any"/> did the > trick. > > By the way, is there also a way to set initial page number that does not > restart on every chapter? Having initial.page.number=auto does work most > of > the cases, but if I'd really need to set it, what might be the method? > > May I also thank for the excellent resource DocBook XSL: The Complete > Guide, > which have been invaluable source of information while trying to match my > thesis with university guidelines :) > > > Regards, > Juha > >> Hi, >> There is no parameter that does that (although it would make a nice >> feature >> request 8^). A small customization can do it. >> >> The number for an element is generated by processing the element in >> mode="label.markup". Those templates are in common/labels.xsl in the >> DocBook distribution. You can customize the template with >> match="figure|table|example" mode="label.markup". The easiest way would >> be >> to set the "prefix" variable to an empty string. >> >> <xsl:variable name="prefix" select="''"/> >> >> Then the test below that will use an xsl:number that counts from the >> book >> or article rather than the chapter. >> >> Bob Stayton >> Sagehill Enterprises >> DocBook Consulting >> bobs@sagehill.net >> >> >> ----- Original Message ----- >> From: "Juha Mustonen" <juha.mustonen@iki.fi> >> To: "Docbook Apps" <docbook-apps@lists.oasis-open.org> >> Sent: Thursday, August 31, 2006 8:33 AM >> Subject: [docbook-apps] Having chapter titles with numbers and figures >> without chapter prefix >> >> > Hello >> > >> > So far, I have failed to find a suitable xsl param combination for >> > having >> > numbers in chapter titles but not in figures, tables etc. Idea is to >> > have >> > figure titles like: Figure 1, Figure 2 instead of Figure 1.1, Figure >> > 1.2, >> > so >> > that numbering would increase throughout the document (and chapters). >> > >> > Setting chapter.autolabel=0 works for figure titles, but then I need >> > them >> > for >> > chapter and section titles. >> > >> > Any ideas? >> > >> > >> > Regards, >> > Juha >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> > For additional commands, e-mail: >> > docbook-apps-help@lists.oasis-open.org >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]