🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6079

Re: LaTeX list environment

#6079
From: George Hartzell
Date: Thu, 30 Mar 1989 15:21
45 lines
2167 bytes
In article <986@cs-spool.calgary.UUCP>, williamssi@.UCalgary writes:
>Hi, I would have though that someone has already need and implement a
>LaTeX list environment that does the following:
>
>labelone:    These items are similar to LaTeX's "description"
>             environment, however they indent to the same spot.
>
>longerlabel: Part of the same demonstration.
>
>
% George Hartzell Thu Jun 23 16:02:25 MDT 1988
%
%  this implements a list that looks like:
% 
%      label     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%                xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%      longlabel xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%                xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
%      shrt      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%                xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% 
% 
% use as
% \begin{labeledlist}
%    \item...
% \end{labeledlist}
% pass in the longest label as the argument.
%
\def\mydescriptionlabel#1{\bf #1 \hfil}
\newenvironment{labeledlist}[1]{% the begin stuff
     \begin{list}{}{
     \settowidth{\labelwidth}{#1}
     \addtolength{\labelwidth}{1em}
     \setlength{\labelsep}{1em}
     % set up the left and right margins
     \setlength{\leftmargin}{.25in}
     \setlength{\rightmargin}{\leftmargin}
     \addtolength{\leftmargin}{\labelwidth}
     \addtolength{\leftmargin}{\labelsep}
     \let\makelabel\mydescriptionlabel}}% the end stuff
     {\end{list}}
-- 
George Hartzell			                 (303) 492-4535
MCD Biology, University of Colorado-Boulder, Boulder, CO 80309
hartzell@Boulder.Colorado.EDU  ..!{ncar,nbires}!boulder!hartzell
Technical Details
Message-ID: <7782@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!boulder!hartzell@tigger
References: <986@cs-spool.calgary.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!boulder!hartzell@tigger
From: hartzell@tigger (George Hartzell)
Newsgroups: comp.text
Subject: Re: LaTeX list environment
Message-ID: <7782@boulder.Colorado.EDU>
Date: 30 Mar 89 15:21:10 GMT
References: <986@cs-spool.calgary.UUCP>
Sender: news@boulder.Colorado.EDU
Reply-To: hartzell@tigger (George Hartzell)
Organization: University of Colorado, Boulder
Lines: 45
In-reply-to: williamssi@.UCalgary.CA