~mdw
/
mdwtools
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8ea265
)
mdwtab: Add optional alignment argument to subsplit environment.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 15 May 2007 10:26:51 +0000
(11:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 15 May 2007 10:26:51 +0000
(11:26 +0100)
mdwtab.dtx
patch
|
blob
|
blame
|
history
diff --git
a/mdwtab.dtx
b/mdwtab.dtx
index
6022fea
..
ee11ce6
100644
(file)
--- a/
mdwtab.dtx
+++ b/
mdwtab.dtx
@@
-44,7
+44,7
@@
%<+color> [2003/08/24 1.10 Fix for people who can't spell]
% \end{meta-comment}
%
%<+color> [2003/08/24 1.10 Fix for people who can't spell]
% \end{meta-comment}
%
-% \CheckSum{33
73
}
+% \CheckSum{33
91
}
%% \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
%% \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
@@
-5577,9
+5577,13
@@
% we need to remove them by hand at the extremities of the environment.
%
% \begin{macrocode}
% we need to remove them by hand at the extremities of the environment.
%
% \begin{macrocode}
-\def\subsplit{%
+\def\subsplit{\@ifnextchar[\subsplit@i{\subsplit@i[c]}}
+\def\subsplit@i[#1]{%
+ \let\@tempa\vcenter%
+ \if#1t\let\@tempa\vtop\fi%
+ \if#1b\let\@tempa\vbox\fi%
\let\\\seq@cr%
\let\\\seq@cr%
- \
vcenter
\bgroup%
+ \
@tempa
\bgroup%
\seq@dosplit{\hfil\qquad$##$\qquad\hfil}{\hfilneg\hskip-2em}%
}
% \end{macrocode}
\seq@dosplit{\hfil\qquad$##$\qquad\hfil}{\hfilneg\hskip-2em}%
}
% \end{macrocode}