On 23. sep. 2010 03:50, Uwe Stöhr wrote:
It a long-standing known issue LyX misses a proper way to define custom
header/footer lines while such lines are necessary for many documents.
After helping a colleague to define a strange header line (which costs
me half an hour), I created a new module that provides commands to
define those lines. With this module you can
- 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.
Nice - for single-sided layouts.
This can easily be extended for double-sided layouts as well.
12 fields - the same 6 but discriminating between even and odd pages.
I see two ways of doing this:
1. Create a similiar module for double-sided layouts.
Disadvantage: trickier to switch between single-side and double-side.
I do this now and then, having to re-do the headers
each time would be a killer.
2. Update this module. Replace \lhead with \fancyhead[LO]. (and
similiar for \chead, \rhead and foot commands) No change for
single-sided layouts (they use odd pages all the way). For
even pages, add 6 more left/center/right top/bottom that
applies to even pages only.
Advantage: Easy swithcing between single-side and two-sided layouts
Disadvantage: Existing two-sided documents using this layout will
change! Today, they get identical headers on
odd and even pages.
The extension will change running headers on the
even pages, until the user add the right fields.
This is normally considered breakage, but perhaps it is OK
because:
a. customHeadersFooters has not been in a production release yet.
b. identical headers on odd/even pages is a big limitation for
two-sided layouts, few people will want to keep a document
like that
c. avoid having two such modules.
What do you think?
Helge Hafting