From c7cfef6687f65c2538898ddd7c6bc9c9ba50e58d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 28 Dec 2007 19:57:02 +0000 Subject: uk-tex-faq 3.17 (7nov07) git-svn-id: svn://tug.org/texlive/trunk@5977 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-doc/doc/english/FAQ-en/html/FAQ-oddpage.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-oddpage.html') diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-oddpage.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-oddpage.html index 8f8332eeab4..5ad4bc7e7d4 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-oddpage.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-oddpage.html @@ -2,7 +2,7 @@ UK TeX FAQ -- question label oddpage

Finding if you’re on an odd or an even page

-

Another question discusses the issue +

Another question discusses the issue of getting \marginpar commands to put their output in the correct margin of two-sided documents. This is an example of the general problem of knowing where a particular bit of text lies: the output @@ -11,18 +11,18 @@ bit of the “next” page before deciding to output any page. As a result, the page counter (known internally in LaTeX as \c@page) is normally only reliable when you’re actually in the output routine. -

The solution is to use some version of the \label mechanism to +

The solution is to use some version of the \label mechanism to determine which side of the page you’re on; the value of the page counter that appears in a \pageref command has been inserted in the course of the output routine, and is therefore safe. -

However, \pageref itself isn’t reliable: one might hope that +

However, \pageref itself isn’t reliable: one might hope that

 \ifthenelse{\isodd{\pageref{foo}}}{odd}{even}
 
would do the necessary, but both the babel and hyperref packages have been known to interfere with the output of \pageref; be careful! -

The chngpage package needs to provide this functionality for +

The chngpage package needs to provide this functionality for its own use, and therefore provides a command \checkoddpage; this sets a private-use label, and the page reference part of that label is then examined (in a hyperref-safe way) to set a conditional @@ -30,7 +30,7 @@ then examined (in a hyperref-safe way) to set a conditional memoir class has the same command setting a conditional \ifoddpage. Of course, the \label contributes to LaTeX’s “Rerun to get cross-references right” error messages... -

The Koma-Script classes have an addmargin* environment +

The Koma-Script classes have an addmargin* environment that also provides the sorts of facilities that the chngpage offers. Koma-Script’s supporting command is \ifthispageodd{<true>}{<false>} executes different things @@ -40,5 +40,5 @@ depending on the page number.

KOMA script bundle
macros/latex/contrib/koma-script (gzipped tar, browse)
memoir.cls
macros/latex/contrib/memoir (gzipped tar, browse) -

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=oddpage +

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=oddpage -- cgit v1.2.3