Guest User

Untitled

a guest
Jan 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. latex_elements = {
  2. 'preamble': r'''
  3. makeatletter
  4. fancypagestyle{normal}{
  5. % this is the stuff in sphinx.sty
  6. fancyhf{}
  7. fancyfoot[LE,RO]{{py@HeaderFamilythepage}}
  8. % we comment this out and
  9. %fancyfoot[LO]{{py@HeaderFamilynouppercase{rightmark}}}
  10. %fancyfoot[RE]{{py@HeaderFamilynouppercase{leftmark}}}
  11. % add copyright stuff
  12. fancyfoot[LO,RE]{{This is textcopyright 2019, Sphinx Team.}}
  13. % again original stuff
  14. fancyhead[LE,RO]{{py@HeaderFamily @titlesphinxheadercommapy@release}}
  15. renewcommand{headrulewidth}{0.4pt}
  16. renewcommand{footrulewidth}{0.4pt}
  17. }
  18. % this is applied to each opening page of a chapter
  19. fancypagestyle{plain}{
  20. fancyhf{}
  21. fancyfoot[LE,RO]{{py@HeaderFamilythepage}}
  22. renewcommand{headrulewidth}{0pt}
  23. renewcommand{footrulewidth}{0.4pt}
  24. % add copyright stuff for example at left of footer on odd pages,
  25. % which is the case for chapter opening page by default
  26. fancyfoot[LO,RE]{{This is textcopyright 2019, Sphinx Team.}}
  27. }
  28. makeatother
  29. ''',
  30. }
Add Comment
Please, Sign In to add comment