]> git.lyx.org Git - lyx.git/blob - lib/layouts/changebars.module
Fix grammar
[lyx.git] / lib / layouts / changebars.module
1 #\DeclareLyXModule[changebar.sty]{Change Tracking Bars}
2 #\DeclareCategory{Annotation & Revision}
3 #
4 #DescriptionBegin
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.
7 #DescriptionEnd
8 #
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).
12 #
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.
16 #
17
18 Format 74
19
20 AddToPreamble
21   \usepackage{changebar}
22   \providecommand{\lyxadded}[3]{}
23   \providecommand{\lyxdeleted}{}
24   \renewcommand{\lyxadded}[3]{
25     {\protect\cbstart\color{lyxadded}{}#3\protect\cbend}
26   }
27   \renewcommand{\lyxdeleted}[3]{%
28     {\protect\cbstart\color{lyxdeleted}\sout{#3}\protect\cbend}
29   }
30 EndPreamble