Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Line Spacing in Description Environment

859 views
Skip to first unread message

Eberhard Lisse

unread,
Sep 1, 2007, 2:44:43 AM9/1/07
to
I want to create (a two column document) (an ICD Cheat Sheet, Code and
Text), looking something like this:

*O03.* Spontaneous Abortion
*O04.* Medical Abortion
*O05.* Other Abortion
*O06.* Unspecified Abortion
.0 Incomplete, complicated by infection
.1 Incomplete, complicated by bleeding
.2 Incomplete, complicated by Embolism
*O08.* Complications following abortion, ectopic or mola
.0 Infection, .1 Bleeding, .2 Embolism, .3 Shock,
.4 Renal Failure, .5 Metabolic, .6 Injury of pelvic organs,
.7 Venous, .8 Other, .9 Unspecified


I am using the Description Environment, because it does make the Codes
in bold and indents nicely (Description in Description).

The Data Entry works very well with LyX, with LaTeX directly it is a bit
cumbersome.

Unfortunately the Line spacing is so big that I don't get enough lines
on the page, I only want one A4 page front and back, to be laminated.

This is not a LyX issue, I have of course looked immediately into the
LaTeX code.

Attempts such as

\usepackage{setspace}
\setstretch(0.25)

and

\spacing{0.25}

don't work, I would assume this is an issue of the Description Environment.


Here is a minimal example (of the above ICD Codes)

\documentclass[twocolumn]{article}
\usepackage{geometry}
\geometry{a4paper,tmargin=1cm,bmargin=1cm,lmargin=1cm,rmargin=1cm,headheight=0cm,headsep=0cm,footskip=0cm}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\begin{document}
\begin{description}
\item [O03.] Spontaneous Abortion
\item [O04.] Medical Abortion
\item [O05.] Other Abortion
\item [O06.] Unspecified Abortion
\begin{description}
\item [.0] Incomplete, complicated by infection
\item [.1] Incomplete, complicated by bleeding
\item [.2] Incomplete, complicated by embolism
\end{description}
\item [O08.] Complications following abortion, ectopic or mola
\begin{description}
\item[.0] Infection, \textbf{.1}~Bleeding,
\textbf{.2}~Embolism, \textbf{.3}~Shock,
\textbf{.4}~Renal Failure, \textbf{.5}~Metabolic,
\textbf{.6}~Injury of pelvic organs,
\textbf{.7}~Venous, \textbf{.8}~Other, \textbf{.9}~Unspecified
\end{description}
\end{description}
\end{document}

Does anyone have a Cunning Plan (tm)?

It only has to work at the final production run, not necessarily for
data entry.

greetings, el
--
If you want to email me, replace nospam with el

--
If you want to email me, replace nospam with el

Lars Madsen

unread,
Sep 1, 2007, 4:42:44 AM9/1/07
to

I recommend using enumitem to control the appearance of the lists

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

Eberhard Lisse

unread,
Sep 1, 2007, 6:24:41 AM9/1/07
to
Thanks,

I put this into the LyX Praeamble

\usepackage{enumitem}
\setdescription{topsep=0pt, partopsep=0pt, parsep=0pt, itemsep=0pt}

and it looks already quite reasonable,

el

on 9/1/07 9:42 AM Lars Madsen said the following:
> Eberhard Lisse wrote:
[...]

>> I would assume this is an issue of the Description Environment.

[...]

> I recommend using enumitem to control the appearance of the lists

--

Mihai Cazac

unread,
Sep 2, 2007, 5:10:17 AM9/2/07
to

\newenvironment{descriere}%
{\begin{description}%
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0pt}}%
{\end{description}}

You can use the same ideea for the "itemize" and "enumerate"
environments

You can take a look at the "enumerate" package, too; it
gives the enumerate environment an optional argument
which determines the style in which the counter is printed.


For ultimate flexibility (including manipulation of \topsep), the
enumitem package, as suggested by Lars Madsen.

Eberhard Lisse

unread,
Sep 2, 2007, 10:08:49 AM9/2/07
to
Thanks,

the descriere doesn't work for an indented description (in a description).

enumitem does more or less what I want, with hardly any LyX workaround
required.

greetings, el

on 9/2/07 11:10 AM Mihai Cazac said the following:

--

Mihai Cazac

unread,
Sep 3, 2007, 8:36:34 AM9/3/07
to
On Sep 2, 5:08 pm, Eberhard Lisse <nos...@lisse.NA> wrote:
> Thanks,
>
> the descriere doesn't work for an indented description (in a description).
>

Sorry, I understand that you are satisfied with the
enumitem package (as expected), but I don't understand
what do you mean by


"the descriere doesn't work for an indented description (in a
description). "

I have tried the following usage and for me it works fine:

\begin{descriere}
\item [one] Description item one
\item [two] This is item two
\begin{descriere}
\item [Two.1] text text text text text text text text text
\item [Two.2] Second description text
\end{descriere}
\end{descriere}

Then I've tried the following, ant this works too:

\begin{description}
\item [one] Description item one
\item [two] This is item two
\begin{descriere}
\item [Two.1] text text text text text text text text text
\item [Two.2] Second descrition text
\end{descriere}
\end{description}

I suppose that I do not understand something, so please be so kind
and be more specific.

0 new messages