Next in thread → Next in month →

Re: [docbook-apps] showing glossary terms in header

From
Bob Stayton <>
Date
2012-10-10T18:50:45+00:00
ID
391C9E74484A4017B875EBD83A2B856D@totoro
Thread
Re: [docbook-apps] showing glossary terms in header
Hi Jeff,

I don't have a customization that does that, but I can tell 
you in general how it would be done.  The basic idea is to get each 
glossentry to generate an fo:marker element with the entry.  Then customize 
the 'header.content' template to retrieve the right marker.

 

1.  Modify the template that matches on glossentry 
(either the list version or the block version, depending on which style of 
glossary you are using) to generate a fo:marker element with the entry, with a 
new name such as 'glossentry.marker'.  It contains the text of the 
glossentry.  To see what that looks like, see the template in 
fo/sections.xsl for 'section.heading', which generates a marker named 
'section.head.marker. for section titles.  

 

2.  Modify the 'header.content' template to add a 
fo:retrieve-marker element where you want it to display, similar to that already 
used in that template for section markers.  

 

Bob Stayton
Sagehill Enterprises


From: Jeff Powanda 

Sent: Wednesday, October 10, 2012 11:03 AM

To: DocBook Apps 

Subject: [docbook-apps] showing glossary terms in 
header

I have a chapter that contains a 30-page glossary, and I?d 
like to include the first term on each page in the left and right header. Anyone 
know how to do that?

 

Regards,

Jeff
Next in thread → Next in month →