Why does \ifoddpage seem to always return false in the following example? This is related to question 6143 on this same forum. I'm using XeLaTeX to produce a pdf file (i.e., xelatex test.tex)
\documentclass[11pt,final,openright]{memoir}
% for Blurb, set this to the actual desired size as indicated by the
% size calculator on their web site
% See the memoir class documentation for an explanation of all the page
% layout parameters.
\setstocksize{594pt}{693pt}
\settrimmedsize{576pt}{684pt}{*}
\settrims{9pt}{9pt}
\setlrmarginsandblock{81pt}{54pt}{*} % calculates \textwidth
\setulmarginsandblock{72pt}{36pt}{*} % calculates \textheight
\setheadfoot{0pt}{18pt}
\setheaderspaces{0pt}{*}{*}
\raggedright % comment to force even justification
\setlength{\parindent}{0in} % paragraph indentations
\setlength{\parskip}{1em} % space between paragraph
\checkandfixthelayout % Set all the layout values
\usepackage{ifthen}
\newcounter{mycount}
\begin{document}
\whiledo{\themycount<130}{%
\ifoddpage
{Odd\\}%
\else
{Even\\}%
\fi
\stepcounter{mycount}%
}
\end{document}
101010button, or just hitting control-k. – Antal Spector-Zabusky Dec 19 '10 at 01:17