This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] one more question about italics and <lineannotation>s


>   so far, so good, but it's still not ideal, as the l.a.
> is, by default, rendered in italicized monospace font,
> which still doesn't look great.  i'd like to customize
> my stylesheet one more time to have l.a.s be the italicized
> form of the standard serif font, which is the way i've
> seen *most* books do it.
> 
>   not being an expert at FO stuff yet, what would it take
> to customize the above to add that the font body should
> be non-monospace?


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>

You could also do:
 <xsl:template match="lineannotation">
  <fo:inline font-family="{$body.font.family}">
   <xsl:apply-imports/>
  </fo:inline>
 </xsl:template>



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]