commit c8f40508e7df36616f1f881364b9adab6e1b6300
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Fri Feb 17 08:35:41 2017 +0100

    Use \providecommand for logical markup macros
    
    \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 |    4 ++--
 status.22x                     |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/layouts/logicalmkup.module b/lib/layouts/logicalmkup.module
index a0629ea..0bf5332 100644
--- a/lib/layouts/logicalmkup.module
+++ b/lib/layouts/logicalmkup.module
@@ -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
diff --git a/status.22x b/status.22x
index 8718825..af1f39f 100644
--- a/status.22x
+++ b/status.22x
@@ -134,6 +134,9 @@ What's new
 
 - Fix CopyRightYear with ACMSiggraph 0.9.3.
 
+- Use \providecommand for logical markup macros. This fixes a LaTeX error
+  with strong and fontenc.
+
 
 * LYX2LYX
 

Reply via email to