summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/threeparttablex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-01-10 01:03:02 +0000
committerKarl Berry <karl@freefriends.org>2010-01-10 01:03:02 +0000
commitedb3f0e6434fdd9b9ba2f6abaef04d9a3ada23d7 (patch)
treeb92be3daaf606e006e33d3f3a3bb2bde868d4101 /Master/texmf-dist/tex/latex/threeparttablex
parent125cb0452345f357296060037e22c05ddb86dfb0 (diff)
threeparttablex 0.08 (8jan10)
git-svn-id: svn://tug.org/texlive/trunk@16654 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/threeparttablex')
-rw-r--r--Master/texmf-dist/tex/latex/threeparttablex/threeparttablex.sty21
1 files changed, 19 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/threeparttablex/threeparttablex.sty b/Master/texmf-dist/tex/latex/threeparttablex/threeparttablex.sty
index 356aaea76a2..c219da5c4dc 100644
--- a/Master/texmf-dist/tex/latex/threeparttablex/threeparttablex.sty
+++ b/Master/texmf-dist/tex/latex/threeparttablex/threeparttablex.sty
@@ -1,4 +1,4 @@
-\ProvidesPackage{threeparttablex}[2009/12/28 v0.06 by daleif]
+\ProvidesPackage{threeparttablex}[2010/01/08 v0.08 by daleif]
%%
%% This package can be distributed and/or modified under the
@@ -73,7 +73,7 @@
\newcommand\TPTL@tnotex[2]{\tnote{\ref{#2}}}
-% if hyperref is loaded we activat a starred version
+% if hyperref is loaded we activate a starred version
\AtBeginDocument{%
\@ifpackageloaded{hyperref}{%
\renewcommand\TPTL@tnotex[2]{%
@@ -83,6 +83,21 @@
\tnote{\ref*{#2}}
\fi}}{}}
+
+\newcommand\TPTL@generator[2]{%
+ \providecommand{#1}{}% just to make it exist
+ \renewcommand#1[1][#2]{%
+ \let\TPTL@oldmakelabel=\makelabel
+ \renewcommand\makelabel[1]{\TPTLnotesnamefontcommand{##1:}}
+ \item
+ \let\makelabel=\TPTL@oldmakelabel}}
+
+\providecommand\TPTLnotename{Note}
+\providecommand\TPTLsourcename{Source}
+\providecommand\TPTLnotesnamefontcommand{\textit}
+
+
+
\let\TPTL@tablenotes=\tablenotes
% \makelabel (i.e. \item) hides its argument inside a group, making it
@@ -92,6 +107,8 @@
\let\TPTL@item=\item
\renewcommand\item[1][]{\TPTL@item[##1]%
\phantomsection\protected@edef\@currentlabel{##1}}
+ \TPTL@generator\note{\TPTLnotename}
+ \TPTL@generator\source{\TPTLsourcename}
\TPTL@font\TPTL@tablenotes}
% just in case it is not already there