# [texhax] pagenumbering

Luca Turchetti luca.turchetti at uniroma1.it
Thu Dec 4 21:27:06 CET 2003

At this point I'm not sure I still remember what was the original problem!
Anyway, if you want to put hyphens around the page number in the footer, I guess that you want the page number to be on
the center of the page.
The commands

\fancyfoot[LE]{\thepage}
\fancyfoot[RO]{\thepage}

that you have on your code, print the page number in the bottom-left corner in even(left) pages and in the bottom-right
corner in odd(right) pages (LE=Left Even ; RO=Right Odd, as you can read in the fancyhdr documentation). So, what you
need is probably to change the alignment and add the hyphen chars you want:

\fancyfoot[CE]{-- \thepage --}
\fancyfoot[CO]{-- \thepage --}

Hope this helps you somehow
Luca Turchetti

Renju Zacharia wrote:

> Hi Phil, Fairbairns, Manoj and others,
>
> >Well, it should work.  Of course, I was assuming you were using LaTeX, but
> >then you didn't bother to say.
> >
> >
> Sorry for not being specific. It is out of  just ignorance. i did not
> know that command in  TeX is different from that in LaTeX.
> I use LaTeX
>
> Here is part of the code.
> ------------------------------
>
> \areaset[13.25mm]{157.50mm}{222.75mm}
> \typearea[current]{calc}
> %-------------------- Draft mode
> ---------------------------------------------
> \setlength{\hfuzz}{20pt} % Don't bother to report over-full boxes if
> over-edge is < 2pt
> \tolerance=200%
> \setlength{\emergencystretch}{30pt} %
>
> %--------------------- Packages
> ------------------------------------------------
> \usepackage[final]{graphicx}
> \graphicspath{{eps/}}
> \unitlength=1cm
> \usepackage{relsize}
> \usepackage{nicefrac}
> \usepackage{cite}
> \usepackage[vflt]{floatflt}
> \usepackage[small,bf]{caption2}
> \usepackage{amssymb}
> \usepackage{amsfonts}
> \usepackage{courier}
> \usepackage{geometry}
> \usepackage[grey,times]{quotchap}
> \usepackage[square,authoryear,sort&compress]{natbib}
>
> \usepackage{stdclsdv}
> \usepackage{tocloft}
> \renewcommand{\cftchapfont}{  % Numbers in the braces adjusted to get
> aestetic quality
> \fontsize{13}{13}\usefont{OT1}{phv}{bc}{n}\selectfont }
>
> \renewcommand*\sectfont{\usefont{OT1}{phv}{bc}{n}\selectfont}
>
> \usepackage{fancyhdr}
> \nouppercase \rightmark}
>  \fancyfoot{}
>  \fancyfoot[LE]{\thepage}
>  \fancyfoot[RO]{\thepage}
>
> \begin{document}
> \pagenumbering{roman} \setcounter{page}{1}
> \include{TitlePage}
> ------snip----
> \include{Abbrevations}
>
> \cleardoubleemptypage
>
> \pagenumbering{arabic} \setcounter{page}{1}
> ----------------------------------------
>
> I tried in between to work around, unfortunately I could not devote much
> time on that. If any of you can tell me where I am going wrong, helps a lot.
>
> Thank you all once again,
> Zacharia
>
> >
> >
> >>If dont bother, a link to the Fairbairns would have helped a lot instead
> >>of  "180/322 questions".
> >>
> >>
> >
> >I didn't have a link, but googling The UK TEX FAQ Your 322 Questions gets
> >the latest version first time (which has been updated to 338 so it's
> >actually Q. 182).
> >
> >But the question is: why am I doing the googling for you?
> >
> >
> >
> >>If one gives a search in net for the above document(UK TEX FAQ), IMHO,
> >>one cannot dig out the ~~~~/FAQ180.html  unlike other question numbers.
> >>Also if one gives a rapid search in net for page numbering, styles, etc,
> >>one will end up with around 95++% the normal pagenumbering styles ONLY
> >>which  I consider as a trivial. The present situation in not dealt in
> >>most of them(sorry for loose quantification).
> >>
> >>
> >
> >But many of them explain a little of what they do and can be modified.
> >
> >
> >
> >>A bit of frustration is after reading handful of introductory manuals
> >>and not finding even a hint of what can be done on it.
> >>
> >>
> >
> >I assume you missed the "Gentle Introduction to TeX" (distributed with
> >MiKTeX), see page 28 in the English version.
> >
> >
> >
> >
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq