The differences between the drawing and table environments are very slight - a bit more than they use different counters and are supported in separate sequences.
, {tabular} {figure}, {table}, , . ( ) , \caption, .
:
\makeatletter
\newcounter{unisequence}
\def\ucaption{%
\ifx\@captype\@undefined
\@latex@error{\noexpand\ucaption outside float}\@ehd
\expandafter\@gobble
\else
\refstepcounter{unisequence}% <-- the only change from default \caption
\expandafter\@firstofone
\fi
{\@dblarg{\@caption\@captype}}%
}
\def\thetable{\@arabic\c@unisequence}
\def\thefigure{\@arabic\c@unisequence}
\makeatother
\ucaption \caption ( ad lib). (, ?), \the<foo> .
, : , , , (ho, hum).
( afficionados - , \advance TeX, .lof,.lot .aux TeX mouth , , , \@tempcnta \caption, \advance, , . Doh: , !?)
( , ):
: :
\makeatletter
\def\tableandfigurenum{\@tempcnta=0
\advance\@tempcnta\c@figure
\advance\@tempcnta\c@table
\@arabic\@tempcnta}
\let\thetable\tableandfigurenum
\let\thefigure\tableandfigurenum
\makeatother
... {table} {figure} . "/", .
, listoffigures/listoftables, () , , (b) , , , , (c) !a >