| 1 |
% Public domain. |
| 2 |
% |
| 3 |
% The ctabbing environment is a centered tabbing environment suitable for |
| 4 |
% displaying program fragments. The vertical spacing is exactly like that |
| 5 |
% for normal text in a center environment. This is achieved by setting |
| 6 |
% \@minipagetrue to fool \tabbing into thinking that it starts a minipage |
| 7 |
% and should therefore avoid all vertical space at the top. (Note that any |
| 8 |
% space at all would defeat the \vtop command in \ctabbing.) The |
| 9 |
% \vskip-\lastskip and \prevdepth saving commands avoid extra space after |
| 10 |
% \endtabbing |
| 11 |
|
| 12 |
\newdimen\ct@pd |
| 13 |
|
| 14 |
\def\ctabbing{\center\leavevmode\vtop\bgroup\@minipagetrue\begingroup\tabbing} |
| 15 |
|
| 16 |
\def\endctabbing{\endtabbing\endgroup\vskip-\lastskip |
| 17 |
\global\ct@pd\prevdepth \egroup |
| 18 |
\endcenter \global\prevdepth\ct@pd} |