Veja um exemplo adaptado do manual.
\documentclass{scrbook}
\usepackage{scrpage2,fancytabs,lipsum}
% Pegando o cabecalho do capitulo
\let\oldchapter\chapter
\newcommand\temphead{}
\newcommand\chaphead{}
\renewcommand\chapter[2][\temphead]{%
\renewcommand\temphead{#2}%
\renewcommand\chaphead{#2}%
\oldchapter[#1]{#2}}
\cohead[\fancytab{\chaphead}{\thechapter}]
{\fancytab{\chaphead}{\thechapter}}
% Definindo novas cores
\fancytabsLeftColor{yellow}
\fancytabsRightColor{orange}
\renewcommand*{\chapterpagestyle}{scrplain}
\pagestyle{scrheadings}
\begin{document}
\chapter{A chapter}
\lipsum
\lipsum
\end{document}
\usepackage{scrpage2,fancytabs,lipsum}
\let\oldchapter\chapter
\newcommand\temphead{}
\newcommand\chaphead{}
\renewcommand\chapter[2][\temphead]{%
\renewcommand\temphead{#2}%
\renewcommand\chaphead{#2}%
\oldchapter[#1]{#2}}
\cohead[\fancytab{\chaphead}{\thechapter}]
{\fancytab{\chaphead}{\thechapter}}
\fancytabsLeftColor{yellow}
\fancytabsRightColor{orange}
\renewcommand*{\chapterpagestyle}{scrplain}
\pagestyle{scrheadings}
\chapter{A chapter}
\lipsum
\lipsum
Nenhum comentário:
Postar um comentário