* Setting paragraph title right or left in doublesided mode
@ 2000-06-02 14:27 Berend de Boer
2000-06-02 15:11 ` Berend de Boer
0 siblings, 1 reply; 3+ messages in thread
From: Berend de Boer @ 2000-06-02 14:27 UTC (permalink / raw)
Hello All (probably Hans :-) ),
Does anyone know how I can typeset a paragraph title left or right in
doublesided mode? I.e. on odd pages the title should go right, in even pages
the title should go left.
I tried to use \ifodd\paginanumber, but this wasn't very reliable (perhaps
in combination with other stuff). How can I make 100% sure I'm on an odd or
even page?
Groetjes,
Berend. (-:
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Setting paragraph title right or left in doublesided mode
2000-06-02 14:27 Setting paragraph title right or left in doublesided mode Berend de Boer
@ 2000-06-02 15:11 ` Berend de Boer
2000-06-02 22:42 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Berend de Boer @ 2000-06-02 15:11 UTC (permalink / raw)
> I tried to use \ifodd\paginanumber, but this wasn't very
> reliable (perhaps
> in combination with other stuff). How can I make 100% sure
> I'm on an odd or
> even page?
Hmm, it seems \definetwopasslist does the job!! (and a few more lines of
course, but this was what I needed)
Groetjes,
Berend. (-:
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Setting paragraph title right or left in doublesided mode
2000-06-02 15:11 ` Berend de Boer
@ 2000-06-02 22:42 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2000-06-02 22:42 UTC (permalink / raw)
Cc: ntg-context
At 05:11 PM 6/2/2000 +0200, Berend de Boer wrote:
>> I tried to use \ifodd\paginanumber, but this wasn't very
>> reliable (perhaps
>> in combination with other stuff). How can I make 100% sure
>> I'm on an odd or
>> even page?
>
>Hmm, it seems \definetwopasslist does the job!! (and a few more lines of
>course, but this was what I needed)
\ifodd\realpageno
this is
\else
rather safe
\fi
but indeed a twopass list is more robust; actually, you could use:
\setraggedparagraphmode
{odd action}
{even action}
which generates the twopass entry too. Maybe I should have:
\let\doifrightpageelse\setraggedparagraphmode
alternatively (atthe cost of more macros, since two pass lists are
implemented rather efficiently) you can use:
\pagereference[here]\doifreferencefoundelse{here}
{\ifodd\currentrealreference\relax a\else b\fi}
{}
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-06-02 22:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-02 14:27 Setting paragraph title right or left in doublesided mode Berend de Boer
2000-06-02 15:11 ` Berend de Boer
2000-06-02 22:42 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).