]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/logicalmkup.module
Amend 3058deb: Make convert_fonts robust
[lyx.git] / lib / layouts / logicalmkup.module
index fa8032c80264d6000c81401dec10661e9ab9c8cc..6d36fd1d43e990b06843a7303c16f477363a89eb 100644 (file)
@@ -2,12 +2,13 @@
 #DescriptionBegin
 #Defines some character styles for logical markup: noun, emph, strong, and code.
 #DescriptionEnd
+#Category: charstyles
 
 # Author : Martin vermeer <martin.vermeer@hut.fi>
 
-Format 11
+Format 68
 
-InsetLayout CharStyle:Noun
+InsetLayout Flex:Noun
        LyxType               charstyle
        LabelString           noun
        LatexType             command
@@ -24,10 +25,12 @@ InsetLayout CharStyle:Noun
                        font-family: sans-serif;
                }
        EndHTMLStyle
+       ResetsFont            true
+       CustomPars            false
 End
 
 
-InsetLayout CharStyle:Emph
+InsetLayout Flex:Emph
        LyxType               charstyle
        LabelString           emph
        LatexType             command
@@ -37,10 +40,12 @@ InsetLayout CharStyle:Emph
        EndFont
        InToc                 true
        HTMLTag               em
+       ResetsFont            true
+       CustomPars            false
 End
 
 
-InsetLayout CharStyle:Strong
+InsetLayout Flex:Strong
        LyxType               charstyle
        LabelString           strong
        LatexType             command
@@ -49,14 +54,16 @@ InsetLayout CharStyle:Strong
          Series              Bold
        EndFont
        Preamble
-       \newcommand{\strong}[1]{\textbf{#1}}
+       \providecommand*{\strong}[1]{\textbf{#1}}
        EndPreamble
        InToc                 true
        HTMLTag               strong
+       ResetsFont            true
+       CustomPars            false
 End
 
 
-InsetLayout CharStyle:Code
+InsetLayout Flex:Code
        LyxType               charstyle
        LabelString           code
        LatexType             command
@@ -65,8 +72,11 @@ InsetLayout CharStyle: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
 End