diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/metapost/doc/russian/mpman-ru/ctabbing.sty |
Initial commit
Diffstat (limited to 'info/metapost/doc/russian/mpman-ru/ctabbing.sty')
-rw-r--r-- | info/metapost/doc/russian/mpman-ru/ctabbing.sty | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/info/metapost/doc/russian/mpman-ru/ctabbing.sty b/info/metapost/doc/russian/mpman-ru/ctabbing.sty new file mode 100644 index 0000000000..b61ec6ed78 --- /dev/null +++ b/info/metapost/doc/russian/mpman-ru/ctabbing.sty @@ -0,0 +1,18 @@ +% Public domain. +% +% The ctabbing environment is a centered tabbing environment suitable for +% displaying program fragments. The vertical spacing is exactly like that +% for normal text in a center environment. This is achieved by setting +% \@minipagetrue to fool \tabbing into thinking that it starts a minipage +% and should therefore avoid all vertical space at the top. (Note that any +% space at all would defeat the \vtop command in \ctabbing.) The +% \vskip-\lastskip and \prevdepth saving commands avoid extra space after +% \endtabbing + +\newdimen\ct@pd + +\def\ctabbing{\center\leavevmode\vtop\bgroup\@minipagetrue\begingroup\tabbing} + +\def\endctabbing{\endtabbing\endgroup\vskip-\lastskip + \global\ct@pd\prevdepth \egroup + \endcenter \global\prevdepth\ct@pd} |