summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tools/multicol.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-03 22:03:35 +0000
committerKarl Berry <karl@freefriends.org>2011-08-03 22:03:35 +0000
commitbb6fd84d0f762e045075c0e6570c68b283436888 (patch)
tree815f02eedb8c70d8f3aa0c16af9dfa3707864fe1 /Master/texmf-dist/tex/latex/tools/multicol.sty
parent366ed41f67c1c443ea09a9c442655ab1a40a270b (diff)
tools (latex-tds 2jul11)
git-svn-id: svn://tug.org/texlive/trunk@23393 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tools/multicol.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tools/multicol.sty62
1 files changed, 59 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tools/multicol.sty b/Master/texmf-dist/tex/latex/tools/multicol.sty
index a52e88d679b..50284dc079f 100644
--- a/Master/texmf-dist/tex/latex/tools/multicol.sty
+++ b/Master/texmf-dist/tex/latex/tools/multicol.sty
@@ -32,7 +32,7 @@
%% given in the file `manifest.txt'.
%%
%% Package `multicol' to use with LaTeX2e
-%% Copyright 1989-2007 Frank Mittelbach
+%% Copyright 1989-2011 Frank Mittelbach
%%
%% In addition to the terms of LPPL any distributed version
%% (unchanged or modified) of multicol has to keep the statement
@@ -97,8 +97,8 @@
%%
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\ProvidesPackage{multicol}
- [2008/12/05 v1.6h multicolumn formatting (FMi)]
-%% \CheckSum{1560}
+ [2011/06/27 v1.7a multicolumn formatting (FMi)]
+%% \CheckSum{1669}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -386,6 +386,7 @@
\ifvmode\else\errmessage{Multicol Error}\fi
\nointerlineskip
\setbox\z@\hbox{p}\global\dimen\tw@\dp\z@
+ \maybe@reverse@columns
\moveright\multicol@leftmargin
\hbox to\full@width{%
\process@cols\mult@gfirstbox{%
@@ -847,6 +848,61 @@
\fi
\fi}
\newbox\colbreak@box
+\newcommand\RLmulticolcolumns
+ {\let\maybe@reverse@columns
+ \reverse@column@boxes}
+\newcommand\LRmulticolcolumns
+ {\let\maybe@reverse@columns\relax}
+\LRmulticolcolumns
+
+\newcount\multicol@sort@counter
+
+\def\reverse@column@boxes {%
+ \ifnum\c@tracingmulticols>\thr@@
+ \typeout{reversing columns ...}
+ \fi
+ \multicol@sort@counter\doublecol@number
+ \advance\multicol@sort@counter\m@ne
+ \process@cols\mult@gfirstbox{%
+ \setbox\multicol@sort@counter
+ \box\count@
+ \ifnum\c@tracingmulticols>\thr@@
+ \typeout{Setting
+ \the\multicol@sort@counter\space
+ <- \the\count@}%
+ \fi
+ \advance \multicol@sort@counter -\tw@
+ }%
+ \ifnum\c@tracingmulticols>\thr@@
+ \typeout{Setting last:
+ \the\mult@grightbox\space
+ <- \the\mult@rightbox}%
+ \fi
+ \setbox \mult@grightbox \box\mult@rightbox
+ \ifnum\c@tracingmulticols>\thr@@
+ \typeout{shifting ...}
+ \fi
+ \multicol@sort@counter\mult@gfirstbox
+ \advance\multicol@sort@counter \m@ne
+ \process@cols\mult@gfirstbox{%
+ \global\setbox\count@
+ \box\multicol@sort@counter
+ \ifnum\c@tracingmulticols>\thr@@
+ \typeout{Setting \the\count@\space
+ <- \the\multicol@sort@counter}%
+ \fi
+ \advance \multicol@sort@counter \tw@
+ }%
+ \multicol@sort@counter\doublecol@number
+ \advance\multicol@sort@counter\m@ne
+ \ifnum\c@tracingmulticols>\thr@@
+ \typeout{Setting last:
+ \the\mult@rightbox\space
+ <- \the\multicol@sort@counter}%
+ \fi
+ \global\setbox \mult@rightbox
+ \box\multicol@sort@counter
+}
\endinput
%%
%% End of file `multicol.sty'.