OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] Adding registered trademark to title on book title page

> -----Original Message-----
> From: Ken Morse 
> I'd like to add a registered trademark symbol to a title on the recto
> side of a book title page. I don't think changing the contents of the
> title tag makes sense since I'll want to use that elsewhere without
> the mark. In addition, I'll probably want to control how the mark
> prints (maybe a smaller font, etc.) separately from the title.
> Any advice on how best accomplish this?

The block containing the book title on a recto titlepage is output by the
division.title template in division.xsl (it is also used for formatting
titles for set, part, and reference). 

Customize this template by adding the following immediately after
<xsl:copy-of select="$title"/>:

 <xsl:if test="parent::*[local-name() = 'book'] or
ancestor::*[2][local-name() = 'book']">
   <fo:inline color="red">&#8482;</fo:inline>

This appends the trademark symbol (here coloured red) to book titles.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]