Next in thread → Next in month →

Re: [docbook-apps] How to get emphasis with both Bold and Italic, in FO?

From
Chris Chiasson <>
Date
2006-12-15T22:39:12+00:00
ID
Thread
Re: [docbook-apps] How to get emphasis with both Bold and Italic, in FO?
I am thinking about the role of separation of presentation and content
as it applies to emphasis. If one uses role=strong, I think it prints
as bold. Are there any roles that automatically print as italic (in
html and pdf)? (role = dainty ? (lol))

On 12/15/06, Mauritz Jeanson <> wrote:
> > -----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
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>


-- 
http://chris.chiasson.name/
Next in thread → Next in month →