[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] How to get emphasis with both Bold and Italic, in FO?
> -----Original Message----- > From: Marshall Schor > > I have some text I'd like to see as both bold and italic, e.g. > "bold-italic". > I know <emphasis role="bold">, and <emphasis role="italic"> doesn't > exist, but is the default > > How do I do that in FO? You can do it by using <emphasis role="bold-italic">bold and italic text</emphasis> in your XML source and by putting the following template <xsl:template match="emphasis[@role='bold-italic']"> <fo:inline font-weight="bold" font-style="italic"> <xsl:apply-templates/> </fo:inline> </xsl:template> in your customization layer. The standard template that processes emphasis (in inline.xsl) is actually a little more complicated, but this may very well be all you need. /MJ
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]