3

I tried fancytabs by the example given in its manual as

\documentclass{scrbook}
\usepackage{scrpage2}
\usepackage{fancytabs}
\usepackage{lipsum}
% Capture chapter head
\let\oldchapter\chapter
\newcommand\temphead{}
\newcommand\chaphead{}
\renewcommand\chapter[2][\temphead]{%
\renewcommand\temphead{#2}%
\renewcommand\chaphead{#2}%
\oldchapter[#1]{#2}}
% Set central right header to display tab
% for both scrplain and scrheadings
\cohead[\fancytab{\chaphead}{\thechapter}]
{\fancytab{\chaphead}{\thechapter}}

\renewcommand*{\chapterpagestyle}{scrplain}
\pagestyle{scrheadings}
\begin{document}
\chapter{A chapter}
\lipsum
\lipsum
\end{document}

but it does not show the vertical lab displayed in the manual document or HERE. I just copied the exact example from manual. Where did I do wrong?

  • You have to compile twice. – Marco Daniel Apr 19 '12 at 18:27
3

The package fancytabs uses the package TikZ to draw the tabs. To compute the correct position of the tabs TikZ needs two compilation runs of (pdf)latex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.