This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] something like LaTeX theorems
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <docbook at lists dot oasis-open dot org>, "Paul Rudin" <paul dot rudin at ntlworld dot com>
- Date: Thu, 27 Jan 2005 13:13:48 -0800
- Subject: Re: [docbook] something like LaTeX theorems
- References: <87pszrky29.fsf@rudin.co.uk>
Nothing like that exists in the XSL stylesheets, but it could be done with a
customization. You could do formalpara with a role attribute to indicate
that it is a theorem. The template matching such elements would use
something like this generate the continuous numbers:
<xsl:number count="formalpara[@role = 'theorem']" level="any" />
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Paul Rudin" <paul.rudin@ntlworld.com>
To: <docbook@lists.oasis-open.org>
Sent: Thursday, January 27, 2005 1:42 AM
Subject: [docbook] something like LaTeX theorems
>
> With LaTeX each theorem is numbered in sequence and the numbering of
> theorems is independent of thing like chapter and section numbers. It
> would be nice if there where something similar in docbook. A theorem
> would be, I guess, somewhat similar to something like a formalpara
> element, but the numbering is global across the document whereever the
> elements occur.
>
> I'm correct in thinking that nothing like this currently exists?
>
>
>
>