]> git.lyx.org Git - features.git/commitdiff
Add new module:
authorRichard Heck <rgheck@lyx.org>
Mon, 20 Jun 2016 15:06:31 +0000 (11:06 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 20 Jun 2016 15:06:31 +0000 (11:06 -0400)
Provides two new styles:

1. An "In Premable" style that puts whatever is entered into it into the preamble.
   This can be used, if one wishes, to include preamble code in the body of the
   LyX document.
2. An "In Title" style that will put its contents into the body of the LaTeX
   document, but before \maketitle is issued. This is useful for making branches
   and notes in title-related material. (If you put these in a Standard layout,
   this signals to LyX to output \maketitle, which may then come too early.)

Due to the ForceLocal machinery, no format change is needed.

lib/layouts/InStar.module [new file with mode: 0644]

diff --git a/lib/layouts/InStar.module b/lib/layouts/InStar.module
new file mode 100644 (file)
index 0000000..07065d3
--- /dev/null
@@ -0,0 +1,28 @@
+#\DeclareLyXModule{Title and Preamble Hacks}
+#DescriptionBegin
+#Provides two new styles:
+#1. An "In Premable" style that puts whatever is entered into it into the preamble.
+#   This can be used, if one wishes, to include preamble code in the body of the
+#   LyX document.
+#2. An "In Title" style that will put its contents into the body of the LaTeX 
+#   document, but before \maketitle is issued. This is useful for making branches
+#   and notes in title-related material. (If you put these in a Standard layout,
+#   this signals to LyX to output \maketitle, which may then come too early.)
+#DescriptionEnd
+#Author: Richard Heck <rgheck@lyx.org>
+
+Format 60
+
+Style "In Preamble"
+       CopyStyle Standard
+       Category FrontMatter
+       InPreamble 1
+       ForceLocal -1
+End
+
+Style "In Title"
+       CopyStyle Standard
+       Category FrontMatter
+       InTitle 1
+       ForceLocal -1
+End