summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fancytabs
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-05 00:12:52 +0000
committerKarl Berry <karl@freefriends.org>2011-09-05 00:12:52 +0000
commit52e35ee05d2b7fa28fd5bb9bf632b47b6ad747f9 (patch)
treecc34b84e9d08d991a823c36bce8668ec7ed6a42b /Master/texmf-dist/tex/latex/fancytabs
parent8f6f55ca75ef224a27ad8413d32275f2921f747d (diff)
fancytabs (4sep11)
git-svn-id: svn://tug.org/texlive/trunk@23809 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fancytabs')
-rw-r--r--Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty22
1 files changed, 10 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty b/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
index b97ec5cddc2..c28a36ec962 100644
--- a/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
+++ b/Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty
@@ -22,9 +22,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{fancytabs}
- [2011/04/20 1.4 Fancy page border tabs]
+ [2011/09/03 1.6 Fancy page border tabs]
+
+\ProvidesPackage{fancytabs}
\RequirePackage{tikz}
-\makeatletter
\newcommand{\tab@style}{\Large\scshape}
\newcommand{\tab@height}{4cm}
\newcommand{\tab@width}{1cm}
@@ -48,15 +49,13 @@
\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{;}%
- }%
+ \shorthandoff{;}}%
+ \g@addto@macro\tikz@uninstallcommands{%
+ \shorthandon{;}}%
}%
- {}%
+ }{}%
}
\newcommand{\fancytab}[2]{%
\begin{tikzpicture}[remember picture,overlay]%
@@ -68,13 +67,12 @@
\tikz\shade[shading=axis,bottom color=\tab@leftcolor,
top color=\tab@rightcolor,shading angle=-90]
(0,0) rectangle (\tab@width,\tab@height)
- node[rotate=90]
+ node[rotate=0]
at (\tab@texthpos*\tab@width,\tab@textvpos*\tab@height)
- {\tab@style#1};%
+ {\rotatebox{90}{\tab@style#1}};%
};%
\end{tikzpicture}%
}
-\makeatother
\endinput
%%
%% End of file `fancytabs.sty'.