[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Which docbook element to use for a mathematical formula explanation?
This is a job for customizing your PDF output. Not choosing a different element. I think I accepted the default formatting for these. But if you want to customize the appearance, you might start by trying the customization for graphics captions described here: http://www.sagehill.net/docbookxsl/Captions.html I don't know whether that would apply to captions in all contexts. But I think it's likely. Good luck! Peter On Thu, Nov 7, 2013 at 4:25 PM, Erik Leunissen <firstname.lastname@example.org> wrote: > On 07/11/13 18:57, Peter Desjardins wrote: >> >> I use the caption element to do something similar to your example. >> >> <equation> >> <title>My Title</title> >> <mathphrase>M = (N * C) / 2</mathphrase> >> <caption> >> <para>M = An explanation</para> >> <para>N = Some more explanation</para> >> <para>C = Another explanation</para> >> </caption> >> </equation> >> > > Thanks for this example Peter. > > When I tried this approach, it appeared that all the para's are centered in > the output document (PDF). That's something I'd like differently: > > I'd like the three explanations left aligned/indented at the start of the > symbol. > > I wonder whether any other docbook elements handle such cases. Or is that > something to be handled by downstream processing (xslt / fop)? > > Greetings, > > Erik > -- > >> >> Peter >> >> On Thu, Nov 7, 2013 at 12:51 PM, Erik Leunissen <email@example.com> >> wrote: >>> >>> Hi all, >>> >>> Many scientific or technical documents explain mathematical formulae like >>> in >>> the following example (only fixed width fonts will display this example >>> as >>> intended): >>> >>> >>> >>> V = I*R (1) >>> >>> >>> where: V = voltage (volt) >>> I = current (ampere) >>> R = resistance (ohm) >>> >>> >>> >>> My question concerns the latter part, from 'where:' onwards, which >>> explains >>> the symbols. >>> >>> What docbook element(s) would you recommend for implementing such an >>> explanation (maybe considering that it's meant for print output, PDF)? >>> >>> Thanks for any advice, >>> >>> Erik Leunissen. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: firstname.lastname@example.org >>> For additional commands, e-mail: email@example.com >>> >> >