Tag Info

Hot answers tagged

6

This is an alternative approach that tries to embed the actual mini frame navigation from the Frankfurt theme into the Cambridge theme. It requires major surgery and I'd suggest to make a custom theme with it. First we need to set the miniframes color, I picked the darkred color from the beaver theme to match the rest of the theme. \setbeamercolor{mini ...


6

memoir provides the condition \if@mainmatter which you can use to condition on whether or not you're in the \mainmatter section of your document: \documentclass[a4paper,11pt,titlepage,oneside,openany]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{kantlipsum} % empty style for the first page of every chapter, except in \frontmatter ...


5

Converting my comment in to answer, just to close this. When you define and apply a fancy page style, you need to empty the previous values/definitions of headers and footers. This is done by issuing \fancyhf{} in the definition as \pagestyle{fancy} \fancyhf{} %% <--- here \lfoot{\textsf{www.economics-ejournal.org}} \rfoot{\thepage} ...


5

As mentioned in the comments, it is sufficient to place the colorchange (done via \chaptercolor) after calling the chapter command. \documentclass{scrbook} \usepackage{blindtext} \usepackage[automark]{scrlayer-scrpage} \usepackage{xcolor} \clearscrheadfoot \ihead[\leftmark]{\leftmark} \ohead[\rightmark]{\rightmark} \cfoot[\pagemark]{\pagemark} %Now ...


4

