]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/logicalmkup.module
More fixes for #9897 (wrong inset-icon size in PDF)
[lyx.git] / lib / layouts / logicalmkup.module
index c9565b94c3e3c0c40927eb47990234fcd819a73a..a0629ea776f769910b12c22df7259cab3cd452c1 100644 (file)
@@ -1,10 +1,14 @@
-#\DeclareLyXModule{Defines some character styles for logical markup: noun, emph, strong, and code.}{Logical Markup}
+#\DeclareLyXModule{Logical Markup}
+#DescriptionBegin
+#Defines some character styles for logical markup: noun, emph, strong, and code.
+#DescriptionEnd
+#Category: charstyles
 
 # Author : Martin vermeer <martin.vermeer@hut.fi>
 
-Format 5
+Format 60
 
-InsetLayout CharStyle:Noun
+InsetLayout Flex:Noun
        LyxType               charstyle
        LabelString           noun
        LatexType             command
@@ -12,13 +16,20 @@ InsetLayout CharStyle:Noun
        Font
          Shape               Smallcaps
        EndFont
-       Preamble
-       \newcommand{\noun}[1]{\textsc{#1}}
-       EndPreamble
+       Requires              noun
+       InToc                 true
+       HTMLTag               span
+       HTMLAttr              class='noun'
+       HTMLStyle
+               span.noun {
+                       font-family: sans-serif;
+               }
+       EndHTMLStyle
+       ResetsFont true
 End
 
 
-InsetLayout CharStyle:Emph
+InsetLayout Flex:Emph
        LyxType               charstyle
        LabelString           emph
        LatexType             command
@@ -26,10 +37,13 @@ InsetLayout CharStyle:Emph
        Font
          Shape               Italic
        EndFont
+       InToc                 true
+       HTMLTag               em
+       ResetsFont true
 End
 
 
-InsetLayout CharStyle:Strong
+InsetLayout Flex:Strong
        LyxType               charstyle
        LabelString           strong
        LatexType             command
@@ -40,10 +54,13 @@ InsetLayout CharStyle:Strong
        Preamble
        \newcommand{\strong}[1]{\textbf{#1}}
        EndPreamble
+       InToc                 true
+       HTMLTag               strong
+       ResetsFont true
 End
 
 
-InsetLayout CharStyle:Code
+InsetLayout Flex:Code
        LyxType               charstyle
        LabelString           code
        LatexType             command
@@ -54,5 +71,8 @@ InsetLayout CharStyle:Code
        Preamble
        \newcommand{\code}[1]{\texttt{#1}}
        EndPreamble
+       InToc                 true
+       HTMLTag               code
+       ResetsFont true
+       Spellcheck            false
 End
-