Tag Info

Hot answers tagged

5

There is a clear warning by fancyhdr about the \headheight being too small: Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 13.59999pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. Changing this accordingly to head=14pt as geometry option will solve ...


5

Something like this? The pagestyle is patched into the \chapter command, however, this must be done after \tableofcontents has been issued, otherwise, this would be applied there too. \documentclass[twoside]{report} \usepackage{lastpage} \usepackage{fancyhdr} \usepackage{blindtext} \usepackage{xpatch} \fancypagestyle{mystyle}{% \fancyhf{}% ...


3

This is actually similar to the style I'm using in my thesis. I'm not sure I understood what you mean with "switch margins", but Latex should arrange the margins in a twoside document automatically. If you want to add further space, you can use the option bindingoffset of the geometry package (you only need to change the 0mm in the code below). To change ...


3

Hidding/displaying page numbers/headers/footers should be done with page styles, such as empty or plain (or more sophisticated ones). If article class is used, then no explicit redefinition of \thepage to \arabic{page} is necessary, but in the case of book and \frontmatter, the ToC would be displayed with roman figures, so this redefinition might be ...


2

In artcile.cls without the titlepage option, the definition of \maketitle contains \thispagestyle{plain} You can discover this by issuing \show\maketitle and looking the .log file, but the output is quite long. This means that either you need to change the plain layout, or much simpler, you need to issue \thispagestyle{empty} after \maketitle has had ...


2

Here's how I'd do it with the book class: \documentclass{book} \makeatletter \newcounter{blankpages} \def\cleardoublepage{% \clearpage \if@twoside \ifodd\c@page \else \hbox{}\newpage\stepcounter{blankpages}% \thispagestyle{empty}% \if@twocolumn\hbox{}\newpage\fi \fi \fi } \newcommand{\@romannoblank}[1]{% ...


2

memoir pagestyles are quite easy to create. Use \makepagestyle{foo} and the commands \makeevenhead{foo}{left stuff}{center stuff}{right stuff} and \makeoddhead{foo}{left stuff}{center stuff}{right stuff} (and the similar commands \makeevenfoot and \makeoddfoot) To provide the pagestyle for the chapter start page, I kicked the \thispagestyle{chapter} out ...


1

The following should do what you want. It numbers the secions alphabetically, starts every section on a new page and resets the page counter. It also works with hyperref. \documentclass{article} \usepackage{etoolbox} \pretocmd{\section}{\clearpage\setcounter{page}{1}}{}{} \usepackage{blindtext} \renewcommand{\thesection}{\Alph{section}} ...


1

There is no direct command for the page distance but it's possible to use the refcount package by Heiko Oberdiek (One of the TeX Gurus here on TeX.SX ;-)). The problem with references is that they could be anything (numbers, links etc.) and the commands \ref and \pageref are not expandable. However, the \getpagerefnumber{label} command returns a pure number ...


1

With fancyhdr this quite easy. I've put the page number into the centered footer here. If it should appear left or right use \lfoot or \rfoot then. \documentclass[12pt, a4paper,twoside]{article} \usepackage{fancyhdr} \fancypagestyle{headings}{% \cfoot{\thepage} } \pagestyle{headings} \begin{document} \section{Introduction} Hello \end{document}


1

What about the following code with fancyhdr package and tikz \documentclass{article} \usepackage{fancyhdr} \usepackage{lipsum} \pagestyle{fancy} \fancyhf{} \fancyfoot[C]{\dotfill \protect\circled{\thepage} \dotfill} \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline]{\node[shape=circle,draw,inner sep=2pt] (char) {#1};}} \begin{document} ...


1

I just solved the case myself. The solution is to change the \pagestyle to {plain} at the section I only want numbers showing. My code which now does this is shown below simplified: \begin{document} \pagenumbering{arabic} \pagestyle{headings} Include Chapter 1 ... Include Chapter 6 \addcontentsline{toc}{chapter}{Bibliography} \pagestyle{plain} ...



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