I want the number of the page was at the top of the page and in the left corner. How do I achieve that?
[Tex/LaTex] Move page numbering to top left
page-numbering
Related Solutions
Add the twoside
class option.
\documentclass[12pt,doc,noapacite,twoside]{apa}
\begin{document}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\newpage
\mbox{}
\end{document}
This is another way of making plain
page style equal to fancy
page style
You have to use \chapter
so that \leftmark
is defined. Also, you have used \pagestyle{empty}
. Put a \clearpage
(\cleardoublepage
if using twoside
option) before.
\documentclass[letterpaper,11pt,oneside,final]{book}
%-----------------------------------------------------------------------------%
% Margins:
%-----------------------------------------------------------------------------%
\setlength{\marginparwidth}{0pt} % width of margin notes
\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
\setlength{\evensidemargin}{0.125in} % Adds 1/8 in. to binding side of all
\setlength{\oddsidemargin}{0.125in} % Adds 1/8 in. to the left of all pages
\setlength{\textwidth}{6.375in} % assuming US letter paper (8.5 in. x 11 in.) and
\raggedbottom
\setlength{\parskip}{\medskipamount}
\renewcommand{\baselinestretch}{1.1} % this is the default line space setting
%\let\origdoublepage\cleardoublepage
%\newcommand{\clearemptydoublepage}{%
% \clearpage{\pagestyle{empty}\origdoublepage}}
%\let\cleardoublepage\clearemptydoublepage
\usepackage[pdftex,letterpaper=true,pagebackref=true]{hyperref} % with basic options
\usepackage{hypcap}
\usepackage{grffile}
\usepackage{libertine}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{mathpazo}
\usepackage{stmaryrd}
\usepackage{rotating}
\usepackage{dsfont}
%\hypersetup{pdfpagemode=UseNone}
\usepackage{fancyhdr}
\fancyhf{} % clear header and footer
\fancyhead[L]{\leftmark}
\fancyfoot[C]{\thepage}
\makeatletter
\let\ps@plain\ps@fancy % plain style = fancy style
\makeatother
\pagestyle{fancy}
\begin{document}
\chapter{One}
As any dedicated reader can clearly see, the Ideal of practical reason is a rep-
resentation of, as far as I know, the things in themselves; as I have shown else-
where, the phenomena should only be used as a canon for our understanding.
The paralogisms of practical reason are what rst give rise to the architectonic
of practical reason. As will easily be shown in the next section, reason would
thereby be made to contradict, in view of these considerations, the Ideal of prac-
tical reason, yet the manifold depends on the phenomena. Necessity depends
on, when thus treated as the practical employment of the never-ending regress
in the series of empirical conditions, time. Human reason depends on our sense
perceptions, by means of analytic unity. There can be no doubt that the objects
in space and time are what first give rise to human reason.
\section{Test 1}
As any dedicated reader can clearly see, the Ideal of practical reason is a rep-
resentation of, as far as I know, the things in themselves; as I have shown else-
where, the phenomena should only be used as a canon for our understanding.
The paralogisms of practical reason are what rst give rise to the architectonic
of practical reason. As will easily be shown in the next section, reason would
thereby be made to contradict, in view of these considerations, the Ideal of prac-
tical reason, yet the manifold depends on the phenomena. Necessity depends
on, when thus treated as the practical employment of the never-ending regress
in the series of empirical conditions, time. Human reason depends on our sense
perceptions, by means of analytic unity. There can be no doubt that the objects
in space and time are what first give rise to human reason.
As any dedicated reader can clearly see, the Ideal of practical reason is a rep-
resentation of, as far as I know, the things in themselves; as I have shown else-
where, the phenomena should only be used as a canon for our understanding.
The paralogisms of practical reason are what rst give rise to the architectonic
of practical reason. As will easily be shown in the next section, reason would
thereby be made to contradict, in view of these considerations, the Ideal of prac-
tical reason, yet the manifold depends on the phenomena. Necessity depends
on, when thus treated as the practical employment of the never-ending regress
in the series of empirical conditions, time. Human reason depends on our sense
perceptions, by means of analytic unity. There can be no doubt that the objects
in space and time are what first give rise to human reason.
\clearpage
\pagestyle{empty}
\bibliographystyle{alpha}
\nocite{*}
\hfill \today
\end{document}
Slightly un-related, you may consider using geometry
package for changing the page layout.
Best Answer
Here's a solution that doesn't rely on a specialized package. It does assume, though, that either the
article
document class or one of the other "standard" document classes is in use. (Specifically, the document class in use has to provide, at a minimum, the macros\pagestyle
and\ps@headings
...) You need to insert the following code in the document's preamble: