summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tabfigures
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-19 23:49:02 +0000
committerKarl Berry <karl@freefriends.org>2011-09-19 23:49:02 +0000
commitd033dd6b59e70d2daf205b3a285f3aad2228b96f (patch)
tree1f3d725370ede3a9b4ff3824fbf9af2898f6f01e /Master/texmf-dist/tex/latex/tabfigures
parent4d169ca66f8bd4cfb4257a94e49edbfdcdc84ce8 (diff)
new latex package tabfigures (19sep11)
git-svn-id: svn://tug.org/texlive/trunk@24025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tabfigures')
-rw-r--r--Master/texmf-dist/tex/latex/tabfigures/tabfigures.sty132
1 files changed, 132 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tabfigures/tabfigures.sty b/Master/texmf-dist/tex/latex/tabfigures/tabfigures.sty
new file mode 100644
index 00000000000..7e72abe4d67
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tabfigures/tabfigures.sty
@@ -0,0 +1,132 @@
+%%
+%% This is file `tabfigures.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% tabfigures.dtx (with options: `package')
+%%
+%% Copyright (c) 2007 by Andreas Buehmann
+%% Copyright (c) 2011 by Michael Ummels <michael.ummels@rwth-aachen.de>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% 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.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Michael Ummels.
+%%
+%% This work consists of the files tabfigures.dtx, tabfigures.ins and
+%% the derived files tabfigures.sty and tabfigures.pdf.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tabfigures}[2011/09/17 v1.0 Patches for using tabular figures]
+\newcommand*\tabfig@@[1]{tabfig@@\expandafter\@cdr\string #1\@nil}
+\newcommand*\tabfig@[1]{\csname \tabfig@@{#1}\endcsname}
+\newcommand*\tabfig@name{}
+\newcommand*\tabfig@save[1]{%
+ \edef\tabfig@name{\expandafter\expandafter\expandafter
+ \noexpand\tabfig@{#1}}%
+ \expandafter\newcommand\tabfig@name{}%
+ \expandafter\let\tabfig@name #1%
+}
+\newcommand*\tabfig@def[1]{%
+ \tabfig@save{#1}%
+ \def#1%
+}
+\newcommand*\tabfig@pname{}
+\newcommand*\tabfig@patch@l[1]{%
+ \@ifundefined{l@#1}{}{%
+ \edef\tabfig@pname{\expandafter\noexpand\csname l@#1\endcsname}%
+ \expandafter\tabfig@save\tabfig@pname
+ \expandafter\edef\tabfig@pname##1##2{%
+ \noexpand\tabfig@
+ \expandafter\noexpand\tabfig@pname
+ {##1}{\noexpand\tabfig@font ##2}%
+ }%
+ }%
+}
+\newif\iftabfig@debug \tabfig@debugfalse
+\DeclareOption{debug}{\tabfig@debugtrue}
+\DeclareOption{eqno}{%
+ \AtBeginDocument{%
+ \@ifpackageloaded{amsmath}{%
+ \tabfig@def\maketag@@@#1{\tabfig@\maketag@@@{\tabfig@font #1}}%
+ }{%
+ \CheckCommand*\@eqnnum{{\normalfont \normalcolor (\theequation)}}%
+ \def\@eqnnum{{\normalfont \tabfig@font \normalcolor (\theequation)}}%
+ }%
+ }%
+}
+\DeclareOption{toc}{%
+ \AtBeginDocument{%
+ \tabfig@def\@dottedtocline#1#2#3#4#5{%
+ \tabfig@\@dottedtocline{#1}{#2}{#3}{#4}{\tabfig@font #5}%
+ }%
+ \tabfig@def\numberline#1{%
+ \tabfig@\numberline{\tabfig@font #1}%
+ }%
+ \tabfig@patch@l{part}%
+ \tabfig@patch@l{chapter}%
+ \tabfig@patch@l{section}%
+ \tabfig@patch@l{subsection}%
+ \tabfig@patch@l{subsubsection}%
+ \tabfig@patch@l{paragraph}%
+ \tabfig@patch@l{subparagraph}%
+ \tabfig@patch@l{figure}%
+ \tabfig@patch@l{table}%
+ \@ifclassloaded{memoir}{%
+ \tabfig@def\cftchapterpresnum{\tabfig@font \tabfig@\cftchapterpresnum}%
+ \tabfig@def\cftpartpresnum{\tabfig@font \tabfig@\cftpartpresnum}%
+ }{}%
+ }%
+}
+\DeclareOption{enum}{%
+ \AtBeginDocument{%
+ \tabfig@def\labelenumi{\tabfig@font \tabfig@\labelenumi}%
+ \tabfig@def\labelenumii{\tabfig@font \tabfig@\labelenumii}%
+ \tabfig@def\labelenumiii{\tabfig@font \tabfig@\labelenumiii}%
+ \tabfig@def\labelenumiv{\tabfig@font \tabfig@\labelenumiv}%
+ }%
+}
+\DeclareOption{bib}{%
+ \AtBeginDocument{%
+ \tabfig@def\@biblabel{\tabfig@font \tabfig@\@biblabel}%
+ \@ifpackageloaded{biblatex}{%
+ \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{\tabfig@font #1}}%
+ \DeclareFieldFormat{labelalphawidth}{\mkbibbrackets{\tabfig@font #1}}%
+ }{}%
+ }%
+}
+\DeclareOption{lineno}{%
+ \AtBeginDocument{%
+ \@ifpackageloaded{doc}{%
+ \CheckCommand*\theCodelineNo{%
+ \reset@font\scriptsize\arabic{CodelineNo}}%
+ \def\theCodelineNo{%
+ \reset@font\tabfig@font\scriptsize\arabic{CodelineNo}}%
+ }{}%
+ }%
+}
+\ProcessOptions\relax
+\newcommand*\tabfig@font{\tbfigures}
+\iftabfig@debug
+ \RequirePackage{xcolor}%
+ \colorlet{tabfig@debug}{green!50!black}%
+ \renewcommand\tabfig@font{\tbfigures\color{tabfig@debug}}%
+\fi
+\AtBeginDocument{%
+ \@ifundefined{tbfigures}{%
+ \PackageWarning{tabfigures}{There is no command
+ \string\tbfigures\space to support tabular figures}%
+ \let\tabfig@font\@empty
+ }{}%
+}
+%%
+%%
+%% End of file `tabfigures.sty'.