Need help? Call 517-432-6200 or ithelp@msu.edu

Blame view

changebars.module 865 Bytes
Paul Rubin committed
1 2 3 4 5 6 7 8 9 10 11
#\DeclareLyXModule[changebar]{Change bars}
#
#DescriptionBegin
#Enables LyX to add vertical change bars in the margin of PDF output
#when change tracking is turned on and pdflatex output format is chosen.
#DescriptionEnd
#
#Author: Paul A. Rubin (rubin@msu.edu)
#Based on code proposed by Juergen Spitzmueller
#(http://comments.gmane.org/gmane.editors.lyx.general/66666).
#
12 13 14
# Note: the \providecommand statements are necessary to avoid
# error messages from the \renewcommand statements if change
# tracking is turned off in the document.
Paul Rubin committed
15 16 17 18 19
#

Format 49

AddToPreamble
20
  \usepackage{changebar}
21 22
  \providecommand{\lyxadded}[3]{}
  \providecommand{\lyxdeleted}{}
23 24 25 26 27 28
  \renewcommand{\lyxadded}[3]{
    {\protect\cbstart\color{lyxadded}{}#3\protect\cbend}
  }
  \renewcommand{\lyxdeleted}[3]{%
    {\protect\cbstart\color{lyxdeleted}\sout{#3}\protect\cbend}
  }
Paul Rubin committed
29
EndPreamble