Text Formattingpage number format

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ziselos
Posts: 15
Joined: Sun Mar 04, 2018 12:03 pm

page number format

Post by ziselos »

Hello,
I am trying using XeLaTex to get page number in a format like below (number into brackets):
(1), (2), (3) etc. and in bigger font size (24pt).I want to place the page number on Top and Right of my page.
I wrote this using fancyhdr package:

Code: Select all

\documentclass[12pt]{report}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} 
\renewcommand{\headrulewidth}{1pt}
\fancyhead[R]{\thepage}       
\begin{document}
\include{file}
\end{document}
How can i get bigger size of my page number and have it into brackets ()?

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

page number format

Post by Johannes_B »

Without testing: \fancuhead[R]{\fontsize{24pt}{28pt}\selectfont(\thepage)}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ziselos
Posts: 15
Joined: Sun Mar 04, 2018 12:03 pm

page number format

Post by ziselos »

I just tested your code and works fine. It is exactly what i wanted.
Thanks a lot.
Post Reply