Page counts at the header area are invisible due to the narrow margin of 0.2in. Use fancyhdr package and print page counts close to the top edge of paper. Print them in "Grey" color and scriptsize font so that they won't distract readers too much. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- perfbook-lt.tex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/perfbook-lt.tex b/perfbook-lt.tex index eb5c31d6..ec3e38e1 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -401,9 +401,17 @@ \setlength{\twocolumnwidth}{3.125in} \IfEbookSize { % From https://tex.stackexchange.com/questions/16735/latex-options-for-kindle - \usepackage[papersize={4.5in,6.3in},margin=0.2in,onecolumn,twoside=false]{geometry} + \usepackage[papersize={4.5in,6.3in},margin=0.2in,footskip=0.2in, + headsep=0.05in,headheight=0.15in,onecolumn,twoside=false]{geometry} \sloppy \setlength{\onecolumntextwidth}{4.1in} + \usepackage{fancyhdr} + \fancypagestyle{plain}{% + \fancyhf{} % clear all header and footer fields + \renewcommand{\headrulewidth}{0pt} + \rhead{\textcolor{Grey}{\scriptsize\thepage}} + } + \pagestyle{plain} %\pagestyle{empty} %\usepackage[scaled]{helvet} %\renewcommand{\familydefault}{\sfdefault} -- 2.17.1