%% file: TXSfigs.tex - Figures and Tables - TeXsis version 2.18 %% @(#) $Id: TXSfigs.tex,v 18.0 1999/07/09 17:24:29 myers Exp $ %======================================================================* % % These macros handles figures and tables with automatic % numbering and tag referencing. Figures and tables can printed where % they are defined, or saved until the end of the document. For long % documents you can make a list of figures or list of tables, much like % a table of contents. For journal submissions you can print a separate % list of figure or table captions. % % For the macros for ruled tables see the file TXSruled.tex % % Dependencies: % TXSmacs.tex for \unexpandedwrite, \offparens, \runtime, \seeCR % TXSinit.tex for \bottominsert, \heavyinsert, \@FileInit % TXStags.tex for \LabelParse % % This file is a part of TeXsis. % (C) copyright 1991, 1995 by Eric Myers and Frank Paige. %======================================================================* \message{Figures and Tables.} \catcode`\@=11 % let's use @ as a letter here \let\NX=\noexpand\let\XA=\expandafter % handy abbreviations \offparens % make sure [ ] not active! % Counters, flags and I/O for table number, figure number, etc... \newcount\tabnum \tabnum=\z@ % table number \newcount\fignum \fignum=\z@ % figure number \newif\ifRomanTables \RomanTablesfalse % Roman table numbers? \newif\ifCaptionList \CaptionListfalse % save list of captions? \newif\ifFigsLast \FigsLastfalse % save figures until end? \newif\ifTabsLast \TabsLastfalse % save tables until end? \def\FiguresLast{\FigsLasttrue}\def\FiguresNow{\FigsLastfalse} \def\TablesLast{\TabsLasttrue}\def\TablesNow{\TabsLastfalse} % Output streams for saving figures, tables, figure lists, table lists, % or caption lists \newwrite\fgout \newwrite\tbout \newwrite\figlist \newwrite\tablelist \newwrite\caplist %======================================================================* % FIGURES. % The following macros insert figures and define tags for them for % future references: % \figure{