]> git.lyx.org Git - features.git/commitdiff
Use \providecommand for logical markup macros
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 17 Feb 2017 07:35:41 +0000 (08:35 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 17 Feb 2017 07:35:41 +0000 (08:35 +0100)
\strong is already defined by recent fontspec.

Also use non-long definition (starred version), since the insets
only contain one paragraph.

lib/layouts/logicalmkup.module

index 33b954d474d5bfb0a063efb1219f027f67545b40..5f75acdf6eed116ffa8c823ce91d2122d970cddd 100644 (file)
@@ -52,7 +52,7 @@ InsetLayout Flex:Strong
          Series              Bold
        EndFont
        Preamble
-       \newcommand{\strong}[1]{\textbf{#1}}
+       \providecommand*{\strong}[1]{\textbf{#1}}
        EndPreamble
        InToc                 true
        HTMLTag               strong
@@ -69,7 +69,7 @@ InsetLayout Flex:Code
          Family              Typewriter
        EndFont
        Preamble
-       \newcommand{\code}[1]{\texttt{#1}}
+       \providecommand*{\code}[1]{\texttt{#1}}
        EndPreamble
        InToc                 true
        HTMLTag               code