]> git.lyx.org Git - lyx.git/commitdiff
Use the twoside option of geometry package.
authorDekel Tsur <dekelts@tau.ac.il>
Sun, 25 Nov 2001 18:13:52 +0000 (18:13 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Sun, 25 Nov 2001 18:13:52 +0000 (18:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3072 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/buffer.C

index 9f0b61dfcd53f3935b8976cfcf0c51cea88b94fe..85507493f6f94470052514616a8ed95d707b132e 100644 (file)
@@ -3,6 +3,8 @@
        * buffer.C (parseSingleLyXformat2Token): Insert an error inset
        when encountering an unknown token.
        (readLyXformat2): Show an error message if there were unknown tokens.
+       (makeLaTeXFile): Use the twoside option for the geometry
+       package when necessary.
 
 2001-11-22  John Levon  <moz@compsoc.man.ac.uk>
 
index f1c277bd07e6a7e0ae6a5518a4a21a390eb67cc6..437ae91b6d5967c8c7affe4b452d3c4f74be466a 100644 (file)
@@ -2158,6 +2158,8 @@ void Buffer::makeLaTeXFile(string const & fname,
                        ofs << "\\usepackage{geometry}\n";
                        texrow.newline();
                        ofs << "\\geometry{verbose";
+                       if (params.sides == LyXTextClass::TwoSides)
+                               ofs << ",twoside";
                        if (params.orientation == BufferParams::ORIENTATION_LANDSCAPE)
                                ofs << ",landscape";
                        switch (params.papersize2) {