Boxtext v textu (\lower needed)
Martin Potuznik
mpot5421 at atrey.karlin.mff.cuni.cz
Thu Dec 4 16:39:36 CET 1997
Resil jsem problem se sazbou nektery slov v textu zaramovane:
Nemate nekdo nejaky napad, jak by se dalo (elegantneji) vyresit
\stanovhloubku ? (sve 'nepekne' reseni prikladam)
Nejlepe tak, aby se toto makro vubec nemuselo pouzivat, ale slo napr.
zahrnout primo do \boxtext ...
Dekuji, Martin Potuznik
---------------------------------------------------------------------
\newdimen\hloubka
% *** \stanovhloubku assignes \hloubka (depth). It should be used each
% time before using \boxtext for certain font for the first time.
\def\stanovhloubku{%
\hbox{\strut}% % this macro can be used ONLY in
\hloubka=\prevdepth % VERTICAL mode (i.e. e.g. before
} % paragraph starts...
% *** \boxtext puts text into box (opticaly), using \hloubka
% assigned by \stanovhloubku
\def\boxtext#1{% % \don't forget to use \stanovhloubku
\lower\hloubka % else \hloubka = 0 !
\vbox{%
\hrule
\hbox{\strut\vrule{}\hskip2pt#1\hskip1pt\vrule}%
\hrule
}%
}
\endinput
----------------------------------------------------------------------------
----------------------------------------
Martin Potuznik MP Bidlo Bi.-
e-mail: martin.potuznik at st.mff.cuni.cz
http://www.ms.mff.cuni.cz/~mpot5421
mail: U 3.baterie 1, CZ-162 00 Praha 6
phone: +420/2/24314450
----------------------------------------
More information about the csTeX
mailing list