Article View: comp.text.tex
Article #9615Re: Latex: description enviroment
From: Walter 'madhouse' Hafner
Date: Thu, 31 Dec 1992 14:40
Date: Thu, 31 Dec 1992 14:40
36 lines
2163 bytes
2163 bytes
In article <1992Dec30.172458.5692@eagle.lerc.nasa.gov> totran@glider.lerc.nasa.gov (le tran) writes:
\begin{descrition}
\item[ this] Description of 'this'
\item{ is] Description of 'is'
\item{ a] Description of 'a'
\item{ test] Description of 'test'
\end{descrition}
This can be done if I used the tabular enviroment, but my description
list is longer than one page, and the tabular enviroment does not allow
the page breaking in a middle of the tabular enviroment.
I tried this once, but when it worked, I found it didn't look good and I threw
it away. But out of memory ...
1) find the longest description, say "gnats and gnus" (Lamport-like :-)
2) \newlength{\mylength}
3) \settowidth{\mylength}{gnats and gnus}
4) \newsavebox{\mybox}
5) \savebox{\mybox}[\mylength][l]{Descr. test}
6) \item[\usebox{\mybox}] type whatever you want ...
Do steps 5 and 6 inside the description environment for every item you have.
Of course you can finetune theses steps, eg. defining a \newcommand for steps
5 and 6 or create a \newenvironment. As I say: I'm typing this from memory ...
I can't remember, but I think simple \makebox commands didn't work for me ...
-Walter
--
Walter Hafner, Fichtenweg 10, 8901 Dinkelscherben, Germany, Tel: 08292/1436
hafner@informatik.tu-muenchen.de (preferred address) 1| /\ /\ /\
hafner@forwiss.tu-muenchen.de (AI or Fuzzy related topics) | / X X \
hafner@dartpub.abg.sub.org (private modem line) 0|/__/_\/_\__\_
Technical Details
Message-ID:
<HAFNER.92Dec31094013@hphalle6.informatik.tu-muenchen.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!lan!hafnerReferences:
<1992Dec30.172458.5692@eagle.lerc.nasa.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!lan!hafner From: hafner@informatik.tu-muenchen.de (Walter 'madhouse' Hafner) Subject: Re: Latex: description enviroment In-Reply-To: totran@glider.lerc.nasa.gov's message of Wed, 30 Dec 1992 17:24:58 GMT References: <1992Dec30.172458.5692@eagle.lerc.nasa.gov> Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Inst. fuer Informatik, TU Muenchen, Germany Date: Thu, 31 Dec 1992 14:40:13 GMT Message-ID: <HAFNER.92Dec31094013@hphalle6.informatik.tu-muenchen.de> Lines: 36