From 09ffbb0f3574130dc0fd71a7bac732e5f148db4b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 24 Oct 2016 09:26:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B8=D0=BB=D0=B8=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D1=82=D0=B0=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- espdmarkup.module | 102 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 espdmarkup.module diff --git a/espdmarkup.module b/espdmarkup.module new file mode 100644 index 0000000..f8c0ca3 --- /dev/null +++ b/espdmarkup.module @@ -0,0 +1,102 @@ +#\DeclareLyXModule{ESPD Markup} +#DescriptionBegin +#Defines some character styles for logical markup: noun, emph, strong, and code. +#DescriptionEnd +#Category: charstyles + +# Author : Martin vermeer + +Format 60 + +InsetLayout Flex:Noun + LyxType charstyle + LabelString noun + LatexType command + LatexName noun + Font + Shape Smallcaps + EndFont + Requires noun + InToc true + HTMLTag span + HTMLAttr class='noun' + HTMLStyle + span.noun { + font-family: sans-serif; + } + EndHTMLStyle + ResetsFont true +End + + +InsetLayout Flex:Emph + LyxType charstyle + LabelString emph + LatexType command + LatexName emph + Font + Shape Italic + EndFont + InToc true + HTMLTag em + ResetsFont true +End + + +InsetLayout Flex:Strong + LyxType charstyle + LabelString strong + LatexType command + LatexName strong + Font + Series Bold + EndFont + Preamble + \newcommand{\strong}[1]{\textbf{#1}} + EndPreamble + InToc true + HTMLTag strong + ResetsFont true +End + + +InsetLayout Flex:Code + LyxType charstyle + LabelString code + LatexType command + LatexName code + Font + Family Typewriter + Size Small + Series Normal + EndFont + Preamble + \newcommand{\code}[1]{\texttt{\small{}#1}} + EndPreamble + InToc true + HTMLTag code + ResetsFont true + Spellcheck false +End + + +InsetLayout Flex:Code-Bold + LyxType charstyle + LabelString code-bold + LatexType command + LatexName codebold + Font + Family Typewriter + Size Small + Series Bold + EndFont + Preamble + \newcommand{\codebold}[1]{\texttt{\textbf{\small{}{#1}}}} + EndPreamble + InToc true + HTMLTag code + ResetsFont true + Spellcheck false +End + +