From: Uwe Stöhr Date: Tue, 28 Sep 2010 02:29:07 +0000 (+0000) Subject: customHeadersFooters.module: new module to defined header/footer lines X-Git-Tag: 2.0.0~2488 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6d7fe7552a4053fc90ff4c0778d4a37ab837f34b;p=lyx.git customHeadersFooters.module: new module to defined header/footer lines git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35522 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index 7b98211876..5681fcc794 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -2752,6 +2752,7 @@ lib_layouts_files = Split(''' broadway.layout chess.layout cl2emult.layout + customHeadersFooters.module dinbrief.layout docbook-book.layout docbook-chapter.layout diff --git a/lib/Makefile.am b/lib/Makefile.am index 809350f8df..bce1e1ee06 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1048,6 +1048,7 @@ dist_layouts_DATA =\ layouts/broadway.layout \ layouts/chess.layout \ layouts/cl2emult.layout \ + layouts/customHeadersFooters.module \ layouts/db_lyxmacros.inc \ layouts/db_stdclass.inc \ layouts/db_stdcharstyles.inc \ diff --git a/lib/layouts/customHeadersFooters.module b/lib/layouts/customHeadersFooters.module new file mode 100644 index 0000000000..012e616d58 --- /dev/null +++ b/lib/layouts/customHeadersFooters.module @@ -0,0 +1,61 @@ +#\DeclareLyXModule[fancyhdr.sty]{Custom Header/Footerlines} +#DescriptionBegin +#Adds environments to define header and footer lines +#NOTE: To use this mudule you must set the "Headings style" in +# the menu Document Settings -> Page Layout to "fancy"! +#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