Tag Info

Hot answers tagged

3

This uses the xpatch package and the \xapptocmd macro to automatically append the \addcontentsline for the abstract to the ToC as section entry (\abstractname defined by correct language by \selectlanguage and babel) as well as appending \clearpage to \endabstract (the end code macro of the abstract environment) \documentclass{article} \usepackage{xpatch} ...


3

Use \renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}} in your preamble. This removes \pagename\ (note the space) from the page numbering scheme. \documentclass{scrlttr2} \usepackage[german]{babel} \usepackage{lipsum} % Remove '\pagename\ ' from \pagemark \renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}} \begin{document} ...


3

\maketitle sets \thispagestyle{plain} as you do not normally want the running head above the title. However you can use use fancyhdr to redefine the plain page style, or just put \thispagestyle{fancy} after \maketitle To use the defined page style on the first page as well.


3

You can use combinations of \pagenumbering{<style>} \setcounter{page}{1} to adjust the setting of the page number (and reset it to 1 with every new style): \documentclass[titlepage]{amsart} \usepackage{lipsum}% Just for this example \begin{document} \pagenumbering{gobble}% No page numbering \title{The title} \author{The author} \maketitle ...


2

First of all, you can change the page counter at any point to the number you want like this: \setcounter{page}{3} % Set the page counter to 3 following pages will continue from there. As to starting the numbers from chapter 1, a good practice is to have alphabetical or roman numbering for things before the main text (also called frontmatter; such as ...


2

You should put \clearpage where is needed, not between \addcontentsline. \documentclass{memoir} \usepackage[english,portuguese]{babel} \begin{document} \selectlanguage{portuguese} \addcontentsline{toc}{chapter}{Resumo}% \begin{abstract} Abstract in Portuguese \end{abstract} \clearpage \selectlanguage{english} \addcontentsline{toc}{chapter}{Abstract}% ...


2

The trick is to \clearpage or \cleardoublepage before switching the numbering, so that the final page in the previous numbering system gets numbered before the numbering is switched. Since \cleardoublepage reduces to \clearpage in a single-sided document, simply \cleardoublepage is sufficient. The following code should do the right thing: Stuff on last ...


2

This works: \documentclass[10pt,a4paper,colorlinks]{article} \usepackage[german]{babel} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage{hyperref} \usepackage{tocloft} \usepackage{lipsum} \usepackage{etoolbox} \makeatletter \patchcmd{\ps@plain}{\thepage}{\hyperlink{contents}{\thepage}}{}{} \makeatother ...


1

Here is a very simple solution, loading titleps via the pagestyles option of titlesec, instead of fancyhdr: \documentclass[openany]{book} \usepackage[a4paper]{geometry} \usepackage{multicol} \usepackage{parskip} \usepackage{graphicx} \usepackage{changepage} \usepackage{lipsum} \pagestyle{plain} %CHAPTER FORMAT \usepackage[pagestyles]{titlesec} ...


1

In French the \leftmark seems to be on the right page and the \rightmark on the left. We should keep in mind, that classicthesis still uses the now obsolete package scrpage2. With its successor scrlayer-scrpage, the commands below stay the same. \ohead{\pagemark}%page on the outside \cehead{\rightmark}%rightmark on even/left pages ...


1

This can be used as a starting point. We use a twoside setup that are then tricked into looking like a oneside layout \documentclass[a4paper]{memoir} % just to show they are vastly different \setlrmarginsandblock{2cm}{4cm}* \checkandfixthelayout % trick \setlength\evensidemargin{\oddsidemargin} \usepackage{lipsum} \makepagestyle{m} ...


1

I simplified the usage by converting answer 1 into a LaTeX package. See romanbarpagenumber on CTAN. \usepackage{romanbarpagenumber} % And after \begin{document} \pagenumbering{Roman}



Only top voted, non community-wiki answers of a minimum length are eligible