List, is the attached correct?
>From 7879b81f3cd9fccdaa2dd16caa2e4e145753fd0a Mon Sep 17 00:00:00 2001 From: Guillaume Munch <g...@lyx.org> Date: Sun, 1 Nov 2015 22:30:38 +0000 Subject: [PATCH] Module for the changebar package
Author: Paul A. Rubin (ru...@msu.edu), based on code proposed by Juergen Spitzmueller (http://comments.gmane.org/gmane.editors.lyx.general/66666). http://mid.gmane.org/562acbc5.8030...@msu.edu --- lib/Makefile.am | 1 + lib/layouts/changebars.module | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 lib/layouts/changebars.module diff --git a/lib/Makefile.am b/lib/Makefile.am index 0b17eb1..2362e19 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -2005,6 +2005,7 @@ dist_layouts_DATA =\ layouts/book.layout \ layouts/braille.module \ layouts/broadway.layout \ + layouts/changebars.module \ layouts/chess.layout \ layouts/cl2emult.layout \ layouts/ctex-article.layout \ diff --git a/lib/layouts/changebars.module b/lib/layouts/changebars.module new file mode 100644 index 0000000..6d28e57 --- /dev/null +++ b/lib/layouts/changebars.module @@ -0,0 +1,29 @@ +#\DeclareLyXModule[changebar.sty]{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 (ru...@msu.edu) +#Based on code proposed by Juergen Spitzmueller +#(http://comments.gmane.org/gmane.editors.lyx.general/66666). +# +# Note: the \providecommand statements are necessary to avoid +# error messages from the \renewcommand statements if change +# tracking is turned off in the document. +# + +Format 49 + +AddToPreamble + \usepackage{changebar} + \providecommand{\lyxadded}[3]{} + \providecommand{\lyxdeleted}{} + \renewcommand{\lyxadded}[3]{ + {\protect\cbstart\color{lyxadded}{}#3\protect\cbend} + } + \renewcommand{\lyxdeleted}[3]{% + {\protect\cbstart\color{lyxdeleted}\sout{#3}\protect\cbend} + } +EndPreamble -- 2.1.4