1 #\DeclareLyXModule[changebar.sty]{Change Tracking Bars}
2 #\DeclareCategory{Annotation & Revision}
5 #Enables LyX to add vertical change bars in the margin of PDF output
6 #when Show Changes in Output is turned on and pdflatex output format is chosen.
9 #Author: Paul A. Rubin (rubin@msu.edu)
10 #Based on code proposed by Juergen Spitzmueller
11 #(http://comments.gmane.org/gmane.editors.lyx.general/66666).
13 # Note: the \providecommand statements are necessary to avoid
14 # error messages from the \renewcommand statements if change
15 # tracking is turned off in the document.
21 \usepackage{changebar}
22 \providecommand{\lyxadded}[3]{}
23 \providecommand{\lyxdeleted}{}
24 \renewcommand{\lyxadded}[3]{
25 {\protect\cbstart\color{lyxadded}{}#3\protect\cbend}
27 \renewcommand{\lyxdeleted}[3]{%
28 {\protect\cbstart\color{lyxdeleted}\sout{#3}\protect\cbend}