X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Flogicalmkup.module;h=b1d80cf281bd8de2897e6e8af2b4e8980a13284e;hb=2841a1c06315edb7dd3a264746c093ee4c1a7c9f;hp=b8d61716f9e550211754bce76a0a998f33d07cec;hpb=8ba08a53b2ac7039126a0b90fce5d19374c781ea;p=lyx.git diff --git a/lib/layouts/logicalmkup.module b/lib/layouts/logicalmkup.module index b8d61716f9..b1d80cf281 100644 --- a/lib/layouts/logicalmkup.module +++ b/lib/layouts/logicalmkup.module @@ -1,12 +1,12 @@ #\DeclareLyXModule{Logical Markup} +#\DeclareCategory{Text Markup} #DescriptionBegin #Defines some character styles for logical markup: noun, emph, strong, and code. #DescriptionEnd -#Category: charstyles # Author : Martin vermeer -Format 36 +Format 100 InsetLayout Flex:Noun LyxType charstyle @@ -19,12 +19,16 @@ InsetLayout Flex:Noun Requires noun InToc true HTMLTag span - HTMLAttr class='noun' + HTMLClass "noun" HTMLStyle span.noun { font-family: sans-serif; } EndHTMLStyle + ResetsFont true + CustomPars false + DocBookTag personname + DocBookTagType inline End @@ -38,6 +42,10 @@ InsetLayout Flex:Emph EndFont InToc true HTMLTag em + ResetsFont true + CustomPars false + DocBookTag emphasis + DocBookTagType inline End @@ -50,10 +58,15 @@ InsetLayout Flex:Strong Series Bold EndFont Preamble - \newcommand{\strong}[1]{\textbf{#1}} + \providecommand*{\strong}[1]{\textbf{#1}} EndPreamble InToc true HTMLTag strong + ResetsFont true + CustomPars false + DocBookTag personname + DocBookAttr role='bold' + DocBookTagType inline End @@ -66,8 +79,13 @@ InsetLayout Flex:Code Family Typewriter EndFont Preamble - \newcommand{\code}[1]{\texttt{#1}} + \providecommand*{\code}[1]{\texttt{#1}} EndPreamble InToc true HTMLTag code + ResetsFont true + CustomPars false + Spellcheck false + DocBookTag code + DocBookTagType inline End