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