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.
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 ______________________________________________________________________ _____________
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 -----------------------------------------------------------------
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
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.
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
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 -----------------------------------------------------------------
participants (3)
-
Flavien Lambert
-
Hans Hagen
-
Willi Egger