%% %% This is file `fancytabs.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% fancytabs.dtx (with options: `package') %% %% This is a generated file. %% %% Copyright (C) 2011 by Raphaƫl Pinson %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either %% version 1.2 of this license or (at your option) any later %% version. The latest version of this license is in: %% %% http://www.latex-project.org/lppl.txt %% %% and version 1.2 or later is part of all distributions of %% LaTeX version 1999/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{fancytabs} [2011/09/04 1.7 Fancy page border tabs with Tikz] \ProvidesPackage{fancytabs} \RequirePackage{tikz} \newcommand{\tab@style}{\Large\scshape} \newcommand{\tab@height}{4cm} \newcommand{\tab@width}{1cm} \newcommand{\tab@count}{6} \newcommand{\tab@leftcolor}{white} \newcommand{\tab@rightcolor}{gray!50} \newcommand{\tab@top}{\tab@height} \newcommand{\tab@textvpos}{0.5} \newcommand{\tab@texthpos}{\tab@textvpos} \newcommand{\tab@gap}{0in} \newcommand{\tab@floor}{0} \newcommand{\fancytabsStyle}[1]{\renewcommand{\tab@style}{#1}} \newcommand{\fancytabsHeight}[1]{\renewcommand{\tab@height}{#1}} \newcommand{\fancytabsWidth}[1]{\renewcommand{\tab@width}{#1}} \newcommand{\fancytabsCount}[1]{\renewcommand{\tab@count}{#1}} \newcommand{\fancytabsLeftColor}[1]{\renewcommand{\tab@leftcolor}{#1}} \newcommand{\fancytabsRightColor}[1]{\renewcommand{\tab@rightcolor}{#1}} \newcommand{\fancytabsTop}[1]{\renewcommand{\tab@top}{#1}} \newcommand{\fancytabsTextVPos}[1]{\renewcommand{\tab@textvpos}{#1}} \newcommand{\fancytabsTextHPos}[1]{\renewcommand{\tab@texthpos}{#1}} \newcommand{\fancytabsGap}[1]{\renewcommand{\tab@gap}{#1}} \newcommand{\fancytabsFloor}[1]{\renewcommand{\tab@floor}{#1}} \AtBeginDocument{\@ifpackageloaded{babel} {\@ifundefined{active@char;}{}{% \g@addto@macro\tikz@installcommands{% \shorthandoff{;}}% \g@addto@macro\tikz@uninstallcommands{% \shorthandon{;}}% }% }{}% } \newcommand{\fancytab}[2]{% \begin{tikzpicture}[remember picture,overlay]% \node[yshift={-1*(\tab@top+\tab@height/2+ mod(#2-1-\tab@floor,\tab@count)* (\tab@height+\tab@gap))}, xshift=-0.5*\tab@width] at (current page.north east) { \tikz\shade[shading=axis,bottom color=\tab@leftcolor, top color=\tab@rightcolor,shading angle=-90] (0,0) rectangle (\tab@width,\tab@height) node[rotate=0] at (\tab@texthpos*\tab@width,\tab@textvpos*\tab@height) {\rotatebox{90}{\tab@style#1}};% };% \end{tikzpicture}% } \endinput %% %% End of file `fancytabs.sty'.