From 52e35ee05d2b7fa28fd5bb9bf632b47b6ad747f9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 5 Sep 2011 00:12:52 +0000
Subject: fancytabs (4sep11)

git-svn-id: svn://tug.org/texlive/trunk@23809 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/fancytabs/fancytabs.sty   | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/fancytabs/fancytabs.sty')

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'.
-- 
cgit v1.2.3

