Blank pages in PDF output when deleting Lists of figures, examples, tables...
Posted: Wed Mar 01, 2017 5:19 pm
Hello,
I am mostly using Oxygen XML Editor (17.1) in author mode (using Docbook) and I am not really confortable with configuring my file for the pdf output.
Anyway, I would like to delete the Lists of Figures, Tables, etc. coming after the TOC.
So far, I succeeded in removing the related data (their titles and corresponding references) but the corresponding blank pages are still generated in the PDF output...
Can anyone tell me what I need to add in my configuration file to get rid of these blank pages?
Many thanks for your help,
Christine
FYI, here is below the sample of my configuration file pdf.xsl :
I am mostly using Oxygen XML Editor (17.1) in author mode (using Docbook) and I am not really confortable with configuring my file for the pdf output.
Anyway, I would like to delete the Lists of Figures, Tables, etc. coming after the TOC.
So far, I succeeded in removing the related data (their titles and corresponding references) but the corresponding blank pages are still generated in the PDF output...
Can anyone tell me what I need to add in my configuration file to get rid of these blank pages?
Many thanks for your help,
Christine
FYI, here is below the sample of my configuration file pdf.xsl :
Code: Select all
<!-- == TOC == -->
<xsl:attribute-set name="toc.line.properties">
<xsl:attribute name="text-align-last">justify</xsl:attribute>
<xsl:attribute name="font-family">sans-serif</xsl:attribute>
</xsl:attribute-set>
<xsl:template name="list.of.titles">
<xsl:param name="titles" select="'table'"/>
<xsl:param name="nodes" select=".//d:table"/>
<xsl:param name="toc-context" select="."/>
<xsl:variable name="id">
<!--xsl:call-template name="object.id"/-->
</xsl:variable>
<xsl:if test="$nodes">
<fo:block id="lot...{$titles}...{$id}">
<xsl:choose>
<xsl:when test="$titles='table'">
<!--xsl:call-template name="list.of.tables.titlepage"/-->
</xsl:when>
<xsl:when test="$titles='figure'">
<!--xsl:call-template name="list.of.figures.titlepage"/-->
</xsl:when>
<xsl:when test="$titles='equation'">
<!--xsl:call-template name="list.of.equations.titlepage"/-->
</xsl:when>
<xsl:when test="$titles='example'">
<!--xsl:call-template name="list.of.examples.titlepage"/-->
</xsl:when>
<xsl:when test="$titles='procedure'">
<!--xsl:call-template name="list.of.procedures.titlepage"/-->
</xsl:when>
<xsl:otherwise>
<!--xsl:call-template name="list.of.unknowns.titlepage"/-->
</xsl:otherwise>
</xsl:choose>
<!--xsl:apply-templates select="$nodes" mode="toc">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:apply-templates-->
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="d:figure|d:table|d:example|d:equation|d:procedure" mode="toc">
<xsl:param name="toc-context" select="."/>
<!--xsl:call-template name="toc.line">
<xsl:with-param name="toc-context" select="$toc-context"/>
</xsl:call-template-->
</xsl:template>