How to get the page number in the bottom for all pages using classicthesis
You can try with the following code. I have replaced \cfoot
by \rofoot
(for right, even) and \lofoot
(for left, odd).
\RequirePackage{fix-cm} % fix some latex issues see: http://texdoc.net/texmf-dist/doc/latex/base/fixltx2e.pdf
\documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper
footinclude=true,cleardoublepage=empty,
BCOR=5mm,paper=a4,fontsize=11pt,
dottedtoc,spanish%
]{scrreprt}
\usepackage{classicthesis}
\clearscrheadfoot
\ohead[]{\headmark}
\rofoot[\pagemark]{\pagemark}
\lefoot[\pagemark]{\pagemark}
\begin{document}
\frenchspacing
\raggedbottom
\tableofcontents
\pagenumbering{Roman}
\setcounter{page}{1}
\listoffigures
\listoftables
\cleardoubleemptypage
\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Ensayo de Tensión}
\newpage
\section{Metodología utilizada}
\newpage
\section{análisis de resultados}
\end{document}
Related videos on Youtube
Paul Lara
Updated on December 27, 2020Comments
-
Paul Lara almost 3 years
I am formatting my thesis using the classicthesis configuration for scrreprt class; this format puts the page number in the bottom for chapter pages and on the top for other pages, you can see a chapter page here:
What I would like to do is to place the page number in the bottom left or bottom right depending on if it is an even or odd page, better shown in this picture:
I found solutions for placing the page number in the bottom here How to customize the page header and the page number of classicthesis? and here Get the page number to the bottom with classicthesis but both solutions use this code
\cfoot[\pagemark{}]
wich puts the pagemark in the center.Heres a MWE with the
\cfoot[\pagemark{}]
code:\RequirePackage{fix-cm} % fix some latex issues see: http://texdoc.net/texmf-dist/doc/latex/base/fixltx2e.pdf \documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo) BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,% dottedtoc,spanish% ]{scrreprt} \input{classicthesis-config} \clearscrheadfoot \ohead[]{\headmark} \cfoot[\pagemark]{\pagemark} \begin{document} \frenchspacing \raggedbottom \selectlanguage{spanish} \tableofcontents \pagenumbering{Roman} \setcounter{page}{1} \listoffigures \listoftables \cleardoubleemptypage \newpage \pagenumbering{arabic} \setcounter{page}{1} \chapter{Ensayo de Tensión} \newpage \section{Metodología utilizada} \newpage \section{análisis de resultados} \end{document}
Thanks in advance
-
Paul Lara almost 6 yearsThank you very much i did not know those option. Please, would you tell me where can I read more about this?
-
leandriis almost 6 years@PaulLara: These are commands from the KOMA-script bundle. You can find more about them in 'Chapter 5: Adapting Page Headers and Footers with scrlayer-scrpage' of the KOMA-script manual (ctan.org/pkg/koma-script).