Article View: comp.text.tex
Article #10742Re: Labels in tabbing environment
From: Richard Verhoeven
Date: Mon, 25 Jan 1993 13:57
Date: Mon, 25 Jan 1993 13:57
28 lines
1711 bytes
1711 bytes
Hello again,
Sorry for the posting, I solved the problem already myself. The needed
adjustments are:
------------------------------------------------------------------------
\newbox\@labelsave
\newif\if@labelset
\def\tablabel#1{\refstepcounter{equation}\label{#1}%
\global\setbox\@labelsave\hbox{\rm (\ref{#1})}\global\@labelsettrue}
\def\@stopline{\unskip\@stopfield\if@labelset{\global\@labelsetfalse
\@tempdima\dimen\@curtabmar
\advance\@tempdima -\wd\@labelsave
\global\setbox\@curline\hbox{\unhbox\@labelsave\hskip\@tempdima
\unhbox\@curline}
\global\@curtabmar\@firsttab}\else\fi
\if@rjfield \global\@rjfieldfalse
\@tempdima\@totalleftmargin \advance\@tempdima\linewidth
\hbox to\@tempdima{\@itemfudge\hskip\dimen\@curtabmar
\box\@curline\hfil\box\@curfiles}\else\@addfield
\hbox{\@itemfudge\hskip\dimen\@curtabmar\box\@curline}\fi}
-------------------------------------------------------------------------
The macro \tablabel{foo} can know be used inside the tabbing environment
and the label that will be generated will be an equation label. The label will
appear at the left side and it can be used for every line inside the tabbing
environment. A possible extention is the option of the label (left or right).
Richard.
Technical Details
Message-ID:
<5076@svin09.info.win.tue.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!wswiop14!rcb5References:
<5066@svin09.info.win.tue.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!wswiop14!rcb5 From: rcb5@wswiop14.win.tue.nl (Richard Verhoeven) Newsgroups: comp.text.tex Subject: Re: Labels in tabbing environment Keywords: labels tabbing Message-ID: <5076@svin09.info.win.tue.nl> Date: 25 Jan 93 13:57:15 GMT References: <5066@svin09.info.win.tue.nl> Sender: news@svin09.info.win.tue.nl Reply-To: rcb5@win.tue.nl Lines: 28