Source code for pyexlatex.models.page.header

from pyexlatex.models.item import SimpleItem, ItemBase
from pyexlatex.models.containeritem import ContainerItem
from pyexlatex.models.section.base import TextAreaMixin
from pyexlatex.logic.builder import _build


[docs]class RightHeader(TextAreaMixin, SimpleItem): name = 'rhead'
[docs] def __init__(self, contents): super().__init__(self.name, contents)
[docs]class CenterHeader(TextAreaMixin, SimpleItem): name = 'chead'
[docs] def __init__(self, contents): super().__init__(self.name, contents)
[docs]class LeftHeader(TextAreaMixin, SimpleItem): name = 'lhead'
[docs] def __init__(self, contents): super().__init__(self.name, contents)
[docs]class FancyHeader(SimpleItem): name = 'fancyhead'
[docs] def __init__(self, contents): super().__init__(self.name, contents)
remove_header_line = r'\renewcommand{\headrulewidth}{0pt}' remove_header = _build([ remove_header_line, FancyHeader('') # remove header default contents ])