This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] one more question about italics and <lineannotation>s
- From: "Robert P. J. Day" <rpjday at mindspring dot com>
- To: Jeff Beal <jeff dot beal at ansys dot com>
- Cc: docbook apps list <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 15 May 2003 12:15:36 -0400 (EDT)
- Subject: RE: [docbook-apps] one more question about italics and <lineannotation>s
On Thu, 15 May 2003, Jeff Beal wrote:
> I would probably do:
>
> <xsl:template match="lineannotation">
> <fo:inline font-style="italic" font-family="{$body.font.family}">
> <xsl:call-template name="inline.charseq"/>
> </fo:inline>
> </xsl:template>
BTW, there is one more trick i'm going to try to do sometime down the
road, but if one if line-annotating a chunk of code or, even worse, a
sample <screen>, each line can have different amounts of markup, where a
*lot* of markup boils down to a fairly short line.
this makes it fairly difficult to add <lineannotation>s to the end of each
line so that they all line up left-justified, which is what you want
aesthetically.
so far, i've just eye-balled it and had to explicitly insert spaces
to line them up. i can see coding some fairly horrendous stylesheet
stuff that would calculate the length of the line and add the
appropriate intermediate spacing, but i'm nowhere ready for that yet,
unless someone has a simple solution.
anyway, back to work.
rday
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org