2019-04-07 09:21:21 +00:00
|
|
|
#\DeclareLyXModule[changebar.sty]{Change Tracking Bars}
|
|
|
|
#\DeclareCategory{Annotation & Revision}
|
2015-11-01 22:30:38 +00:00
|
|
|
#
|
|
|
|
#DescriptionBegin
|
|
|
|
#Enables LyX to add vertical change bars in the margin of PDF output
|
2018-12-31 11:14:46 +00:00
|
|
|
#when Show Changes in Output is turned on and pdflatex output format is chosen.
|
2015-11-01 22:30:38 +00:00
|
|
|
#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.
|
|
|
|
#
|
|
|
|
|
2019-03-26 16:46:21 +00:00
|
|
|
Format 72
|
2015-11-01 22:30:38 +00:00
|
|
|
|
|
|
|
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
|