Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/latex/contrib/ifoddpage

LaTeX package 'ifoddpage'
~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (c) 2011 by Martin Scharrer <martin@scharrer-online.de>
WWW: http://latex.scharrer-online.de/
CTAN: http://www.ctan.org/pkg/ifoddpage
Code repository: https://bitbucket.org/martin_scharrer/ifoddpage

This LaTeX package provides a \ifoddpage conditional to determine if the current page is odd or even.
The macro \checkoddpage must be used direct before to check the page number using a label.
Two compiler runs are therefore required to achieve correct results.
In addition the conditional \ifoddpageoronside is provided which is also true in oneside mode where 
all pages use the odd page layout.

This package got inspired from the 'changepage' package which provides (and uses) the same macros (\checkoddpage and
\ifoddpage) for its main function of changing the page design mid-way in the document.  Both packages can be used
together, but the 'ifoddpage' should be loaded last in this case, otherwise the \ifoddpageoroneside conditional will
stop working.

Files

Name Size Date Notes
README 1023 2011-09-14 06:39
ifoddpage.dtx 10642 2011-09-14 06:39
ifoddpage.ins 212 2011-09-14 06:39
ifoddpage.pdf 131336 2011-09-14 06:39

Down­load the con­tents of this pack­age in one zip archive (132.0k).

ifod­dpage – Deter­mine if the cur­rent page is odd or even

The pack­age pro­vides an \ifod­dpage con­di­tional to de­ter­mine if the cur­rent page is odd or even. The macro \check­od­dpage must be used di­rect be­fore to check the page num­ber us­ing a la­bel. Two com­piler runs are there­fore re­quired to achieve cor­rect re­sults. In ad­di­tion, the con­di­tional \ifod­dpa­georon­side is pro­vided which is also true in one­side mode where all pages use the odd page lay­out.

Pack­age De­tailsifod­dpage
Ver­sion1.0
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2011 Martin Schar­rer
Main­tainerMartin Schar­rer
TDS archiveifoddpage.tds.zip
Con­tained inTeXlive as ifod­dpage
MikTeX as ifod­dpage
Topics sup­port for de­vel­op­ment of (La)TeX macros
sup­port for vari­a­tions of ty­po­graphic style
Guest Book Sitemap Contact