Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
You have to compile twice. –  Marco Daniel Apr 19 '12 at 18:27

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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