🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #4950

LaTeX tabbing

#4950
From: Mike DeCorte
Date: Fri, 29 Jul 1988 05:17
52 lines
1413 bytes
Silly me,  I thought I could make an environment so that
\begin{present}
a\foo b\foo c\foo d\foo e\foo f\foo
\end{present}

would come out like

1 a	2 b
1 c	2 d
1 e	2 f

this what I came up with

\def\present{\begingroup
 \def\one{1 \>} % the 1 and 2 here are really only for demonstration
 \def\two{2 \\}
 \def\foo{%
  \one
  \let\temp\one\let\one\two\let\two\temp % just swap one and two
  }
 \tabbing
 \hspace{0.4\hsize}\=\hspace{0.4\hsize}\kill
}

\def\endpresent{\endtabbing\endgroup}

Well, it doesn't work.  I sure don't know why.  tracingmacros
doesn't seem to tell me anything.  What I get is

1 a	2 b
1 c	
1 d
1 e	
1 f

Now if I remove the \\ and \> from \one and \two I get as expected
and wanted

1 a 2 b 1 c 2 d 1 e 2 f

For some reason the \\ makes all of my \let's break.  Any
help would be appreciated. 

thank you



--

Michael DeCorte // (315)268-2292 // P.O. Box 652, Potsdam, NY 13676
Internet mrd@sun.soe.clarkson.edu  // Bitnet   mrd@clutx.bitnet        
Technical Details
Message-ID: <MRD.88Jul29011700@sun.soe.clarkson.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!oddjob!ncar!ames!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!mrd

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!oddjob!ncar!ames!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!mrd
From: mrd@sun.soe.clarkson.edu (Mike DeCorte)
Newsgroups: comp.text
Subject: LaTeX tabbing
Message-ID: <MRD.88Jul29011700@sun.soe.clarkson.edu>
Date: 29 Jul 88 05:17:02 GMT
Sender: mrd@sun.soe.clarkson.edu
Distribution: comp
Organization: Clarkson University
Lines: 52