I'm just a newbie to LaTeX, and recently got frustrated with trying to number my pages. I know that normally left pages should be even-numbered, and right pages should be left-numbered, and I've read many places that this is a default in LaTeX.
However, it's always the opposite with me. I've spent efforts on different configurations, but it just doesn't work. Here are some of my code:
Code: Select all
\documentclass[12pt,a4paper,twoside,openany]{book}
\RequirePackage{tocloft}
\usepackage{url}
\usepackage{graphicx}
\urlstyle{leostyle}
%\pagestyle{headings}
\usepackage{amsmath, amsthm, amsfonts, amssymb}
\newtheorem{proposition}{Proposition}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{theorem}{Theorem}[section]
\newenvironment{remark}[1][Remark.]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\usepackage{pseudocode}
\usepackage{setspace}
\usepackage{mathrsfs}
\usepackage{tabularx}
\usepackage[longend,linesnumbered,algosection,ruled,noline]{algorithm2e}
\usepackage{sidecap}
\usepackage{multirow}
%Use of fancy headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{\textsl{\nouppercase{\leftmark}}}
\chead{}
\rhead{\thepage}
Regards,
SG.