LaTeX forum ⇒ Text Formattingpage number format Topic is solved

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

page number format

Postby ziselos » Wed Apr 11, 2018 10:39 am

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:

  1. \documentclass[12pt]{report}
  2. \usepackage{fancyhdr}
  3. \pagestyle{fancy}
  4. \fancyhf{}
  5. \renewcommand{\headrulewidth}{1pt}
  6. \fancyhead[R]{\thepage}
  7. \begin{document}
  8. \include{file}
  9. \end{document}

How can i get bigger size of my page number and have it into brackets ()?


User avatar
Site Moderator
Posts: 3825
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Apr 12, 2018 6:54 am

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.

Posts: 15
Joined: Sun Mar 04, 2018 12:03 pm

Postby ziselos » Thu Apr 12, 2018 7:40 pm

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

Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 7 guests