mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +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
)
30 lines
869 B
Plaintext
30 lines
869 B
Plaintext
#\DeclareLyXModule[changebar.sty]{Change bars}
|
|
#
|
|
#DescriptionBegin
|
|
#Enables LyX to add vertical change bars in the margin of PDF output
|
|
#when change tracking is turned on and pdflatex output format is chosen.
|
|
#DescriptionEnd
|
|
#
|
|
#Author: Paul A. Rubin (rubin@msu.edu)
|
|
#Based on code proposed by Juergen Spitzmueller
|
|
#(http://comments.gmane.org/gmane.editors.lyx.general/66666).
|
|
#
|
|
# Note: the \providecommand statements are necessary to avoid
|
|
# error messages from the \renewcommand statements if change
|
|
# tracking is turned off in the document.
|
|
#
|
|
|
|
Format 64
|
|
|
|
AddToPreamble
|
|
\usepackage{changebar}
|
|
\providecommand{\lyxadded}[3]{}
|
|
\providecommand{\lyxdeleted}{}
|
|
\renewcommand{\lyxadded}[3]{
|
|
{\protect\cbstart\color{lyxadded}{}#3\protect\cbend}
|
|
}
|
|
\renewcommand{\lyxdeleted}[3]{%
|
|
{\protect\cbstart\color{lyxdeleted}\sout{#3}\protect\cbend}
|
|
}
|
|
EndPreamble
|