[LyX/master] Output proper driver to changebar package when using dvi chain

Juergen Spitzmueller spitz at lyx.org
Sat Jan 11 15:34:46 UTC 2020


commit 4718d63fc3ab8df37e59a32945f0a1c6c2559546
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sat Jan 11 16:51:00 2020 +0100

    Output proper driver to changebar package when using dvi chain
    
    Else the bars are not shown
---
 src/LaTeXFeatures.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index 8ef793c..c1e2597 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -1307,7 +1307,11 @@ string const LaTeXFeatures::getPackages() const
 	// than those above.
 
 	if (mustProvide("changebar") && !mustProvide("ct-dvipost")) {
-		packages << "\\usepackage{changebar}\n";
+		packages << "\\usepackage";
+		if (runparams_.flavor == OutputParams::LATEX
+		    || runparams_.flavor == OutputParams::DVILUATEX)
+			packages << "[dvips]";
+		packages << "{changebar}\n";
 	}
 
 	if (mustProvide("footnote")) {


More information about the lyx-cvs mailing list