summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-11-10 00:33:32 +0000
committerKarl Berry <karl@freefriends.org>2010-11-10 00:33:32 +0000
commit6a43749c68fb713c7747927e2dbce5fecebeef41 (patch)
tree34f43407f72e4b10c32d13b2b54c57d891472171 /Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty
parent6c695847dd86eb6feee74b5f466414efa62ca037 (diff)
interfaces 2.0 (9nov10)
git-svn-id: svn://tug.org/texlive/trunk@20388 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty')
-rw-r--r--Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty176
1 files changed, 2 insertions, 174 deletions
diff --git a/Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty b/Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty
index d5a4bcc072f..34b9ae0a791 100644
--- a/Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty
+++ b/Master/texmf-dist/tex/latex/interfaces/interfaces-LaTeX.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% interfaces : 2010/10/20 v1.1 - interfaces : interfaces with keys for other packages (FC)
+%% interfaces : 2010/10/31 v2.0 - interfaces : interfaces with keys for other packages (FC)
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -45,7 +45,7 @@
%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
%%
\ProvidesPackage{interfaces-LaTeX}
- [2010/10/27 v1.2 pgfkeys macros for LaTeX (FC)]
+ [2010/10/31 v2.0 pgfkeys macros for LaTeX (FC)]
\RequirePackage{interfaces-base}
\itf@pgfkeys
\newrobustcmd*\changefont[1]{\itf@pgfkeys
@@ -85,178 +85,6 @@
\pgfkeysifdefined{/itf/LaTeX/changefont/color/.@cmd}{}
{\pgfkeys{/itf/LaTeX/changefont/color/.code=\color{#1}}}%
}% AfterPackage xcolor
-\newtoks\itf@everycr@tok % better than colortbl turnaround for \everycr
-\newcommand*\rowfont{\noalign{\ifnum0=`}\fi\itf@rowfont}
-\newrobustcmd*\itf@rowfont[2][]{%
- \global\itf@everycr@tok\everycr
- \global\let\itf@@cellleft\itf@cellleft
- \global\let\itf@@cellright\itf@cellright
- \gdef\itf@cellfont{#2}%
- \ifcsname itf@cell@#1\endcsname % row alignment
- \csname itf@cell@#1\endcsname
- \else\lowercase{%
- \ifcsname itf@cell@#1\endcsname
- \csname itf@cell@#1\endcsname
- \fi
- }\fi
- \toks@\expandafter{\itf@cellleft\itf@cellfont}% inside \noalign group ok
- \xdef\itf@cellleft{\the\toks@}%
- \global\everycr\expandafter\expandafter\expandafter{%
- \expandafter\the\expandafter\everycr\expandafter\itf@rowfont@reset}%
- \ifnum0=`{\fi}% end of noalign group
-}% \rowfont
-\def\itf@rowfont@reset{%
- \noalign{%
- \global\let\itf@cellleft\itf@@cellleft
- \global\let\itf@cellright\itf@@cellright
- \global\let\itf@cellfont\@empty
- \global\let\itf@celllalign\@empty
- \global\let\itf@cellralign\@empty
- \global\everycr\itf@everycr@tok
- \global\itf@everycr@tok{}%
- }%
-}% \itf@rowfont@reset
-\newif\ifitf@cellright
-\def\itf@prepnext@tok{% only if array is loaded
- \itf@cnt = \count@
- \advance \itf@cnt -\@tempcnta
- \ifcase \itf@cnt % (case 0): previous token is left
- \itf@cellrighttrue % consequently the token to prepare is right !
- \toks\count@\expandafter{% augment the previous (left) token
- \expandafter\itf@celllalign
- \the\toks\count@
- \itf@cellleft}%
- \or % (case 1)
- \ifitf@cellright % previous token is right
- \itf@cellrightfalse% consequently the token to prepare is not right !
- \toks\count@=\expandafter{% augment the previous (right) token
- \the\toks\count@
- \itf@cellright
- \itf@cellralign}%
- \fi
- \else % special column: do not change the token
- \itf@cellrightfalse % the token to prepare cannot be right !
- \fi
- \advance \count@ \@ne \toks\count@{}% \prepnext@tok original def
-}% \itf@prepnext@tok
-\AfterPackage*{array}{%
- \global\let\array@prepnext@tok\prepnext@tok % frozen original definition
- \global\let\prepnext@tok\itf@prepnext@tok
-}% \AfterPackage*{array}
-\let\itf@cellleft\@empty
-\let\itf@cellright\@empty
-\def\itf@celllalign{\itf@cellleft}% the row font spec. applies to pre-column material
-\let\itf@cellralign\@empty
-\let\itf@cellfont\@empty
-\let\ifitf@colortbl\iffalse
-\AfterPackage*{colortbl}{\let\ifitf@colortbl\iftrue}
-\def\itf@cell@l{% force alignment to left
- \gdef\itf@celllalign{\itf@removehfil
- \raggedright\arraybackslash
- \itf@cellleft}%
- \gdef\itf@cellralign{\itf@flush1\itf@ignorehfil}%
- \toks@\expandafter{\itf@cellleft\raggedright\arraybackslash}% local (noalign group)
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@l
-\def\itf@cell@c{% force alignment to center
- \gdef\itf@celllalign{\itf@removehfil
- \centering\arraybackslash
- \itf@flush{.5}\itf@cellleft}%
- \gdef\itf@cellralign{\itf@flush{.5}\itf@ignorehfil}%
- \toks@\expandafter{\itf@cellleft\centering\arraybackslash}% local (noalign group)
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@c
-\def\itf@cell@r{% force alignment to right
- \gdef\itf@celllalign{\itf@removehfil
- \raggedleft\arraybackslash
- \itf@flush1\itf@cellleft}%
- \gdef\itf@cellralign{\itf@ignorehfil}%
- \toks@\expandafter{\itf@cellleft\raggedleft\arraybackslash}% local (noalign group)
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@r
-\def\itf@cell@j{% force justification (for p, m, b columns)
- \gdef\itf@celllalign{\itf@justify\itf@cellleft}%
- \global\let\itf@cellralign\@empty
- \toks@\expandafter{\itf@cellleft\itf@justify}% local (noalign group)
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@j
-\def\itf@justify{%
- \leftskip\z@skip \@rightskip\leftskip \rightskip\@rightskip
- \parfillskip\@flushglue
-}% \itf@justify
-\AfterPackage*{ragged2e}{%
-\def\itf@cell@L{% force alignment to left (ragged2e)
- \gdef\itf@celllalign{\itf@removehfil
- \RaggedRight\arraybackslash
- \itf@cellleft}%
- \gdef\itf@cellralign{\itf@flush1\itf@ignorehfil}%
- \toks@\expandafter{\itf@cellleft\RaggedRight\arraybackslash}%
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@L
-\def\itf@cell@C{% force alignment to center (ragged2e)
- \gdef\itf@celllalign{\itf@removehfil
- \Centering\arraybackslash
- \itf@flush{.5}\itf@cellleft}%
- \gdef\itf@cellralign{\itf@flush{.5}\itf@ignorehfil}%
- \toks@\expandafter{\itf@cellleft\Centering\arraybackslash}%
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@C
-\def\itf@cell@R{% force alignment to right (ragged2e)
- \gdef\itf@celllalign{\itf@removehfil
- \RaggedLeft\arraybackslash
- \itf@flush1\itf@cellleft}%
- \gdef\itf@cellralign{\itf@ignorehfil}%
- \toks@\expandafter{\itf@cellleft\RaggedLeft\arraybackslash}%
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@R
-\def\itf@cell@J{% force justification (ragged2e)
- \gdef\itf@celllallign{\justifying\arraybackslash\itf@cellleft}%
- \global\let\itf@cellralign\@empty
- \toks@\expandafter{\itf@cellleft\justifying\arraybackslash}%
- \xdef\itf@cellleft{\the\toks@}%
-}% \itf@cell@J
-}% AfterPackage ragged2e
-\def\itf@flush#1{%
- \ifitf@colortbl % colortbl uses \hfill rather than \hfil
- \hskip \ifnum\currentgrouptype>13 \stretch{#1}%
- \else\ifdim#1pt<1pt \itf@cellskip
- \else \stretch{#1}
- \fi\fi \relax
- \else % array.sty
- \ifnum \currentgrouptype>13\relax
- \hfil \hskip1sp
- \fi
- \fi
-}% \itf@flush
-\newskip\itf@cellskip
-\let\itf@hfil\hfil
-\let\itf@hfill\hfill
-\let\itf@hskip\hskip
-\def\itf@removehfil{%
- \ifitf@colortbl
- \unkern \itf@cellskip = \lastskip
- \ifnum\gluestretchorder\itf@cellskip = \tw@ \hskip-\itf@cellskip
- \else \itf@cellskip = \z@skip
- \fi
- \else
- \ifdim\lastskip=1sp\unskip\fi
- \ifnum\gluestretchorder\lastskip = \@ne
- \hfilneg % \hfilneg for array.sty but not for colortbl...
- \fi
- \fi
-}% \itf@removehfil
-\def\itf@nohfil{% \hfil -> do nothing + restore original \hfil
- \def\hfil{\let\hfil\itf@hfil}% local to (alignment template) group
-}% \itf@nohfil
-\AfterPackage*{colortbl}{%
- \def\itf@nohfil{%
- \def\hfil{\let\hfil\itf@hfil}% local to (alignment template) group
- \def\hfill{\let\hfill\itf@hfill}% (colortbl uses \hfill) pfff...
- \def\hskip##1\relax{\let\hskip\itf@hskip}}% local
-}% AfterPackage colortbl
-\def\itf@ignorehfil{%
- \aftergroup\itf@nohfil
-}% \itf@ignorehfil
\endinput
%%
%% End of file `interfaces-LaTeX.sty'.