Next in thread → Next in month →

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

From
Mauritz Jeanson <>
Date
2008-10-23T14:31:20+00:00
ID
E75E7CAB70434DA9B85B5B6BA56058C2@D7MZ171J
Thread
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>
 </xsl:if>

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

Mauritz
Next in thread → Next in month →