This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] inline equations
- From: Aidan Lister <aidanis at gmail dot com>
- To: Bob Stayton <bobs at sagehill dot net>
- Cc: docbook at lists dot oasis-open dot org
- Date: Sat, 11 Dec 2004 21:50:56 +1100
- Subject: Re: [docbook] inline equations
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=TbDao3IfJVf77F1kFQ/yolyxuJLzwx8MzBwOevVo0YxzzGzljF7WwFVH88ISfz+bDeqn1SgKBUfpcyinbVsaL/Mil8XKwBdIkig1EVafBg2IrbDqza4FbR1/ZxHtwVz5nFk4q+O6CFfNb/7Husr5seLyyGYCtNTy574kU/zyL+s=
- References: <40c9f84041209030610fc6ce1@mail.gmail.com> <0c1501c4df59$f362fa50$6400a8c0@toshiro>
- Reply-to: Aidan Lister <aidanis at gmail dot com>
Hello Bob,
Thanks very much for your reply. Your suggestion seems to be a good solution.
Perhaps this could be considered for DocBook 5.0 (If you're listening,
Mr. Walsh).
Kind Regards,
Aidan
On Sat, 11 Dec 2004 00:18:09 -0800, Bob Stayton <bobs@sagehill.net> wrote:
> As you discovered, inlineequation doesn't permit plain text. Perhaps it
> should, but it currently doesn't.
>
> One solution is to use a phrase element with role="math", and then add a
> stylesheet customization to format it. Here is the XML:
>
> <phrase role="math">Δx = FmΔt</phrase>
>
> And here is the XSL:
>
> <xsl:template match="phrase[@role = 'math']">
> <xsl:call-template name="inline.italicseq"/>
> </xsl:template>
>
> If you don't want italic, then you could just leave out the XSL
> customization. This only works for simple math that can be expressed as a
> text string. You could include subscripts and superscripts if needed, but
> you won't be able to format complex math expressions.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
>
>
> ----- Original Message -----
> From: "Aidan Lister" <aidanis@gmail.com>
> To: <docbook@lists.oasis-open.org>
> Sent: Thursday, December 09, 2004 3:06 AM
> Subject: [docbook] inline equations
>
> Hi List,
>
> If I have an inline equation, for example:
>
> "The movement of nodes is calculated with the general equation: Îx =
> FmÎt where Îx is the incremental displacement vector, F is the driving
> force vector, m is the mobility and Ît is the time increment."
>
> I'm unclear as to the markup I should be using within the XML.
>
> F, m and dt being variables should be wrapped in <varname>? The
> synopsis for this element points its application more toward
> programming. Is it still appropriate?
>
> What about the equation? Îx = FmÎt. As it's not an image, I can't use
> <inlineequation> because there would be no graphic element. Is there a
> better way?
>
> Thanks,
> Aidan
>
>