summaryrefslogtreecommitdiff
path: root/info/examples/ltt/nofloat.sty
blob: 12efd1331231a2e3ea39e7f6771b6dd09426a585 (plain)
1
2
3
4
5
6
7
8
9
10
11
% NOFLOAT.STY

% \setfloattype{table|figure|...}
\newcommand{\setfloattype}[1]{\def\@captype{#1}}

%  non-floating table-, figure-, ... environment
%  may contain \caption
\newenvironment{nofloat}[1]
  {\setfloattype{#1}
   \begin{trivlist}\item[]}
  {\end{trivlist}}