From df08a4e4b817d5ddfb6ffccb3c28ab34e14c3f53 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 18 Sep 2007 16:29:38 +0000 Subject: [PATCH] Move logical markup to a module, per Martin. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20342 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/logicalmkup.module | 58 ++++++++++++++++++++++++++++++++++ lib/layouts/stdcharstyles.inc | 52 ------------------------------ 2 files changed, 58 insertions(+), 52 deletions(-) create mode 100644 lib/layouts/logicalmkup.module diff --git a/lib/layouts/logicalmkup.module b/lib/layouts/logicalmkup.module new file mode 100644 index 0000000000..c9565b94c3 --- /dev/null +++ b/lib/layouts/logicalmkup.module @@ -0,0 +1,58 @@ +#\DeclareLyXModule{Defines some character styles for logical markup: noun, emph, strong, and code.}{Logical Markup} + +# Author : Martin vermeer + +Format 5 + +InsetLayout CharStyle:Noun + LyxType charstyle + LabelString noun + LatexType command + LatexName noun + Font + Shape Smallcaps + EndFont + Preamble + \newcommand{\noun}[1]{\textsc{#1}} + EndPreamble +End + + +InsetLayout CharStyle:Emph + LyxType charstyle + LabelString emph + LatexType command + LatexName emph + Font + Shape Italic + EndFont +End + + +InsetLayout CharStyle:Strong + LyxType charstyle + LabelString strong + LatexType command + LatexName strong + Font + Series Bold + EndFont + Preamble + \newcommand{\strong}[1]{\textbf{#1}} + EndPreamble +End + + +InsetLayout CharStyle:Code + LyxType charstyle + LabelString code + LatexType command + LatexName code + Font + Family Typewriter + EndFont + Preamble + \newcommand{\code}[1]{\texttt{#1}} + EndPreamble +End + diff --git a/lib/layouts/stdcharstyles.inc b/lib/layouts/stdcharstyles.inc index 58d4c37f33..b5b87b0df3 100644 --- a/lib/layouts/stdcharstyles.inc +++ b/lib/layouts/stdcharstyles.inc @@ -3,58 +3,6 @@ # Character Styles definition Format 5 -InsetLayout CharStyle:Noun - LyxType charstyle - LabelString noun - LatexType command - LatexName noun - Font - Shape Smallcaps - EndFont - Preamble - \newcommand{\noun}[1]{\textsc{#1}} - EndPreamble -End - - -InsetLayout CharStyle:Emph - LyxType charstyle - LabelString emph - LatexType command - LatexName emph - Font - Shape Italic - EndFont -End - - -InsetLayout CharStyle:Strong - LyxType charstyle - LabelString strong - LatexType command - LatexName strong - Font - Series Bold - EndFont - Preamble - \newcommand{\strong}[1]{\textbf{#1}} - EndPreamble -End - - -InsetLayout CharStyle:Code - LyxType charstyle - LabelString code - LatexType command - LatexName code - Font - Family Typewriter - EndFont - Preamble - \newcommand{\code}[1]{\texttt{#1}} - EndPreamble -End - # Error fallback: InsetLayout CharStyle -- 2.39.5