# Vertical line in footer and header

I want to make my footer and header look like this beautiful apple manual.

I think, I should use the fancyhdr package. But, I need an example to see how I should use it in this case (for vertical lines). I have found a lot about horizontal line, but not vertical ones.

• Welcome to TeX.SX! Is the clean-thesis template what you're looking for? (It's purpose is to emulate this layout. It goes way beyond the footer only. But you can fiddle with the code to emulate the footer only.) – ebosi Apr 11 '16 at 9:32

\documentclass[twoside]{article}
\usepackage[margin=1in]{geometry}
\usepackage{xcolor}
\usepackage{fancyhdr}
\fancyhf{}
\fancyfoot[RO]{\vfootline\hskip\linepagesep\thepage}
\fancyfoot[LE]{\thepage\hskip\linepagesep\vfootline}
\newskip\linepagesep \linepagesep 5pt\relax
\def\vfootline{%
\begingroup\color{blue}\rule[-990pt]{1pt}{1000pt}\endgroup}
\usepackage{lipsum}

\pagestyle{fancy}

\begin{document}
\lipsum
\lipsum
\lipsum
\end{document}


For the head its very similar. Here, I used the picture environment to ensure the right positioning:

\documentclass[twoside]{report}
\usepackage[margin=1in]{geometry}
\usepackage{xcolor}
\usepackage{fancyhdr}
\fancyhf{}
\newskip\linepagesep \linepagesep 5pt\relax
\begingroup\color{blue}\rule[-5pt]{1pt}{1000pt}\endgroup}
\usepackage{lipsum}

\pagestyle{fancy}

\begin{document}
\chapter{A chapter}
\lipsum
\lipsum
\lipsum
\end{document}

• maybe you could help how to make same thing with header? I mean my title of chapter should have a vertical line with chapter number. – Satnam Apr 11 '16 at 11:35
• @Satnam -- added the part for headers – Ruben Apr 11 '16 at 15:14

You can use the clean-thesis template, that aims to emulate the style of Apple's documents.

Therefor, you need to download the archive on its developer website. You unzip the files and will find three main documents:

• thesis-example.pdf and thesis-example.tex: A document using the clean-thesis and the root of its source-code: so that you can compare the result with its LaTeX source (a lot to learn this way!);
• cleanthesis.sty : the package definition itself. If you want to use it in other documents, you need to install is in the right folder of your tex distro, or to copy it in the same folder than the *.tex file you're using.

*Nota: this package adapts the outlook of KOMA-script classes. You'll need some changes if you use other classes. It also redefines a lot of parameters. If you prefer, you can just fiddle in the code of cleanthesis.sty and copy-past the features you like. Its a bit of work, sure, but you will learn a lot!