Hot answers tagged

7

If you don't want numbered sections and chapters, don't issue the instructions \renewcommand*{\thesection}{} \renewcommand*{\thechapter}{} A pure-LaTeX solution would be to issue the instruction \setcounter{secnumdepth}{-1} Since you're using the memoir document class, as @daleif has pointed out in a comment, a memoir-specific solution would consist of ...


4

For fun, here is a solution in ConTeXt. Some remarks: I use OCR-A font to match the font used in the movie. I use three shades of green. Colors are defined in the HSV colorspace and the three colors just have different saturation values. I use a TABLE for typesetting for ease of use. One could have used a simple \halign as well. For ConTeXt users, this ...


4

Here is a suggestion using the random function: \documentclass[svgnames]{report} \usepackage{tikz} \colorlet{Random0}{white} \colorlet{Random1}{green} \usepackage{kpfonts} \usepackage[explicit]{titlesec} \newcommand*\chapterlabel{} \titleformat{\chapter} {\gdef\chapterlabel{} \normalfont\sffamily\Huge\bfseries\scshape} {\gdef\chapterlabel{\...


4

package scrlayer-scrpage Here is a suggestion using package scrlayer-scrpage. It defines layer page styles. There you can clone the layer that inserts the headsepline. Then you can shift the layer a bit and change the line width. \documentclass{book} \usepackage[automark,headsepline=1.5pt,markcase=noupper]{scrlayer-scrpage} \clearpairofpagestyles \ihead{\...


4

There are probably better solutions, but this should be a good starting point. I'm still lost about the ToC page with different headers, but I did as you wished I hope. You should get the general idea from this. Just please: Do not use \centering, \centerline and {center} all at once, what should they do together when each of them separately is enough? \...


4

Here's a KOMA-friendly method using scrlayer-scrpage: \documentclass[headheight=55pt,headsepline]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \setcounter{secnumdepth}{5} \setcounter{tocdepth}{5} \usepackage{scrlayer-scrpage} \ihead{% \parbox{9cm}{% \begin{flushleft} \bfseries Test\\ \scriptsize Test\\\vspace*{0.15cm} \...


3

The problem is due to shorttoc that seizes the initiative and applies \uppercase to the title. \documentclass[graybox,envcountchap,sectrefs]{svmono} \usepackage{shorttoc} \usepackage{emptypage} \usepackage{biblatex} \bibliography{lit.bib} \makeindex % patch \shorttableofcontents \usepackage{etoolbox} \patchcmd{\shorttableofcontents} {\uppercase{#1}}...


3

When you set bottom=1cm, geometry will set up things so that the last line in the text block is 1cm from the page boundary and, of course, this pushes the footer down. The includefoot option will tell geometry that the footer must have its baseline at 1cm from the page boundary. \documentclass[11pt,a4paper]{report} \usepackage[ left=1cm, right=1cm, ...


3

The footer in latex is the fixed page area usually used for the page number, it is not the area used for footnotes. The footmisc package has a bottom option to place footnotes at the bottom of the page.


3

There are a couple of things that need to change in your code: Don't set the page layout with geometry and then add other page layout settings manually. Do one or the other. I'd suggest using and sticking with only geometry and leave out settings like this: \hoffset-2.8cm \voffset-2.3cm \setlength{\textwidth}{18cm} \setlength{\textheight}{22.5cm} You're ...


3

The Warsaw theme of beamer uses the shadow outer theme which, in turn, is based on the split outer theme. The split outer theme sets the footline using the following template construction: \defbeamertemplate*{footline}{split theme} {% \leavevmode% \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{...


2

There are probably much better ways to do this, but instead of messing with beamer navigation I wanted to try something new and play with the xcntperchap package. \documentclass{beamer} \usepackage{tikz} \usepackage{totcount} \regtotcounter{section} \usepackage{xcntperchap} \RegisterCounters{section}{subsection} \newcounter{totalsubsection} \setcounter{...


2

Package rotating with environment sidewaystable only rotates the table, but let the header and footer unchanged and unrotated: \documentclass{article} \usepackage[a6paper]{geometry} \usepackage{booktabs} \usepackage{lipsum} \usepackage{rotating} \begin{document} \begin{sidewaystable} \begin{tabular}{p{95mm}} \toprule \lipsum*[1]\tabularnewline \...


2

Don't consider the content at the top of page 1 as being a header. Instead, set it as part of a regular document. That way you don't have to worry about influencing the header space (or \headheight) and how it may affect subsequent pages. \documentclass{article} \usepackage{graphicx,lipsum} \begin{document} \noindent \begin{tabular}[t]{@{}l} \large\...


2

A simple patch could be the following: \documentclass[a4paper]{article} \usepackage{fancyhdr,graphicx} \usepackage{mwe} \fancypagestyle{fancylogo}{% \fancyhf{}% \fancyhead[L]{xxx% \parbox[t][0pt][t]{.6\textwidth}{% \large \textsf{% Address line 1\\% Address line 2\\% Address line 3%...


2

If you check the warning you get with your code you will find one telling you that the \headheight is to low. So you need to set it to a propper value, for example with: \setlength{\headheight}{44pt} Then the overwriting is gone. Please see the corrected and a little bit more minimized MWE: \documentclass[ngerman]{scrartcl} \usepackage[T1]{fontenc} \...


2

Just add \pagestyle{plain} before these, and, as egreg pointed, \pagestyle{fancy} at the point you want the standard headers to start.


2

\documentclass{scrartcl} \usepackage{kantlipsum} \title{A title} \author{An author} \date{\today} \begin{document} \maketitle \begin{abstract} \kant[1] \end{abstract} \section{A section} \subsection{A subsection} \kant \end{document} If you want the abstract text itself in Sans Serif use \begin{abstract}\sffamily


2

An alternative package to fancyhdr is scrlayer-scrpage. It can do what you want. Though i have to admit, i have no idea why you want the section titles in the header. \documentclass[a4paper,12pt, %draft ]{report} \usepackage[utf8]{inputenc} % utf8 reicht zu \usepackage[T1]{fontenc} % ordentliche Trennung \usepackage[french,USenglish,UKenglish,ngerman]{...


2

This is as a result of shorttoc, which issues \uppercase for the header marks. You can change this by using \usepackage{shorttoc,regexpatch} \makeatletter \xpatchcmd*{\shorttableofcontents}{\uppercase}{}{}{}% Remove all \uppercase \makeatother


2

To remove the header on the next pages use \setkomavar{nexthead}{} For the second problem use a \parbox inside firstfoot \setkomavar{firstfoot}{\usekomafont{pageheadfoot}\usekomafont{pagefoot}% \parbox[t]{\textwidth}{% \rule[3pt]{\linewidth}{.4pt} \\ \begin{tabular}[t]{l@{}}% Super Man\\ Super Stra├če 30\\ ...


1

Is this what you'want? In front matter, there's only chapter title (Contents/Preface), first chapter pages and white pages have empty style (for the whole document). I added the twoside option, and used the emptypage and xpatche packages to achieve that. \documentclass[11pt, twoside]{book} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{xpatch, ...


1

change this one \thispagestyle{empty} to \pagestyle{empty} and insert \pagestyle{fancy} here \mainmatter \chapter{Ch1} It will looks now like \mainmatter \pagestyle{fancy} \chapter{Ch1}


1

I am just answering to show the flexibility of the accepted solution. All credit goes to samcarter. By changing minor stuff in the if/else and moving content from the header to the footer, I obtained the following nMWE outcome: The nMWE: \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usetheme{rochester} \usecolortheme{beaver} \...


1

The plain page style is used in appendices still, but it still has of course the heading settings. One way is to redefine in the plain pagestyle again in the appendices environment, with, say \AtBeginEnvironment. fancyhdr complains about headheight being too small, that's why I adjusted it. \documentclass[twoside, a4paper, 12pt, notitlepage]{report} \...


1

LaTeX is a funny beast sometimes, since what should be a fairly simple thing can often end up more complicated than you expect. In this case, because the different parts of the document (title, abstract, headings, etc.) are constructed separately, you need to change each part separately. For some things (like the title parts) the hacky way to do this is ...



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