ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page number in the middle of the margin
@ 2009-05-27 13:40 Flavien Lambert
  2009-05-27 14:35 ` Willi Egger
  2009-05-27 14:36 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Flavien Lambert @ 2009-05-27 13:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 532 bytes --]

Dear all, as said by the title of the e-mail, I try to put the page number
in the middle (both vertically and horizontally) of the margin. I tried a
custom command like
\def\mypagenumber#1{%
\vfill #1 \vfill
}
\setuppagenumbering{location=margin,command=\mypagenumber}

but, unfortunately, I got an error message on the \vfill. Is there a direct
way to place my page number ?
Regards,

-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 596 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Page number in the middle of the margin
  2009-05-27 13:40 Page number in the middle of the margin Flavien Lambert
@ 2009-05-27 14:35 ` Willi Egger
  2009-05-27 14:36 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Willi Egger @ 2009-05-27 14:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

This I would approach with the layer-mechanism.

Willi
On May 27, 2009, at 3:40 PM, Flavien Lambert wrote:

> Dear all, as said by the title of the e-mail, I try to put the page  
> number in the middle (both vertically and horizontally) of the  
> margin. I tried a custom command like
> \def\mypagenumber#1{%
> \vfill #1 \vfill
> }
> \setuppagenumbering{location=margin,command=\mypagenumber}
>
> but, unfortunately, I got an error message on the \vfill. Is there  
> a direct way to place my page number ?
> Regards,
>
> -- 
> Flavien.
> ----------------------------
> "Quantum objects are completely crazy but, at least, they are all  
> crazy in the same way." R.P. Feynman.
> ______________________________________________________________________ 
> _____________
> If your question is of interest to others as well, please add an  
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ 
> ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ______________________________________________________________________ 
> _____________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Page number in the middle of the margin
  2009-05-27 13:40 Page number in the middle of the margin Flavien Lambert
  2009-05-27 14:35 ` Willi Egger
@ 2009-05-27 14:36 ` Hans Hagen
  2009-05-27 21:38   ` Flavien Lambert
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2009-05-27 14:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Flavien Lambert wrote:
> Dear all, as said by the title of the e-mail, I try to put the page number
> in the middle (both vertically and horizontally) of the margin. I tried a
> custom command like
> \def\mypagenumber#1{%
> \vfill #1 \vfill
> }
> \setuppagenumbering{location=margin,command=\mypagenumber}
> 
> but, unfortunately, I got an error message on the \vfill. Is there a direct
> way to place my page number ?

(no vfill in hmode)

\midaligned{#1}


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Page number in the middle of the margin
  2009-05-27 14:36 ` Hans Hagen
@ 2009-05-27 21:38   ` Flavien Lambert
  2009-05-27 21:54     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Flavien Lambert @ 2009-05-27 21:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1788 bytes --]

Sorry, I wasn't clear. \midalign{} put the page number in the (horizontal)
middle of the margin in the bottom. What I would like to do is to put the
page number in the vertical middle of the page.

2009/5/27 Hans Hagen <pragma@wxs.nl>

> Flavien Lambert wrote:
>
>> Dear all, as said by the title of the e-mail, I try to put the page number
>> in the middle (both vertically and horizontally) of the margin. I tried a
>> custom command like
>> \def\mypagenumber#1{%
>> \vfill #1 \vfill
>> }
>> \setuppagenumbering{location=margin,command=\mypagenumber}
>>
>> but, unfortunately, I got an error message on the \vfill. Is there a
>> direct
>> way to place my page number ?
>>
>
> (no vfill in hmode)
>
> \midaligned{#1}
>
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>



-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 2886 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Page number in the middle of the margin
  2009-05-27 21:38   ` Flavien Lambert
@ 2009-05-27 21:54     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2009-05-27 21:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Flavien Lambert wrote:
> Sorry, I wasn't clear. \midalign{} put the page number in the (horizontal)
> middle of the margin in the bottom. What I would like to do is to put the
> page number in the vertical middle of the page.
> 
> 2009/5/27 Hans Hagen <pragma@wxs.nl>
> 
>> Flavien Lambert wrote:
>>
>>> Dear all, as said by the title of the e-mail, I try to put the page number
>>> in the middle (both vertically and horizontally) of the margin. I tried a
>>> custom command like
>>> \def\mypagenumber#1{%
>>> \vfill #1 \vfill
>>> }
>>> \setuppagenumbering{location=margin,command=\mypagenumber}
>>>
>>> but, unfortunately, I got an error message on the \vfill. Is there a
>>> direct
>>> way to place my page number ?
>>>
>> (no vfill in hmode)
>>
>> \midaligned{#1}

then make a vbox of vsize around it




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-27 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-27 13:40 Page number in the middle of the margin Flavien Lambert
2009-05-27 14:35 ` Willi Egger
2009-05-27 14:36 ` Hans Hagen
2009-05-27 21:38   ` Flavien Lambert
2009-05-27 21:54     ` 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).