如何更改样式表中的页眉/页脚文本颜色?
我试过了,但没有结果:
footer: {
parent: normal,
alignment: TA_CENTER,
textColor: red
},发布于 2012-11-27 08:46:28
页眉或页脚实际上并不是这样设计的,因为它们是任意重新构造的文本。
因此,如果您想要更改颜色,最简单的方法可能是使用类或角色。
所以,你可以这样做:
.. footer::
class:: foo
This is the footer, with style foo或
.. footer::
:foo:`This is the footer with style foo`如果执行后一种操作,则必须添加
.. role:: foo在某个地方。
https://stackoverflow.com/questions/12358042
复制相似问题