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.
This commit is contained in:
Juergen Spitzmueller 2017-02-17 08:35:41 +01:00
parent 53933a4927
commit c8f40508e7
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,7 @@ InsetLayout Flex:Strong
Series Bold Series Bold
EndFont EndFont
Preamble Preamble
\newcommand{\strong}[1]{\textbf{#1}} \providecommand*{\strong}[1]{\textbf{#1}}
EndPreamble EndPreamble
InToc true InToc true
HTMLTag strong HTMLTag strong
@ -69,7 +69,7 @@ InsetLayout Flex:Code
Family Typewriter Family Typewriter
EndFont EndFont
Preamble Preamble
\newcommand{\code}[1]{\texttt{#1}} \providecommand*{\code}[1]{\texttt{#1}}
EndPreamble EndPreamble
InToc true InToc true
HTMLTag code HTMLTag code

View File

@ -134,6 +134,9 @@ What's new
- Fix CopyRightYear with ACMSiggraph 0.9.3. - Fix CopyRightYear with ACMSiggraph 0.9.3.
- Use \providecommand for logical markup macros. This fixes a LaTeX error
with strong and fontenc.
* LYX2LYX * LYX2LYX