7.67.52015-05-06

Print a line of text on odd-numbered pages

This sample prints a line of text only on odd-numbered pages. It uses the system integer variable &current.printpage, and assumes you add a PlanetPress Talk object containing this code to every page in your document.

Code:

% =======================================================
% PRINT A LINE OF TEXT ON ODD-NUMBERED PAGES ONLY
% =======================================================
if(eq(mod(&current.printpage,2),1))
 margin(1.5,9.75)
 show('See reverse side of this page')
endif()

Notes: