summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fancytabs
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-17 22:43:24 +0000
committerKarl Berry <karl@freefriends.org>2011-04-17 22:43:24 +0000
commit5d6e60ca4389101ea5334dc9e6370e9bb63d9d53 (patch)
tree64766d619f3ea0c12a4179abd2f4e3466ce05a65 /Master/texmf-dist/tex/latex/fancytabs
parentad1e4d8e6581af6cb4c9a35f02f09ffda2d97df7 (diff)
new latex package fancytabs (16apr11)
git-svn-id: svn://tug.org/texlive/trunk@22112 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fancytabs')
-rw-r--r--Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty52
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty b/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
new file mode 100644
index 00000000000..a904711d510
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
@@ -0,0 +1,52 @@
+%%
+%% 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/04/16 1.1 Fancy page border tabs]
+\RequirePackage{tikz}
+\newcommand{\tabstyle}{\Large\scshape}
+\newcommand{\tabheight}{4cm}
+\newcommand{\tabwidth}{1cm}
+\newcommand{\tabcount}{6}
+\newcommand{\tableftcolor}{white}
+\newcommand{\tabrightcolor}{gray!50}
+\newcommand{\tabtop}{\tabheight}
+\newcommand{\tabtextvpos}{0.5}
+\newcommand{\tabtexthpos}{\tabtextvpos}
+\newcommand{\fancytab}[2]{%
+ \begin{tikzpicture}[remember picture,overlay]
+ \node[yshift={-\tabtop-1*mod(#2-1,\tabcount)*\tabheight},
+ xshift=-0.5*\tabwidth]
+ at (current page.north east) {
+ \tikz\shade[shading=axis,bottom color=\tableftcolor,
+ top color=\tabrightcolor,shading angle=-90]
+ (0,0) rectangle (\tabwidth,\tabheight)
+ node[rotate=90]
+ at (\tabtexthpos*\tabwidth,\tabtextvpos*\tabheight)
+ {\tabstyle#1};
+ };
+ \end{tikzpicture}%
+}
+\endinput
+%%
+%% End of file `fancytabs.sty'.