1

How can I change the header / footer text color in the style sheet?

I tried, fruitlessly:

footer: {
  parent: normal,
  alignment: TA_CENTER,
  textColor: red
},
Chris
  • 44,602
  • 16
  • 137
  • 156
Davoud Taghawi-Nejad
  • 16,142
  • 12
  • 62
  • 82

1 Answers1

2

The header or footer are not really styled that way because they are arbitrary restructured text.

So, if you want to change the color, the easiest way is probably to use a class, or a role.

So, you could do:

.. footer::

   class:: foo

   This is the footer, with style foo

Or

.. footer::

   :foo:`This is the footer with style foo`

If you do the latter, you will have to add a

.. role:: foo

somewhere.

Roberto Alsina
  • 782
  • 4
  • 8