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 + +