# Custom Page numbering with different style

Hi, i want to make a report for my paper. I don't know how to make different style of page numbering. Here's the configuration based on the picture

For every chapter i want to use arabic style but,

If the section/chapter appear, the alignment of page number at the middle-bottom. If there's no section/chapter, the alignment of page number at the right-bottom. Thank you

## bumped to the homepage by Community♦2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

You could use packages like fancyhdr or scrlayer-scrpage to change footer (and header).

Example using fancyhdr (assuming a onesided document):

\documentclass{report}
\usepackage{lipsum}% only for dummy text

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[RO]{\thepage}

\begin{document}
\chapter{First}
\lipsum[1-10]
\chapter{Second}
\lipsum[11-20]
\end{document}


Result:

Example using scrlayer-scrpage (assuming a onesided document):

\documentclass{report}
\usepackage{lipsum}% only for dummy text