如何更改样式表中的页眉/页脚文本颜色?
我试过了,没有结果:
footer: {
parent: normal,
alignment: TA_CENTER,
textColor: red
},
最佳答案
页眉或页脚并不是真正的样式,因为它们是任意重组的文本。
所以,如果你想改变颜色,最简单的方法可能是使用一个类,或者一个 Angular 色。
所以,你可以这样做:
.. footer::
class:: foo
This is the footer, with style foo
或者
.. footer::
:foo:`This is the footer with style foo`
如果你做后者,你将不得不添加一个
.. role:: foo
某处。
关于css - rst2pdf 页眉/页脚文本颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12358042/