I am writing an article and as per the requirement of the journal article should be one side of paper. However, I am not able to adjust the different header on even and odd pages of the article. Minimum working example is given below.

  \fancyhf{}% Clear header/footer
  \fancyhead[L]{\ifodd\value{page}\else\thepage{} Ahmed Arif\fi}
  \fancyhead[R]{\ifodd\value{page}Finance Paper \thepage\fi}
  %page margins
  \geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm }
  %line spacing
  \usepackage{caption}% <-- added
  \captionsetup[table]{skip = 3pt}
  \usepackage{ltablex}% <-- added
  \usepackage{siunitx}% <-- added
  \usepackage{caption}% <-- added

  \title{My Finance Paper}
   \author{\sc{Ahmed Arif}}

| improve this question | | | | |
  • In a oneside document, left hand pages are not existing. – Johannes_B Apr 21 '17 at 5:03
  • Then how we can put different header on even and odd page? – Ahmed Arif Apr 21 '17 at 5:06
  • Change the option oneside to twoside? – Mico Apr 21 '17 at 5:09
  • In that case header is indented. How I can finish this indenting? – Ahmed Arif Apr 21 '17 at 5:15
  • if you are submitting the article to a journal for publication, the journal editorial staff will reprocess it into the publication format. – barbara beeton Apr 21 '17 at 14:25

You can use conditionals in the header since the page counter would be definitive:

enter image description here


\fancyhf{}% Clear header/footer
\fancyhead[L]{\ifodd\value{page}\else\thepage{} Ahmed Arif\fi}
\fancyhead[R]{\ifodd\value{page}Finance Paper \thepage\fi}

\title{My Finance Paper}
\author{Ahmed Arif}





You can, of course, also use the twoside option, since this allows you to specify the use of Even and Odd header placement (which only exists under that option):

enter image description here


\fancyhf{}% Clear header/footer
\fancyhead[LE]{\thepage{} Ahmed Arif}
\fancyhead[RO]{Finance Paper \thepage}


True, the page layout will be different, but that can be restored using geometry, if needed.

| improve this answer | | | | |
  • Thank you Werner. The only problem that appears now is that it is headers are indented by one Tab space like a start of paragraph on the odd page. – Ahmed Arif Apr 21 '17 at 5:28
  • @AhmedArif: I don't see that in my example. What do your \fancyhead statements look like? – Werner Apr 21 '17 at 5:57
  • Werner.. I have edited my question. Now I have provide the full preamble. May be some command is in conflict. Please have a look at the edited question. The header at odd page is not fully right indented – Ahmed Arif Apr 21 '17 at 7:04
  • @AhmedArif: Aaahhh... you need to load fancyhdr (and it's accompanying settings) after geometry and setting the \geometry. – Werner Apr 21 '17 at 7:14

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.