Page Layoutheader and footer at the same time

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
budrik
Posts: 5
Joined: Tue Oct 16, 2012 10:13 am

header and footer at the same time

Post by budrik »

Hi
How is it possible to use headers and footers at the same time?

I use "\pagestyle{headings}" and in addition i want to use the flipbook package to set an image sequence in the bottom right corner of the page. The problem is, though, that no footer is displayed after \pagestyle{headings} :( !

See attached example test.tex (no image sequence is provided)

Is there a way to allow a footer while keeping the header format?

Thanks for any help
cheers budrik

The extension is not allowed, so I post the code:

\documentclass[a5paper,10pt]{book}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{times}
\usepackage{epsfig}
\usepackage{epstopdf}
\usepackage{subfigure}
\usepackage{cite} % cite multiple sources
\usepackage[utf8]{inputenc} % deutsche Umlaute
\usepackage{units}
\usepackage{amsmath}

% add header line
%% title font style
\usepackage{sectsty}
\chapterfont{\sffamily}
\allsectionsfont{\sffamily}

%% title
\usepackage[a5paper]{geometry}
\usepackage{helvet}
\usepackage{lipsum} % arbitrary text
\usepackage{titlesec} % title sectioning package

%% drawings
\usepackage{color}
\usepackage{tikz}
\usetikzlibrary{shapes}
\usepackage{booktabs} % toprule in table

%% OPTIONS
\pdfminorversion=6 % unterdrückt includepdf warnings

\usepackage{url}
%% refernz style
% \bibliographystyle{apalike}
\bibliographystyle{unsrt}

% special A5 settings
% image caption to text spacing
\setlength{\textfloatsep}{10pt}
\usepackage[font=small,labelfont=bf]{caption}

%% necommand to enable small fonts in Headings
\newcommand{\MRgHIFU}{MRgHIFU}
\usepackage{flipbook}
\renewcommand{\footrulewidth}{0.4pt}

\rfoot[]{
% \setlength\unitlength{1cm}
\begin{picture}(0,0)
\put(0,0){
\fbImageB{path_to_image_sequence}{png}{scale=0.15}
}
\end{picture}
}

\begin{document}
\pagestyle{plain} % empty,plain,headings,myheadings
% \input{title_page}
\include{title_page_A5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%% frontmatter %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\chapter*{{\huge Preface}}
\addcontentsline{toc}{chapter}{Preface} % adds chapter to contents
% %
\lipsum
\chapter*{{\huge Summary}}
\addcontentsline{toc}{chapter}{Summary} % adds chapter to contents
% %
\lipsum
\chapter*{{\huge Zusammenfassung}}
\addcontentsline{toc}{chapter}{Zusammenfassung} % adds chapter to contents
%
\setcounter{tocdepth}{2}
\tableofcontents
\clearpage
\pagestyle{headings}


% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %%%%%%%%%%%%%%%%%%%%%% mainmatter %%%%%%%%%%%%%%%%%%%%%%%%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\chapter{Introduction}
\lipsum
\newpage
\chapter{Background}
\lipsum
\newpage
\chapter{and so on}
\lipsum
\newpage
\end{document}
Last edited by budrik on Mon Nov 12, 2012 11:48 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

header and footer at the same time

Post by localghost »

budrik wrote:[…] How is it possible to use headers and footers at the same time? […]
By a package like fancyhdr or titleps.
budrik wrote:[…] See attached example test.tex (no image sequence is provided) […]
Something must have gone wrong. The file is missing. I suggest to edit the initial post and attach the file subsequently.


Thorsten
Post Reply