Page Layoutpage number font size

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mikkelstuff
Posts: 17
Joined: Fri Sep 24, 2010 8:50 pm

page number font size

Post by mikkelstuff »

I have used the \fontsize command to set the text font size to 12 pt but now I need to independently set the page number font size to 10 pt. Can someone enlighten me?
Last edited by mikkelstuff on Mon Feb 28, 2011 6:04 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

page number font size

Post by localghost »

Font sizes for the document are usually set by a document class option. The \footnotesize command decreases the font size to 10pt in case the default size is 12pt.

Code: Select all

\documentclass[12pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\renewcommand*{\thepage}{\footnotesize\arabic{page}}

\begin{document}
  \blinddocument
\end{document}

Thorsten
mikkelstuff
Posts: 17
Joined: Fri Sep 24, 2010 8:50 pm

page number font size

Post by mikkelstuff »

Yes, that works. I did modify the command line as:

Code: Select all

\renewcommand*{\thepage}{\footnotesize{A--\arabic{page}}}
to change the page number style for this particular appendix.
Post Reply