[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
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 > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]