mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
b92ceba9a1
Remove the trimming operation on LabelString, LabelStringAppendix,
EndLabelString and LabelCounter. This trimming meant that quotes
strings were not preserved, which is wrong.
To preserve layouts, the Layout format has been updated to 64, so that
layout2layout can remove extra spaces on existing strings, which
ensures that behavior is unchanged for old layouts (courtesy of rgheck).
It is now possible to re-add spaces in label strings where it makes
sense.
Fixes bug #10723.
(cherry picked from commit 5c54557350
)
79 lines
1.6 KiB
Plaintext
79 lines
1.6 KiB
Plaintext
#\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 64
|
|
|
|
InsetLayout Flex:Noun
|
|
LyxType charstyle
|
|
LabelString noun
|
|
LatexType command
|
|
LatexName noun
|
|
Font
|
|
Shape Smallcaps
|
|
EndFont
|
|
Requires noun
|
|
InToc true
|
|
HTMLTag span
|
|
HTMLAttr class='noun'
|
|
HTMLStyle
|
|
span.noun {
|
|
font-family: sans-serif;
|
|
}
|
|
EndHTMLStyle
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
InsetLayout Flex:Emph
|
|
LyxType charstyle
|
|
LabelString emph
|
|
LatexType command
|
|
LatexName emph
|
|
Font
|
|
Shape Italic
|
|
EndFont
|
|
InToc true
|
|
HTMLTag em
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
InsetLayout Flex:Strong
|
|
LyxType charstyle
|
|
LabelString strong
|
|
LatexType command
|
|
LatexName strong
|
|
Font
|
|
Series Bold
|
|
EndFont
|
|
Preamble
|
|
\providecommand*{\strong}[1]{\textbf{#1}}
|
|
EndPreamble
|
|
InToc true
|
|
HTMLTag strong
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
InsetLayout Flex:Code
|
|
LyxType charstyle
|
|
LabelString code
|
|
LatexType command
|
|
LatexName code
|
|
Font
|
|
Family Typewriter
|
|
EndFont
|
|
Preamble
|
|
\providecommand*{\code}[1]{\texttt{#1}}
|
|
EndPreamble
|
|
InToc true
|
|
HTMLTag code
|
|
ResetsFont true
|
|
Spellcheck false
|
|
End
|