summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/collcell
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-05 00:23:37 +0000
committerKarl Berry <karl@freefriends.org>2011-02-05 00:23:37 +0000
commit17d8cf93442b753a28ae1b52adc9f0471fdbcc8f (patch)
treeff974918629e71d1928cfc4c194bf3a384c02fbb /Master/texmf-dist/doc/latex/collcell
parent59ff7c39f8c60b525dc83055c9f100e5452297f6 (diff)
new latex package collcell (4feb11)
git-svn-id: svn://tug.org/texlive/trunk@21300 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/collcell')
-rw-r--r--Master/texmf-dist/doc/latex/collcell/README45
-rw-r--r--Master/texmf-dist/doc/latex/collcell/collcell.pdfbin0 -> 129764 bytes
2 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/collcell/README b/Master/texmf-dist/doc/latex/collcell/README
new file mode 100644
index 00000000000..01b7b6235f5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/collcell/README
@@ -0,0 +1,45 @@
+The collcell Package
+--------------------
+Copyright (C) 2009-2011 by Martin Scharrer <martin@scharrer-online.de>
+http://www.ctan.org/pkg/collcell/
+Version v0.1 -- 2011/02/04
+
+This small package provides macros which collect the cell content of
+a tabular and provide it to a macro as argument. It was inspired by the
+\collect@body macro defined by the amsmath or the environ package,
+which can be used to collect the body of an environment. Special care
+is taken to remove all aligning macros inserted by tabular from the cell
+content. The macros also work in the last column of a table. They do not
+support verbatim material inside the cells.
+
+
+Usage
+
+This package provides the macros \collectcell and \endcollectcell which are
+supposed to be used with the >{ } and <{ } tabular column declarations of the
+array package. This can be done either in the argument of tabular or using
+\newcolumntype.
+
+The following code defines a 'E' column which passes the contents of its cell to
+\usermacro as an argument. The macro can the process the content as usual.
+
+% Preamble:
+\usepackage{array}
+\usepackage{collcell}
+% Preamble or document:
+\newcolumntype{E}{>{\collectmacro\usermacro}c<{\endcollectmacro}}
+% Document:
+\begin{tabular}{lE}
+A & Example \\ % Same as \usermacro{Example}
+B & Text \\ % Same as \usermacro{Text}
+\end{tabular}
+
+For example \usermacro could be \fbox and wrap the cell content in a frame box.
+More complicated macros are also supported as long they take one argument. This
+package was originally programmed to be used with the \tikztiming macro of the
+tikz-timing package. This macro takes some complex user input and draws a timing
+diagram from it
+
+Note that if such a cell contains a tabular environment by itself, the
+environment must be wrapped in braces '{ }' to ensure proper operation.
+
diff --git a/Master/texmf-dist/doc/latex/collcell/collcell.pdf b/Master/texmf-dist/doc/latex/collcell/collcell.pdf
new file mode 100644
index 00000000000..9c03608085e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/collcell/collcell.pdf
Binary files differ