]> git.lyx.org Git - lyx.git/blob - lib/layouts/changebars.module
557ffe6a280ce735b3b11ebad266e5e4b58a42cc
[lyx.git] / lib / layouts / changebars.module
1 #\DeclareLyXModule[changebar.sty]{Change bars}
2 #
3 #DescriptionBegin
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.
6 #DescriptionEnd
7 #
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).
11 #
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.
15 #
16
17 Format 68
18
19 AddToPreamble
20   \usepackage{changebar}
21   \providecommand{\lyxadded}[3]{}
22   \providecommand{\lyxdeleted}{}
23   \renewcommand{\lyxadded}[3]{
24     {\protect\cbstart\color{lyxadded}{}#3\protect\cbend}
25   }
26   \renewcommand{\lyxdeleted}[3]{%
27     {\protect\cbstart\color{lyxdeleted}\sout{#3}\protect\cbend}
28   }
29 EndPreamble