【问题标题】:XSL-FO – footnotes in listsXSL-FO – 列表中的脚注
【发布时间】:2016-01-20 11:40:27
【问题描述】:

在我的样式表中,我为三层嵌套列表使用模板:

● level 1
  ▲ level 2
    ○ level 3

在列表中使用脚注是很常见的。问题是,这样的脚注在某种程度上继承了列表的缩进:

我几乎尝试了所有方法,从使用start-indent 作为脚注到处理列表中的空格。没有什么帮助。是否有任何特定属性可以用来忽略父级的缩进?

footnote-body的代码:

<fo:footnote-body>
  <fo:block font-family="{$serif}" font-size="11pt" line-height="1.5" text-align="left" margin-left="0pt" text-indent="7pt">
    <fo:inline font-size="70%" baseline-shift="super" color="red">
      <xsl:call-template name="calculateFootnoteNumber"/>
    </fo:inline>
    <xsl:text> </xsl:text>
    <xsl:call-template name="footPars"/>
  </fo:block>
</fo:footnote-body>

【问题讨论】:

    标签: xml xslt xsl-fo


    【解决方案1】:

    哦,很明显:

    <fo:footnote-body>
                <fo:block font-family="{$serif}" font-size="11pt" line-height="1.5" text-align="left" margin-left="0pt" text-indent="0">
                    <fo:inline font-size="70%" baseline-shift="super" color="red">
                        <xsl:call-template name="calculateFootnoteNumber"/>
                    </fo:inline>
                    <xsl:text> </xsl:text>
                    <xsl:call-template name="footPars"/>
                </fo:block>
            </fo:footnote-body>
    

    margin-left="0pt"text-indent="0" 的对联做对了!在text-indent 之前是7pt。将其设置为 0 会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-14
      • 2013-01-30
      • 2012-07-28
      • 1970-01-01
      • 1970-01-01
      • 2013-04-06
      • 1970-01-01
      • 2015-12-22
      相关资源
      最近更新 更多