Tag Info

Hot answers tagged

4

Add \makeevenfoot{plain}{\thepage}{}{} \makeoddfoot{plain}{}{}{\thepage} to alter the plain page style which is used for the contents and similar pages.


4

Although you can't do this easily with fancyhdr, you can do it fairly straightforwardly with titleps. \documentclass{article} \usepackage{titleps,kantlipsum} \newpagestyle{mypage}{% \headrule \sethead{\MakeUppercase{\thesection\quad \sectiontitle}}{}{\thesubsection\quad \subsectiontitle} \setfoot{}{}{\thesubsubsection\quad \subsubsectiontitle} } ...


3

Here is a suggestion using \hrulefill \documentclass{scrbook} \usepackage[automark]{scrlayer-scrpage} \lehead{\headmark{} \hrulefill} \rohead{\hrulefill{} \headmark} \renewcommand*{\chaptermarkformat}{} \addtokomafont{pagehead}{\scshape} \usepackage{blindtext} \begin{document} \Blinddocument \end{document} Or if you want to use the ...


3

You can adopt the answers given in the link like this. \documentclass[a4paper]{article} \usepackage{atbegshi,picture,afterpage} \usepackage{lipsum} \title{Some article} \author{Author here} \begin{document} \maketitle \afterpage{\AtBeginShipout{\AtBeginShipoutUpperLeft{% \put(\dimexpr\paperwidth-1cm\relax,-1.5cm){\makebox[0pt][r]{\framebox{Copyright ...


3

You can simply add a rule after the box that holds the heading: \documentclass{article} \makeatletter \def\myhrule{\vskip1ex\hrule height 5pt} \renewcommand\ps@headings{% \def\@evenhead{foo\hfill bar\aftergroup\myhrule}% \def\@oddhead{foo\hfill bar\aftergroup\myhrule}% } \makeatother \begin{document} \pagestyle{headings} \section{Introduction} foo ...


3

With fancyhdr, it is not complicated. \documentclass{article} \usepackage{fancyhdr} \usepackage{kantlipsum} \fancypagestyle{firstpagestyle}{% \fancyhf{} \rfoot{Continued on next page $\longrightarrow$} \renewcommand{\headrulewidth}{0pt} } \fancypagestyle{regular}{% \fancyhf{} \rhead{LOGO} \chead{Some} \lhead{\thepage} \rfoot{This is other page}% } ...


3

Due to how you defined \lowsc, the redefinition in the header applies to nothing, because what TeX sees at that point is not \lowsc any more, but \scalebox{0.8}{i}. Using \DeclareRobustCommand for \lowsc solves the problem. I'd use a conditional, however. \documentclass{scrreprt} \usepackage[markcase=lower]{scrlayer-scrpage} \usepackage{graphics} ...


2

You can use fancyhdr coupled with zref-lastpage: \documentclass{article} \usepackage{zref-lastpage,fancyhdr} \usepackage{kantlipsum} \pagestyle{fancy} \renewcommand\headrulewidth{0pt} \fancyhf{} \fancyfoot[C]{\small\thepage} \makeatletter \fancyfoot[R]{% \ifnum\value{page}<\zref@extract{LastPage}{page}% \scriptsize\itshape Continue to next page ...


2

My \myhrule for rules in headers looks slight different than David's. The position of the heading text doesn't depend on the depth of the text. And, of course, I needn't any additional package. \makeatletter \def\myhrule{\lower1ex\null\vadjust{\hrule}} \renewcommand\ps@headings{% \def\@evenhead{foo\hfill bar\myhrule}% \def\@oddhead{foo\hfill ...


2

You have to adjust the marginparwidth along with textwidth otherwise the total text width will exceed the paper width. Use this instead: \newgeometry{left=0.12\paperwidth,top=1in,headsep=2\baselineskip, textwidth=0.7\paperwidth,marginparsep=1ex,marginparwidth=0.1\paperwidth, textheight=44\baselineskip,headheight=\baselineskip} Remember that tufte ...


2

The memoirclass uses pagestyle chapter for the first page of the chapter. So you can do ... \pagestyle{mystyle} \aliaspagestyle{chapter}{mystyle} \begin{document} ... I'm not sure why you redefined the plain page style to be the same as mystyle, but it would be better to replace that with \aliaspagestyle{plain}{mystyle} if you still need it.


2

You can just under line them. \documentclass{article} \usepackage[normalem]{ulem} \makeatletter \renewcommand\ps@headings{ \def\@evenhead{\uline{foo bar}} \def\@oddhead{\uline{foo bar}} } \makeatother \begin{document} \pagestyle{headings} \section{Introduction} foo bar baz \clearpage \section{Introduction} foo bar baz \end{document} You can ...


2

You can combine Herbert's clever answer to how to get the current chapter name, section name, subsection name, etc? with fancyhdr as follows. \documentclass{article} \usepackage{fancyhdr} \usepackage{blindtext} \pagestyle{fancy} \let\Sectionmark\sectionmark \def\sectionmark#1{\def\Sectionname{#1}\Sectionmark{#1}} \let\Subsectionmark\subsectionmark ...


2

Why not something simple? \documentclass[12pt]{article} \usepackage{tocloft,fancyhdr} \newif\iftoccont \renewcommand*\contentsname{Table of Contents} \renewcommand*\cfttoctitlefont{\normalsize\normalfont\MakeUppercase} \renewcommand\cftsecfont{\normalfont} \renewcommand\cftsecpagefont{\normalfont} \renewcommand\cftsecaftersnum{.} ...


2

If there is no important reason for using fancyhdr with beamer, I'd suggest to declare headers and footers with footline and headline beamertemplates which is the beamer's way. Following code shows an starting point. %%%%%%%%%%%%%%%%%%%%%% % Class and packages % %%%%%%%%%%%%%%%%%%%%%% \documentclass[12pt]{beamer} \usetheme{default} \usepackage{lipsum} ...


2

You have some issues: the interline space should be reduced in the heading; the heading should be lifted up in the top margin. The first issue is solved by saying \setstretch{1}; the second by setting the heading in a bottom aligned zero height box. \documentclass[12pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} ...


2

Different approach using the successor scrlayer-scrpage instead of the obsolete scrpage2. Using headinclude we define, that the head is part of the typearea, which in this example might not even be true.Using headlines we can give some height value and don't have to manually set the headheight. With onpsinit we give a command that is to be executed ...


1

There are many possibilities, here are two of them . . . . %--- one way %\usepackage{eso-pic} %\newcommand\AtPageUpperMyright[1]{\AtPageUpperLeft{% % \put(\LenToUnit{0.7\paperwidth},\LenToUnit{-5.7cm}){% % \parbox{0.26055\textwidth}{\raggedleft#1}}% % }}% %\newcommand{\mylogo}[1]{% %\AddToShipoutPictureBG*{% %\AtPageUpperMyright{#1} %} %} %%-- another ...


1

It makes just as much sense to overlay an image from the bottom up as from the top down. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Large Colored Title Article % LaTeX Template % Version 1.1 (25/11/12) % % This template has been downloaded from: % http://www.LaTeXTemplates.com % % Original author: % Frits Wenneker (http://www.howtotex.com) % % License: % ...


1

Use tabulars like this \address{% \begin{tabular}{@{}l} Address 123\\ 222 22 City \\ 123 123 \end{tabular} \hspace{1cm} \begin{tabular}{@{}l} \includegraphics[width=2cm]{photo} \end{tabular} } If you want to flush the photo, use two \address fields \address{% \begin{tabular}{@{}l} Address 123\\ 222 22 City \\ 123 123 \end{tabular} } \address{% ...


1

The first solution I can think is using [plain] template for title page. This template suppresses headers and footers, therefore how footline is defined doesn't matter. xlr8t doesn't explain if this option has been considered. Another solution which works in this case consists in inserting an empty beamercolorbox for title page: ...


1

Use \renewcommand*{\memUChead}[1]{\textsc{\MakeTextLowercase{#1}}}. Instead of using \textsc and \MakeTextLowercase, you could also just use a smaller size macro, e.g. \small, to make the all caps headings smaller. This produces fake small caps, which normally are not equal to real small caps, but this could produce similar results when using a font that ...


1

Try replacing relevant lines with: \setupheadertexts[\setups{tableheader}] and \bTABLE[split=no] % allow splitting over page boundaries it should work then. You can also insert images into cells in your header table. My compiler is LuaTeX from TeXLive package.


1

This is not an answer, but an extended comment. The code that you posted works as expected for me; so create a minimal example that shows what is going wrong at your end. Note, the \showframe is only for diagnostic purposes. \startsetups[tableheader] \setupTABLE[column][1][width=.45\textwidth] \setupTABLE[column][2,3][width=.22\textwidth] ...


1

Here is a solution \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \usepackage{afterpage} \author{Bent Nielsen} \title{page change testing} \gdef\Total{0.00} \gdef\TopTotal{0.00} \pagestyle{fancy} \fancyhf{} \rhead{Top Total \TopTotal} \rfoot{Current total \Total} \newcommand{\mtTotal}[1]{% \gdef\Total{#1}% ...


1

You're basically forgetting to issue \pagestyle{fancy}. However, also the order of your packages is wrong. Here's a fixed version. \documentclass[twoside,12pt,openright,a4paper]{book} \usepackage{titlesec} \usepackage[titles]{tocloft} \usepackage{fancyhdr} \usepackage{chngcntr} \usepackage{lipsum} \usepackage[linktoc=all,hyperindex]{hyperref} ...



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