summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/makecell/makecell.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-06-30 13:14:33 +0000
committerKarl Berry <karl@freefriends.org>2006-06-30 13:14:33 +0000
commit2e9f3d4c5505449dcb952eda85a9f94979511477 (patch)
tree3021fc1ec0d140c5c24ebabebd557f19f45b61f9 /Master/texmf-dist/tex/latex/makecell/makecell.sty
parent281653d1f79bf062977588523f8a8a89f4716c1f (diff)
makecell 0.1c update
git-svn-id: svn://tug.org/texlive/trunk@1728 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/makecell/makecell.sty')
-rw-r--r--Master/texmf-dist/tex/latex/makecell/makecell.sty58
1 files changed, 55 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/makecell/makecell.sty b/Master/texmf-dist/tex/latex/makecell/makecell.sty
index f50853755dd..eef95d7b4e6 100644
--- a/Master/texmf-dist/tex/latex/makecell/makecell.sty
+++ b/Master/texmf-dist/tex/latex/makecell/makecell.sty
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{makecell}
- [2005/07/02 v0.1a Multilined Cells and Tabular Heads]
+ [2006/06/28 v0.1c Multilined Cells and Tabular Heads]
\RequirePackage{array}
\newcommand\makecell{\@ifstar{\let\tabg@pe\gape\makecell@}%
{\let\tabg@pe\cellgape\makecell@}}
@@ -43,8 +43,8 @@
\let\tabg@pe\empty\let\t@bset\cellset\makecell@}
{\@ifnextchar[{\@rotcell}{\@@rotcell}}}
\@ifdefinable\@rotcell{}
-\def\@rotcell[#1]#2{\\[-.65\normalbaselineskip]
- \turn{\cellrotangle}\makecell[#1]{#2}\endturn}
+\def\@rotcell[#1]#2{\makecell{\\[-.65\normalbaselineskip]
+ \turn{\cellrotangle}\makecell[#1]{#2}\endturn}}
\newcommand\@@rotcell[1]{\makecell{\\[-.65\normalbaselineskip]
\turn{\cellrotangle}\makecell[c{>{\rightskip0explus
\rotheadsize\hyphenpenalty0\pretolerance-1%
@@ -203,6 +203,58 @@
\fi
\global\let\mcell@left\relax\global\let\mcell@right\relax
}\prepnext@tok}
+\newcommand\eline[1]{\count@ #1%
+ \advance\count@\m@ne
+ \loop \@temptokena\expandafter{\the\@temptokena&}%
+ \advance\count@\m@ne \ifnum\count@>\z@\repeat
+ \the\@temptokena\ignorespaces}
+\newcommand\rnline{\gdef
+ \TeXr@rus{\let\@Alph\@Asbuk\let\@alph\@asbuk}\@nline}
+\newcommand\nline{\gdef\TeXr@rus{}\@nline}
+\newcommand\@nline{\@ifnextchar[%]
+ {\@@nline}{\@@nline[1]}}
+\@ifdefinable\@@nline{}
+\def\@@nline[#1]{\@ifnextchar[%]
+ {\@@@nline[#1]}{\@@@nline[#1][1]}}
+\@ifdefinable\@@@nline{}
+\def\@@@nline[#1][#2]#3{\count@ #3%
+ \expandafter\TeXr@loop\@gobble{}#1\@@@
+ \xdef\Num{\the\TeXr@lab}%
+ \@tempcnta#2\relax%
+ \expandafter\@temptokena\expandafter{\Num
+ \global\advance\@tempcnta\@ne}%
+ \advance\count@\m@ne
+ \loop\@temptokena\expandafter{\the\@temptokena&
+ \Num \global\advance\@tempcnta\@ne}%
+ \advance\count@\m@ne \ifnum\count@>\z@ \repeat
+ \the\@temptokena\ignorespaces}
+\newtoks\TeXr@lab
+\def\TeXr@qmark{?}
+\def\TeXr@label#1#2{%
+ \xdef\TeXr@the{\noexpand#1\@tempcnta}%
+ \TeXr@lab\expandafter{\the\TeXr@lab\TeXr@rus\TeXr@the}%
+ \advance\@tempcnta1
+ \TeXr@loop}
+\def\TeXr@rus{}
+\def\TeXr@space{\afterassignment\TeXr@sp@ce\let\@tempa= }
+\def\TeXr@sp@ce{\TeXr@lab\expandafter{\the\TeXr@lab\space}\TeXr@loop}
+\def\TeXr@group#1{\TeXr@lab\expandafter{\the\TeXr@lab{#1}}\TeXr@loop}
+\def\TeXr@other#1{\TeXr@lab\expandafter{\the\TeXr@lab#1}\TeXr@loop}
+\def\TeXr@loop{\futurelet\TeXr@temp\TeXr@loop@}
+\def\TeXr@loop@{%
+ \ifx A\TeXr@temp \def\@tempa{\TeXr@label\@Alph }\else
+ \ifx a\TeXr@temp \def\@tempa{\TeXr@label\@alph }\else
+ \ifx i\TeXr@temp \def\@tempa{\TeXr@label\@roman }\else
+ \ifx I\TeXr@temp \def\@tempa{\TeXr@label\@Roman }\else
+ \ifx 1\TeXr@temp \def\@tempa{\TeXr@label\@arabic}\else
+ \ifx \@sptoken\TeXr@temp \let\@tempa\TeXr@space \else
+ \ifx \bgroup\TeXr@temp \let\@tempa\TeXr@group \else
+ \ifx \@@@\TeXr@temp \let\@tempa\@gobble \else
+ \let\@tempa\TeXr@other
+ \TeXr@hook
+ \fi\fi\fi\fi\fi\fi\fi\fi
+ \@tempa}
+\providecommand\TeXr@hook{}
\endinput
%%
%% End of file `makecell.sty'.