PDF出力するときに空白ページを出力させない方法
DITA-OTでPDF出力を行う時,印刷して見開きの本で読むことを考慮してか,章の開始を奇数ページに調整するように空白ページを挟むようにしています.
本にするのならいいのですが,PDFのままもしくは綴じ込みにしないのであれば,空白ページは要りません.
参考にさせてもらったのは,アンテナハウスさんの情報でした.
これを元にDITA-OTを変更します.
force-page-countの情報はfo\cfg\common\fo\attrs\commons-attr.xslにあります.
<xsl:attribute-set name="__force__page__count"> <xsl:attribute name="force-page-count"> <xsl:choose> <xsl:when test="name(/*) = 'bookmap'"> <xsl:value-of select="'even'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'auto'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set>
これをそのまま直すのではなく,fo\Customization\fo\attrs\cutoms.xslにコピーします.
そこで修正します.
<xsl:attribute-set name="__force__page__count"> <xsl:attribute name="force-page-count"> <xsl:choose> <xsl:when test="name(/*) = 'bookmap'"> <xsl:value-of select="'no-force'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'auto'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set>
空白ページを作らないでPDFの出力ができるようになります.