]> git.lyx.org Git - lyx.git/commitdiff
customHeadersFooters.module: new module to defined header/footer lines
authorUwe Stöhr <uwestoehr@web.de>
Tue, 28 Sep 2010 02:29:07 +0000 (02:29 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 28 Sep 2010 02:29:07 +0000 (02:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35522 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_manifest.py
lib/Makefile.am
lib/layouts/customHeadersFooters.module [new file with mode: 0644]

index 7b9821187651ed4c29014f6554b06db3ea499a58..5681fcc794449e5973687afca596af949e825b4c 100644 (file)
@@ -2752,6 +2752,7 @@ lib_layouts_files = Split('''
     broadway.layout
     chess.layout
     cl2emult.layout
+    customHeadersFooters.module
     dinbrief.layout
     docbook-book.layout
     docbook-chapter.layout
index 809350f8df5864cf10a91ae657c373b0d798a317..bce1e1ee06270a3c78e923b2074c203c62f413ce 100644 (file)
@@ -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 (file)
index 0000000..012e616
--- /dev/null
@@ -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