Re: [docbook-apps] Listings placeable at the End of Printed Output?

2015-04-15 Thread Bob Stayton

Hi,
Yes, it is possible to do this.  You could get the stylesheet to do it 
automatically, but you could also use a special appendix file as you 
suggest to trigger it only for certain documents.  That appendix would 
need a role attribute to trigger the special processing.


In the template matching on the book element in fo/division.xsl, it 
calls the make.book.tocs template before the content.  That template 
checks the generate.toc stylesheet param to see which lists to 
generate.  You would want to set generate.toc to just book toc,title 
so it doesn't generate the other lists in the front.


Then you create a custom template for your special appendix to generate 
the lists of titles, borrowing much of the code from the 
make.book.tocs template, something like:


xsl:template match=d:appendix[@role = 'lot']

  xsl:variable name=lot-master-reference
xsl:call-template name=select.pagemaster
  xsl:with-param name=pageclass select='lot'/
/xsl:call-template
  /xsl:variable

  xsl:if test=//d:figure
xsl:call-template name=page.sequence
  xsl:with-param name=master-reference
  select=$lot-master-reference/
  xsl:with-param name=element select='toc'/
  xsl:with-param name=gentext-key select='ListofFigures'/
  xsl:with-param name=content
xsl:call-template name=list.of.titles
  xsl:with-param name=titles select='figure'/
  xsl:with-param name=nodes select=//d:figure/
/xsl:call-template
  /xsl:with-param
/xsl:call-template

!-- repeat for tables, examples, etc. --
  /xsl:if

Note you need to change the select attribute for figure from .//figure 
(the context relative to the book element) to //figure so the appendix 
context can find the figure elements.


This special appendix will also generate an entry in the main TOC, 
unless you further customize to turn that off or change its appearance.


Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 4/15/2015 3:11 AM, Eisele, Kai Alexander wrote:

Hi,

Is there any chance to have lists of figures, tables and examples
positioned at the end of printed output (PDF documents)?

By default, the listings appear at the beginning of the documents right
after the actual TOC.

Is it possible to customize a sort of document appendix, that contains
the lists of figures, tables and examples?

Regards


*Kai Alexander Eisele*
SAP CC

*CENIT AG *
Industriestraße 52-54
D-70565 Stuttgart
Phone:  +49 (0) 711-78 25-3241
Fax:+49 (0)711 7825 44-4145

k.eis...@cenit.de mailto:k.eis...@cenit.de

www.cenit.com http://www.cenit.com/en_EN.html__


CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711
7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.de
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen,
Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des
Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166
1040 00 SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532
0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777



-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Spurious (?) spaces after/before titles in chunked HTML prev/next navigation bar

2015-04-15 Thread Bob Stayton

Hi,
It seems those space characters have been present since Norm Walsh wrote 
the original XSL stylesheets many years ago.  Based on how they are 
used, I'm guessing they were intended as padding to prevent long content 
in different columns from abutting.  That function would better be done 
using CSS padding properties in the table cells.  I don't think you risk 
anything in removing those characters if you add such CSS.


Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 4/14/2015 12:45 PM, David Clunie wrote:

Hi

Someone noticed that in the chunked html output, there are spaces
after the title that is the previous link and before the title
that is the next link in the navfooter.

This seems to be a consequence of the (deliberate) insertion
of a non-breaking space character in the stylesheets.

See xsl:template name=footer.navigation/ in html/chunk-common.xsl
in docbook-xsl-ns-1.78.1.

The block xsl:if test=$row2/ does this, before or after the
insertion of the titles (call to xsl:apply-templates select=$prev
mode=object.title.markup/.

Since the entire template is riddled with insertions of #160;, there
is presumably a good reason, and I am reluctant to mess with this
(e.g., just remove the xsl:text#160;/xsl:text before/after
the object.title.markup (or indeed after/before the prev and next in
row 1), without knowing why.

David

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org





-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Listings placeable at the End of Printed Output?

2015-04-15 Thread Eisele, Kai Alexander
Hi,

Is there any chance to have lists of figures, tables and examples positioned at 
the end of printed output (PDF documents)?

By default, the listings appear at the beginning of the documents right after 
the actual TOC.

Is it possible to customize a sort of document appendix, that contains the 
lists of figures, tables and examples?

Regards

Kai Alexander Eisele
SAP CC

CENIT AG
Industriestraße 52-54
D-70565 Stuttgart
Phone:  +49 (0) 711-78 25-3241
Fax:+49 (0)711 7825 44-4145

k.eis...@cenit.demailto:k.eis...@cenit.de
www.cenit.comhttp://www.cenit.com/en_EN.html




CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: 
+49 711 7825-4000, Internet: www.cenit.de
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, 
Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), 
Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 
SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 
00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777