Correct margins when using twoside and geometry

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@3070 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-11-24 22:26:08 +00:00
parent 7e3ca24bd3
commit 6d1e6eff32
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-11-25 Dekel Tsur <dekelts@tau.ac.il>
* src/buffer.C (makeLaTeXFile): Use the twoside option for the geometry
package when necessary.
2001-02-21 Dekel Tsur <dekelts@tau.ac.il>
* src/frontends/xforms/FormDocument.C (checkMarginValues):

View File

@ -1838,6 +1838,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) {