[英]XSL-FO – footnotes in lists
In my stylesheets, I use templates for three levels of nested lists: 在样式表中,我将模板用于三个级别的嵌套列表:
● level 1
▲ level 2
○ level 3
It is quite common to use footnote inside of the list. 在列表中使用脚注是很常见的。 The problem is, such footnotes in some way inherit the list's indentation:
问题是,这些脚注以某种方式继承了列表的缩进:
I have tried almost everything, from using start-indent
for the footnote to treating whitespace inside the list. 我已经尝试了几乎所有方法,从使用
start-indent
作为脚注到处理列表中的空白。 Nothing helps. 没有任何帮助。 Is there any specific attribute I could use for ignoring the parent's indentation?
我可以使用任何特定的属性来忽略父母的缩进吗?
The code for the footnote-body
: 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>
Oh, obviously: 哦,显然:
<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>
The couplet of margin-left="0pt"
and text-indent="0"
did the right thing! margin-left="0pt"
和text-indent="0"
的对联做对了! Before the text-indent
was 7pt
. 在
text-indent
之前是7pt
。 Setting it to 0
helped. 将其设置为
0
很有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.