home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!gatech!destroyer!terminator!news
- From: Hal.Varian@umich.edu
- Subject: actual page number of a \midinsert
- Message-ID: <1992Jul30.151813.15190@terminator.cc.umich.edu>
- Keywords: midinsert
- Sender: news@terminator.cc.umich.edu (Usenet Owner)
- Reply-To: Hal.Varian@umich.edu
- Organization: University of Michigan
- Date: Thu, 30 Jul 1992 15:18:13 GMT
- Lines: 23
-
- I am using \midinsert to place figures, but want to treat
- figures on odd pages differently than on even pages. I create a
- box containing \FigEven and \FigOdd and use the following
- construction:
-
- \midinsert
- \ifodd\pageno\copy\FigOdd
- \else\copy\FigEven\fi
- \endinsert
-
- This works *most* of the time, but every now and then I get a
- FigOdd on an even page or vice versa. It looks like \pageno is
- getting expanded at the wrong time.
-
- I have to admit, I'm pretty vague on just when \pageno is
- *finally* determined, and how this interacts with \midinsert.
- Can anyone offer some pointers?
-
- --
- Hal.Varian@umich.edu Hal Varian
- voice: 313-764-2364 Dept of Economics
- fax: 313-764-2364 Univ of Michigan
- Ann Arbor, MI 48109-1220
-