[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?
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 <mj@johanneberg.com> 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: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > -- http://chris.chiasson.name/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]