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

Commit 0791f77b by Paul Rubin

Replaced the \providecommand lines.

Updated the README file.
1 parent 00b76c3c
Showing with 18 additions and 5 deletions
...@@ -10,7 +10,17 @@ In `Document > Settings... > Modules`, select `Change bars` and click `Add` foll ...@@ -10,7 +10,17 @@ In `Document > Settings... > Modules`, select `Change bars` and click `Add` foll
Change bars will appear in the output only if `Document > Change Tracking > Show Changes in Output` is selected. Change bars will appear in the output only if `Document > Change Tracking > Show Changes in Output` is selected.
**IMPORTANT:** The `Change bars` module currently does not work with XeTeX or dvipdfm output. If the LaTeX dvipost package is installed, `Change bars` will not work with any compilation method other than `PDF (pdflatex)`. ### Limitations
* The `Change bars` module currently does not work with XeTeX or dvipdfm output, and is untested with LuaTeX.
* If the LaTeX `dvipost` package is installed, `Change bars` will not work with any compilation method other than `PDF (pdflatex)`.
### Options ### Options
Please consult the package documentation for details regarding options to the `changebar` package. One commonly used option determines the placement of the change bars. The choices (fairly self-explanatory) are `outerbars`, `innerbars` (default), `leftbars` and `rightbars`. To specify the location, enter the option in `Document > Settings... > Document Class > Class options > Custom:`. Please consult the package documentation for details regarding options to the `changebar` package. One commonly used option determines the placement of the change bars. The choices (fairly self-explanatory) are `outerbars`, `innerbars` (default), `leftbars` and `rightbars`. To specify the location, enter the corresponding option value in `Document > Settings... > Document Class > Class options > Custom:`.
\ No newline at end of file
### Tested configurations
* LyX 2.1.4
+ DVI
+ PDF (pdflatex)
+ PDF (ps2pdf)
+ Postscript
\ No newline at end of file
...@@ -9,14 +9,17 @@ ...@@ -9,14 +9,17 @@
#Based on code proposed by Juergen Spitzmueller #Based on code proposed by Juergen Spitzmueller
#(http://comments.gmane.org/gmane.editors.lyx.general/66666). #(http://comments.gmane.org/gmane.editors.lyx.general/66666).
# #
# Note: Currently the code only works with pdflatex. The test # Note: the \providecommand statements are necessary to avoid
# of \pdfoutput=1 limits it to that case. # error messages from the \renewcommand statements if change
# tracking is turned off in the document.
# #
Format 49 Format 49
AddToPreamble AddToPreamble
\usepackage{changebar} \usepackage{changebar}
\providecommand{\lyxadded}[3]{}
\providecommand{\lyxdeleted}{}
\renewcommand{\lyxadded}[3]{ \renewcommand{\lyxadded}[3]{
{\protect\cbstart\color{lyxadded}{}#3\protect\cbend} {\protect\cbstart\color{lyxadded}{}#3\protect\cbend}
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!