這很容易。我發現這在titlepage.templates.xsl
:
<xsl:template name="book.titlepage.before.verso">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
</xsl:template>
啊哈!它是包含分頁符的模板,不是嗎?哇,我把它變成空模板時會發生?等voilà,解決方案發現:
<!-- clear verso -->
<xsl:template name="book.titlepage.verso"/>
<!-- clear page break after verso -->
<xsl:template name="book.titlepage.before.verso"/>
以及如何刪除enoying表的列表?基本的TOC(內容表)設置複製到您的模板:
<xsl:param name="generate.toc">
appendix toc,title
article/appendix nop
article toc,title
book toc,title,figure,table,example,equation
chapter toc,title
part toc,title
preface toc,title
qandadiv toc
qandaset toc
reference toc,title
sect1 toc
sect2 toc
sect3 toc
sect4 toc
sect5 toc
section toc
set toc,title
</xsl:param>
在列表中的所有,什麼是TOC被收集在文件的某些部分。如果您刪除figure,table,example,equation
,則會獲得標準目錄。
注意:該列表說,其中塊應該是內容表,並在哪些塊不應該。如果您需要減少TOC深度,則必須添加到您的模板中,例如:
<xsl:param name="toc.max.depth">2</xsl:param>