summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-20 01:02:32 +0000
committerKarl Berry <karl@freefriends.org>2011-04-20 01:02:32 +0000
commit695bdab05077ae6db369ce39763e4c69bc49d737 (patch)
tree95f50f57fac478eeb32a93b8d14d1eb62d934b4b /Master/texmf-dist/tex
parent0ea4797d5f27cf7d8aba1d8af5c9a928cbe6a66d (diff)
fancytabs (19apr11)
git-svn-id: svn://tug.org/texlive/trunk@22130 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty19
1 files changed, 17 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty b/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
index a904711d510..36b66225b57 100644
--- a/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
+++ b/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{fancytabs}
- [2011/04/16 1.1 Fancy page border tabs]
+ [2011/04/17 1.2 Fancy page border tabs]
\RequirePackage{tikz}
\newcommand{\tabstyle}{\Large\scshape}
\newcommand{\tabheight}{4cm}
@@ -33,9 +33,24 @@
\newcommand{\tabtop}{\tabheight}
\newcommand{\tabtextvpos}{0.5}
\newcommand{\tabtexthpos}{\tabtextvpos}
+\newcommand{\tabgap}{0in}
+\newcommand{\tabfloor}{0}
+\newcommand{\fancytabsStyle}[1]{\renewcommand{\tabstyle}{#1}}
+\newcommand{\fancytabsHeight}[1]{\renewcommand{\tabheight}{#1}}
+\newcommand{\fancytabsWidth}[1]{\renewcommand{\tabwidth}{#1}}
+\newcommand{\fancytabsCount}[1]{\renewcommand{\tabcount}{#1}}
+\newcommand{\fancytabsLeftColor}[1]{\renewcommand{\tableftcolor}{#1}}
+\newcommand{\fancytabsRightColor}[1]{\renewcommand{\tabrightcolor}{#1}}
+\newcommand{\fancytabsTop}[1]{\renewcommand{\tabtop}{#1}}
+\newcommand{\fancytabsTextVPos}[1]{\renewcommand{\tabtextvpos}{#1}}
+\newcommand{\fancytabsTextHPos}[1]{\renewcommand{\tabtexthpos}{#1}}
+\newcommand{\fancytabsGap}[1]{\renewcommand{\tabgap}{#1}}
+\newcommand{\fancytabsFloor}[1]{\renewcommand{\tabfloor}{#1}}
\newcommand{\fancytab}[2]{%
\begin{tikzpicture}[remember picture,overlay]
- \node[yshift={-\tabtop-1*mod(#2-1,\tabcount)*\tabheight},
+ \node[yshift={-1*(\tabtop+\tabheight/2+
+ mod(#2-1-\tabfloor,\tabcount)*
+ (\tabheight+\tabgap))},
xshift=-0.5*\tabwidth]
at (current page.north east) {
\tikz\shade[shading=axis,bottom color=\tableftcolor,