I am using overleaf to write IEEE Transaction paper. The problem I am facing is with the running head. Check the following line:
\markboth{IEEE Transactions on Reliability}{Jia \MakeLowercase{\textit{et al.}}: A Novel Tin Can Link}
Ideally, The first part should appear on the first page and later on even pages at top left corner, while the second part should appear at top right corner on odd pages.
In my case, only the first part appears, that too on every page in the top right corner. What might the problem be?
I am using:
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{subcaption}
\captionsetup{justification=centering, labelsep=newline}
\usepackage{tabularx,booktabs}
\usepackage{booktabs}
\usepackage{lipsum}
\makeatletter
\renewcommand{\fnum@algorithm}{\fname@algorithm{} \thealgorithm:}
\makeatother
\usepackage{comment}
\usepackage{nomencl}
\makenomenclature
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Abbreviations}{%
\ifstrequal{#1}{B}{Notations}{}}%
]}
\hyphenation{op-tical net-works semi-conduc-tor}
\begin{document}
\title{Access Points Optimization}
\author{ Abc~def,~\IEEEmembership{Senior Member,~IEEE, }
hij, Qrs, ~\IEEEmembership{Member,~IEEE, } lmn op, ~\IEEEmembership{Member,~IEEE, } Yz wxy
% <-this % stops a space
\thanks{Manuscript received Month XX, 20XX; revised XX XX, 20XX.}
\thanks{This work was supported by the.}
\thanks{(Corresponding author: )}
\thanks{Authors are with the Research Center, School of .}}
\markboth{IEEE Transactions on Reliability}{Jia \MakeLowercase{\textit{et al.}}: A Novel Tin Can Link}
\maketitle
\begin{abstract}
\end{document}
Best Answer
We have two issues here:
IEEEtran
with optionjournal
you should not change the given layout of that wished class. If there are differences in the layout of your article you can print to the layout of the journal, it is the work of the journal to prepare your article to fit there layout -- it is not your task! If you have not to submit an article I'm not sure you are allowed to use this class (check the licenze for this!). Better would be to use another class ...\maekboth{}{}
can only work, if your document is printed twoside. That is not given if you use\documentclass[journal]{IEEEtran}
. If you realy need to get this to work you can add optiontwoside
to\documentclass[journal,twoside]{IEEEtran}
.Please see the following corrected MWE (I only added
twoside
and deleted some not needed packages and commands for this issue, also the double called packagebooktabs
(do not do this!) and changed the order of packages and commands in the preamble):and its resulting page 3: