home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / tex / 15416 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.6 KB

  1. Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin09!wswiop14!rcb5
  2. From: rcb5@wswiop14.win.tue.nl (Richard Verhoeven)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Labels in tabbing environment
  5. Keywords: labels tabbing
  6. Message-ID: <5076@svin09.info.win.tue.nl>
  7. Date: 25 Jan 93 13:57:15 GMT
  8. References: <5066@svin09.info.win.tue.nl>
  9. Sender: news@svin09.info.win.tue.nl
  10. Reply-To: rcb5@win.tue.nl
  11. Lines: 28
  12.  
  13. Hello again,
  14.  
  15. Sorry for the posting, I solved the problem already myself. The needed
  16. adjustments are:
  17.  
  18. ------------------------------------------------------------------------
  19. \newbox\@labelsave
  20. \newif\if@labelset
  21. \def\tablabel#1{\refstepcounter{equation}\label{#1}%
  22. \global\setbox\@labelsave\hbox{\rm (\ref{#1})}\global\@labelsettrue}
  23. \def\@stopline{\unskip\@stopfield\if@labelset{\global\@labelsetfalse
  24.     \@tempdima\dimen\@curtabmar
  25.     \advance\@tempdima -\wd\@labelsave
  26.     \global\setbox\@curline\hbox{\unhbox\@labelsave\hskip\@tempdima
  27.     \unhbox\@curline}
  28.     \global\@curtabmar\@firsttab}\else\fi
  29.     \if@rjfield \global\@rjfieldfalse
  30.     \@tempdima\@totalleftmargin \advance\@tempdima\linewidth
  31.     \hbox to\@tempdima{\@itemfudge\hskip\dimen\@curtabmar
  32.     \box\@curline\hfil\box\@curfiles}\else\@addfield
  33.     \hbox{\@itemfudge\hskip\dimen\@curtabmar\box\@curline}\fi}
  34. -------------------------------------------------------------------------
  35. The macro \tablabel{foo} can know be used inside the tabbing environment
  36. and the label that will be generated will be an equation label. The label will
  37. appear at the left side and it can be used for every line inside the tabbing
  38. environment. A possible extention is the option of the label (left or right).
  39.  
  40. Richard.
  41.