See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

Forcefully positioning header page numbers for even and odd pages

Course Queries Syllabus Queries

Max. 2000 characters



( 3 months ago )

I'm trying to write a syllabus and I want the page numbers to be on alternating sides of each page. I am using the package fancyhdr, and know the command to accomplish this, \fancyhead[LE,RO]{\thepage}. But, when I typeset it, the page numbers stay on the right side of the header in all pages. How do I fix this? Please and thank you.

\documentclass[11pt, a4paper]{article}

\fancyhead[RE]{ACC 202: Intro to Managerial Accounting}
%\lhead{ \fancyplain{}{Spring 2019 Syllabus} }
%\chead{ \fancyplain{}{} }
%\rhead{ \fancyplain{}{\emph{ACC 202: Intro to Managerial Accounting}} }
%\rfoot{\fancyplain{}{page \thepage\ of \pageref{LastPage}}}
%\fancyfoot[RO, LE] {page \thepage\ of \pageref{LastPage} }

%%%%%%%%%%%% LISTING %%%
\usepackage{verbatim} % used to display code
%\VerbatimFootnotes % Required, otherwise verbatim does not work in footnotes!
    {\setlength\itemindent{15pt} \item[-] #1}


what's your interest