- use 6 different commands (left, center, right for header and footer)- define headers/footers "the LyX way": e.g. inserting logo images, equations, tables, boxes, create multiple-line headers/footers, use the text style dialog for the characters,...
- use an optional argument to define the output on even pages
I tested the attached module with many files and it works well as far as I can see. Attached is also an example LyX file.
What do you think? Can this go in or are there better ways to define header/footer lines? (This module can also go to branch if accepted.) regards Uwe
#\DeclareLyXModule[fancyhdr.sty]{Custom Header/Footerlines}
#DescriptionBegin
#Adds 6 commands to be able to define header and footer lines
#DescriptionEnd
Format 28
Style "Left Header"
Category FrontMatter
Margin First_Dynamic
LatexType command
LabelType Static
LabelSep xx
LatexName lhead
LabelString "Left Header:"
OptionalArgs 1
KeepEmpty 1
ParSkip 0
TopSep 0
BottomSep 0
ParSep 0
LabelFont
Color Green
EndFont
End
Style "Center Header"
CopyStyle "Left Header"
LatexName chead
LabelString "Center Header:"
End
Style "Right Header"
CopyStyle "Left Header"
LatexName rhead
LabelString "Right Header:"
End
Style "Left Footer"
CopyStyle "Left Header"
LatexName lfoot
LabelString "Left Footer:"
End
Style "Center Footer"
CopyStyle "Left Header"
LatexName cfoot
LabelString "Center Footer:"
End
Style "Right Footer"
CopyStyle "Left Header"
LatexName rfoot
LabelString "Right Footer:"
End
TestFancy.lyx
Description: application/lyx
