2

I am writing a journal in IEEE format and have trouble controlling the page numbering. I use this default template I found

\documentclass[journal]{IEEEtran}
\usepackage[utf8]{inputenc}

\title{Test}
\author{Me}
\date{June 2021}

\begin{document}

\maketitle

\section{Introduction}
\newpage
\section{page 1}
\newpage
\section{page 2}

\end{document}

The page numbering is just the standard, 1 2 3 4... but I want my group number (number 10) to be in front of the actual page number. Such that page one has numbering 10.1, page to has numbering 10.2, page 3 has 10.3 and so on.

Is it possible to do that?

1
  • Maybe simply adding this to your preamble: \renewcommand{\thepage}{10.\arabicpage}? – Bernard Jun 18 at 10:06
3

If you do not want to add packages that can change the layout of the page, you can simply do (after \begin{document} for example):

\renewcommand\thepage{10.\arabic{page}}

...but I did not test if this creates problems for cross-references later (I do not know the internal of the IEEE class).

10
  • Ops, same-time as @Bernard. – Rmano Jun 18 at 10:09
  • Yes! This is just what I wanted. – Carl Jun 18 at 10:10
  • It looks like the position of the page number is in the IEEEtran template. If you do not want to change that template itself, you can move the page number with the fancyhdr package, see my new answer. But: the bottom margin of the template seems to bee very small. Therefore I increased it to 1 inch for which I had to use the geometry package as well. – C. Peters Jun 18 at 11:56
  • @Rmano: No worry… – Bernard Jun 18 at 12:28
  • @Rmano One last thing. Is it possible to place the page number in the bottom right corner of the page, instead of the top right corner? – Carl Jun 18 at 14:16
1
\documentclass[journal]{IEEEtran}
\usepackage[utf8]{inputenc}
\usepackage[bmargin=1in]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\fancyfoot{\flushright 10.\arabic{page}}% when you add \bfseries before the 10 you will see how the letter looks when it is bold. If you want an other letter type you can put it before the 10.
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\headrulewidth}{0pt}
%\renewcommand\bottom=15pt%
\pagestyle{fancy}% Set the page style to fancy
\title{Test}
\author{Me}
\date{June 2021}

\begin{document}

\maketitle
\thispagestyle{fancy}
\section{Introduction}
\newpage
\section{page 1}
\newpage
\section{page 2}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.