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 ...


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

This solution uses a label for each section inside a tcolorbox, calling the title with \nameref*{} \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage{etoolbox}% \usepackage[many]{tcolorbox} \usepackage{fancyhdr} \usepackage{ifthen} \usepackage{lipsum} \usepackage{nameref}% \pagestyle{fancy} \makeatletter \newlength{\overhanglength} ...


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

The tabular isn't doing anything useful here, just use \begin{center} \includegraphics[scale=0.03]{img/original.png} \includegraphics[scale=0.03]{img/gauss2.png} \includegraphics[scale=0.03]{img/gauss5.png} De izquierda a derecha, imagen original (dendrita de una neurona de hipocampo de un cultivo transfectado con ...


4

\documentclass{article} \usepackage{graphicx} \begin{document} \begin{center} \begin{tabular}{ l c r } \includegraphics[width=0.3\textwidth]{example-image-a} & \includegraphics[width=0.3\textwidth]{example-image-b} & \includegraphics[width=0.3\textwidth]{example-image} \\ ...


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

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

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} ...


3

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} ...


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

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

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

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

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 ...


2

This solution provides two ways -- first with a tabular environment and second with an adjustable tcolorbox environment. \documentclass{scrbook}% \usepackage{tcolorbox}% \usepackage{colortbl}% \usepackage{xcolor}% \usepackage[utf8]{inputenc} \usepackage{blindtext}% \newcounter{musterklausur} \newlength{\kopfbreite} \setlength{\kopfbreite}{0.9\textwidth}% ...


2

Question one: \aliaspagestyle{chapter}{HDR} Question two: You add it your self, see the \createplainmark{toc}{both}{\contentsname}, however it needs to be cleared out completely, add the following to you HDR definiton instead of the {toc} line \clearplainmark{toc} Question three: Hard to say as you do not show how you make your abstract. Always post ...


2

Referring to the chapter/section/subsection etc. title is always a problem, as long it should be expandable, otherwise \nameref{} would do. I redefined the slightly the \chapter and \subsection commands to store the current title in a \chaptertitle or \subsectiontitle command, which is used then as input for \rohead etc. commands from scrpage2 package. Most ...


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

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

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, ...


1

You can patch the \maketitle like \usepackage{etoolbox} \patchcmd{\maketitle} {\end{titlepage}} {\thispagestyle{titlepagestyle}\end{titlepage}} {}{} Code: \documentclass[11pt,a4paper,twoside]{book} \usepackage{fancyhdr} \usepackage{lipsum} \usepackage{etoolbox} \patchcmd{\maketitle} {\end{titlepage}} ...


1

A second alternative without patching is use of local footnote without numbering. Code \documentclass[11pt,a4paper,twoside]{book} \usepackage{fancyhdr} \usepackage{lipsum} \fancypagestyle{titlepagestyle} { \fancyhf{} \fancyfoot[C]{}%\emph{This text needs to appear on the title page}} \renewcommand{\headrulewidth}{0 mm} } \pagestyle{plain} ...


1

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}% ...


1

I think you just need fewer boxes ;). \documentclass[a4paper]{article} % Packages needed \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} % Latin Modern fonts \usepackage{graphicx} \usepackage{geometry} \usepackage{lipsum} \usepackage{xcolor} \definecolor{ctagblue}{HTML}{003366} \usepackage{fancyhdr} \pagestyle{fancy} ...


1

You could set the entire heading using \chead and arrange things inside a tabular for better management of widths: \documentclass{article} \usepackage[export]{adjustbox} \usepackage[table]{xcolor} \usepackage{array} \definecolor{ctagblue}{HTML}{003366} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\headheight}{3cm} ...



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