I have a class file for my document where I have declared margins:
\setlrmarginsandblock{3.5cm}{2.5cm}{*}%
with the left one bigger. But I wanted odd pages to have a bigger left margin and even pages to have a bigger right margin. So I tried:
\checkoddpage
\ifoddpage
\setlrmarginsandblock{3.5cm}{2.5cm}{*}%
\else
\setlrmarginsandblock{2.5cm}{3.5cm}{*}%
\fi
but it seems that it always returns true in a if statement. How can I do it?
[twoside]
option and then separate settings\@oddsidemargin
and\@evensidemargin
You don't say what class you are using and I don't recognise the commands but it will have the same feature as the odd/even margin support is built into the core latex format. Traditionally odd pages have smaller left margin than even pages.