Path: 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 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