This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Variables in DocBook with the XSL stylesheets
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <docbook at lists dot oasis-open dot org>, "Sven Moritz Hallberg" <pesco at gmx dot de>
- Date: Sat, 24 Jul 2004 11:28:09 -0700
- Subject: Re: [docbook] Variables in DocBook with the XSL stylesheets
- References: <CB26F80A-DD46-11D8-B987-000A95C7D3AA@gmx.de>
You could use <varname role="math">, and then your stylesheet could
distinguish the two usages.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Sven Moritz Hallberg" <pesco@gmx.de>
To: <docbook@lists.oasis-open.org>
Sent: Saturday, July 24, 2004 12:55 AM
Subject: [docbook] Variables in DocBook with the XSL stylesheets
> Hi List,
>
> when writing something in DocBook today, I found myself using a
> variable in the mathematical sense, i.e. not a program variable. As in
> the sentence "Let n be a natural number.". Using <varname> around the
> 'n' typesets it in monospace while in such cases italic would be more
> appropriate. Is there an element other than <varname> for such "natural
> language variables" which I have overlooked or how would I deal with
> this? Changing the stylesheet for <varname> is not an option because I
> also have program variables that I want to keep in monospace.
>
> Thanks in advance,
> Sven Moritz
>
>
>