From bf06e9338e41fc7d42e572ceafa0e608cfb64f5b Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 20 Jun 2016 11:06:31 -0400 Subject: [PATCH] Add new module: 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.) The ForceLocal machinery allows the module to be added to stable. (cherry picked from commit a9af5333b26d719d0b85dae2c374e32e1190e15d) --- lib/layouts/InStar.module | 28 ++++++++++++++++++++++++++++ status.22x | 6 ++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 lib/layouts/InStar.module diff --git a/lib/layouts/InStar.module b/lib/layouts/InStar.module new file mode 100644 index 0000000000..a735cd035e --- /dev/null +++ b/lib/layouts/InStar.module @@ -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 + +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 diff --git a/status.22x b/status.22x index 90ed5f1cd4..383c6b2705 100644 --- a/status.22x +++ b/status.22x @@ -25,6 +25,8 @@ What's new - Syntax highlighting in the preamble and and the source view has been made compatible with dark themes (#8325) +- Added a new module "Title and Preamble Hacks". + * DOCUMENTATION AND LOCALIZATION @@ -47,10 +49,6 @@ What's new cross-reference dialog. -* DOCUMENTATION AND LOCALIZATION - - - * BUILD/INSTALLATION -- 2.39.5