LyX creates dvi documents without proper dimension information
http://bugzilla.lyx.org/show_bug.cgi?id=2721

Simply add the [dvips] option to the geometry package when landscape is
used.

Opinions?
regards Uwe
Index: bufferparams.C
===================================================================
--- bufferparams.C	(revision 16619)
+++ bufferparams.C	(working copy)
@@ -879,7 +879,10 @@
 	}
 
 	if (use_geometry || nonstandard_papersize) {
-		os << "\\usepackage{geometry}\n";
+		if (orientation == ORIENTATION_LANDSCAPE) {
+			os << "\\usepackage[dvips]{geometry}\n";}
+		else {
+			os << "\\usepackage{geometry}\n";}
 		texrow.newline();
 		os << "\\geometry{verbose";
 		if (orientation == ORIENTATION_LANDSCAPE)

Reply via email to