Use the twoside option of geometry package.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3072 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-11-25 18:13:52 +00:00
parent 8c1402faba
commit 3b9c75708d
2 changed files with 4 additions and 0 deletions

View 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>

View 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) {