mdwtab: Fix colours and \\ behaviour with longtable.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 9 Apr 2007 12:46:57 +0000 (13:46 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 9 Apr 2007 12:46:57 +0000 (13:46 +0100)
The \@mkpream hack failed to install the hooks used by the colour
extension, so coloured table cells didn't work properly in longtables.
Also, it failed to insert \tab@setcr in \tab@midtext, so \\ didn't work
properly in >{\raggedright}p{...} cells.

mdwtab.dtx

index a77c8f5..3e52084 100644 (file)
@@ -44,7 +44,7 @@
 %<+color>                [2003/08/24 1.10 Fix for people who can't spell]
 % \end{meta-comment}
 %
-% \CheckSum{3373}
+% \CheckSum{3386}
 %% \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
   \tab@initread%
   \def\tab@multicol{\@arstrut}%
   \tab@preamble{\tab@multicol}%
-  \def\tab@midtext{\ignorespaces\@sharp\@sharp\@maybe@unskip}%
+  \let\tab@lefttext\tab@lefttexthook%
+  \let\tab@righttext\tab@righttexthook%
+  \let\tab@leftruletext\tab@leftruletexthook%
+  \let\tab@rightruletext\tab@rightruletexthook%
+  \def\tab@midtext{\tab@setcr\ignorespaces\@sharp\@sharp\@maybe@unskip}%
   \tab@readpreamble{#1}%
   \gdef\@preamble{\the\tab@preamble}%
   \let\tab@bgroup\begingroup%