Set the header inside a tabular, as line-breaking (using \newline) does not work as expected inside the header boxes: \documentclass{article} \usepackage{geometry,fancyhdr} \pagestyle{fancy} \fancyhf{}% Clear header/footer \chead{\begin{tabular}{c} My very important and long title that is not being centered as I would like to \\ Very Myself ...


4

Use \\ and not \newline. The behavior is easily reproducible: \fbox{\parbox{5cm}{\centering A centered\\ text}} \medskip \fbox{\parbox{5cm}{\centering A centered\newline text}} gives Here's the code for you \documentclass{article} \usepackage{geometry,fancyhdr} \pagestyle{fancy} \fancyhf{}% Clear header/footer \chead{% My very important and long ...


4

Converting comment in to answer, just to close things, noting that jobapp.sty is not included in miktex (atleast). Use [b] instead of [t] in \begin{tabular}[t]{@{}l@{}}. This will align First Last (name) to the table's bottom.


4

By default \rightmark prints the first right mark, while \leftmark prints the last left mark. So you are getting the default behaviour. Load the extramarks package it defines a \lastrightmark command: \documentclass[]{book} \usepackage{fancyhdr} \usepackage{extramarks} \pagestyle{fancy} \lhead{Rightmark: first: \rightmark, last: \lastrightmark} ...


4

The output routine uses the macros \@thehead and \@thefoot which are filled through \@oddhead, \@oddfoot, \@evenhead etc. This commands are normally set by \ps@<pagestyle> called by \pagestyle.


4

Maybe my solution is pretty simple, but I'd start here: \documentclass[a4paper,ngerman, headheight=3ex]{scrbook} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{scrlayer-scrpage} \usepackage{pgfornament, blindtext} \setkomafont{sectioning}{\bfseries} % Serifen und Überschriften \setkomafont{descriptionlabel}{\bfseries} ...


4

Based on Show miniframes with split outer themes \documentclass[compress]{beamer} \usetheme{CambridgeUS} \useoutertheme{miniframes} \useoutertheme{split} %\usecolortheme{whale} \makeatletter \newcount\beamer@xoff \newcount\beamer@prev@section \newcount\beamer@prev@miniframes \beamer@xoff=0 \beamer@prev@section=0 \beamer@prev@miniframes=0 ...


4

In tufte-common.def it is said that in case XeLaTeX is used, its features for letter spacing will be used, but the authors forgot to do it, so the soul fallback mechanism is used, which miserably fails. Fix the definition: \documentclass[nofonts]{tufte-handout} \usepackage{fontspec} \usepackage{ifxetex} \setmainfont{Minion Pro} \usepackage{lipsum} ...


4

You need to load package fancyhdr after setting the page margins. This is best down by package geometry. But to be honest, you should rethink your margins, they are too small. Or in other words, you text area is too big, which decreases readability. \documentclass[10pt, twoside]{book} \usepackage{lastpage} \usepackage{geometry} \geometry{text={7in,10.2in} ...


4

\pagestyle applies the page style locally, so you ought to put it before the group for \setstretch, or maybe better invoke \clearpage just before the end of the group. \documentclass[11pt,a4paper]{article} \usepackage{fancyhdr} \usepackage{setspace} \lhead{} \rhead{} \chead{Very title\\ Very myself} \cfoot{\thepage} \begin{document} \pagestyle{empty} ...


4

I think you're making it a lot more complicated than needed, \cleardoublepage is already generating the page: you just need to add text, no need for hooking into the output routine shipout. \documentclass[a4paper,titlepage,11pt,twoside,openright]{report} \usepackage{lipsum} \def\lmargin{3.5cm} \def\rmargin{1.5cm} \def\blanknote{This page intentionally left ...


3

The titlesec package provides the \assignpagestyle{\chapter}{<style>} command, which can be used just like \pagestyle but changes only the first page of each chapter. It's the same you are doing with \thispagestyle{}, but without explicitly renewing \chapter.


3

The IEEEtran class uses a specific page style for the first page, so it's enough to modify it; loading fancyhdr is not the answer: the copy editors won't be happy with it. \documentclass[conference]{IEEEtran} \usepackage[latin9]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. ...


3

To highlight the issue you need a MWE with sections and subsections, like this: \documentclass[compress]{beamer} \usetheme{Berlin} % Antibes (simple) \setbeamerfont{block body}{size=\small} \setbeamertemplate{mini frames}{} \begin{document} \section{section 1} \subsection{subsection 1} \frame{f1} \frame{f2} \frame{f3} \subsection{subsection 2} \frame{f1} ...


3

The box shows that it is the page number i then ii you have not shown any example code that shows where this page number is being set but it will be either the page head or foot. Assuming this is the page head, a height of 0pt is has been specified for the head hence \vbox(0.0+0.0)x469.47046 ^^^^ But of course the letters are taller than that, in ...


3

Have a look at the KOMA-documentation. There is absolutyly no need to trouble yourself with internals. If you want to have your bibliography included in the toc, use the global option bibliography=totoc or set it later with \KOMAoption. \documentclass[chapterprefix=true,bibliography=totoc]{scrreprt} \addtokomafont{disposition}{\rmfamily} ...


3

I never used the internals of package scrlayer and i am pretty sure there is a much better way. For example using the higher level interface of package scrlayer-scrpage. Here is a first draft and i looks pretty ugly: %\RequirePackage{filecontents} \begin{filecontents}{\jobname.sty} \ProvidesPackage{\jobname}[2014/09/05 v 0.1 pgfornaments and ...


3

Starred chapters (and sections) don't get a number, nor a toc entry, nor a header. Problem is, the header is not cleared. You have to do that manually using \markboth{}{}. But from your example i can see that you want a toc entry and i think also a header. You could implement that. A KOMA class provides the same command in a more advanced way. Please read ...


3

An example to start: \documentclass{article} \usepackage{lastpage} \usepackage{pdfpages} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyfoot[R]{{\scriptsize\thepage/\pageref{LastPage}}} \fancyheadoffset{0mm} \fancyfootoffset{0mm} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \fancypagestyle{fancyinsert}{% ...


3

I think that you want to reduce the space between the text and the horizontal lines at the top and the bottom of the page, so that you have something like this: If this is what you are trying to do then you just need to specify the value of footskip and headsep when you load the geometry package. For the page above I used: ...


3

immediately following the line \chapter*{acknowledgements} insert this command: \markboth{Acknowledgements}{Acknowledgements} you may have to input this in all caps to match the running head style for the rest of your document. some document classes don't make proper running heads from the titles when entered with \chapter*, and it appears that you're ...


2

You really don't have to define a new page style for that: the titling package is here for customising title pages. I used the geometry package with option showframeto help visualise the result: \documentclass[11pt,a4paper,twoside]{book} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \usepackage{titling} \usepackage[showframe, nomarginpar]{geometry} ...


2

The name of a font family is not generally the name of the font. That means that you cannot put the name of the font into a \fontfamily{} command and expect it to work. If you look at the output, you will see complaints from LaTeX when if fails to find the font you have requested. I'm not sure about the overall structure of your document but you really ...


2

I would design the frametitle from scratch, because in the Madrid theme the template is very simple. So: \documentclass{beamer} \usepackage{lmodern} \usetheme{Madrid} \setbeamertemplate{frametitle}{% \nointerlineskip \begin{beamercolorbox}[sep=.1ex,wd=\paperwidth,leftskip=.5cm,rightskip=0cm]{frametitle}% ...


2

Well, if you tell LaTeX to put the current section into the head (\automark[section]{section}), then LaTeX does not care about changing chapters. What about this: \documentclass[headsepline,12pt,a4paper]{scrreprt} \usepackage{scrlayer-scrpage} \pagestyle{scrheadings} \ohead[\pagemark]{\pagemark} \automark[section]{chapter} ...


2

I'm not entirely sure what you would like the result to look like. I assume one of the two images but which? Here is a start using the offset option of fancyhdr: \documentclass[a4paper]{article} \usepackage{marginnote,calc,kantlipsum} \usepackage{fancyhdr} \usepackage{geometry} \geometry{% left=37.5mm, right=12.5mm, top=25mm, bottom=25mm, ...



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