At the moment I'm trying to put an {itemize}-environment into a text without a vertical space separating it from the text-paragraph above.
The result should look like:
_______
preceeding text in the first paragraph preceeding text in the first paragraph
- item1
- item2
following text in the second paragraph. following text in the second paragraph.
_______
But I always get something like:
_______
preceeding text in the first paragraph preceeding text in the first paragraph
{space occuring here is even
larger than \parskip}
- item1
- item2
following text in the second paragraph. following text in the second paragraph.
_______
The same problem also occours with {enumerate}-environment.
I tried modifying some list-parameters already (\parsep \parskip \partopsep \topsep etc.) but that didn't seem to affect the look of the {itemize}-environment.
I also tried to put the whole thing into a {minipage}[t]{\textwidth}-environment. That did work but unfortunately there are so many items in the list that they won't fit on one page and will be lost when putting them into a {minipage}.
Thanks for any ideas and hints.
Ulrich
> At the moment I'm trying to put an {itemize}-environment into a text
> without a vertical space separating it from the text-paragraph above.
Please hit <return> occasionally in the middle of long lines when
your message also contains text with fixed line breaks.
This is the answer I've given before:
This is much harder than it should be.
Some list parameters are set once and not touched thereafter;
you could just set them yourself.
Others are set in six different macros called \@listi, \@listii...\@listvi.
which are called for the appropriate level of nesting. \@listi is aliased
with \@listI which should be the same (\let\@listI\@listi).
Finally, \@listi is redefined by some of the size changing commands like
\small with explicit dimensions. \normalsize doesn't use an explicit def,
but \let\@listi\@listI, which is where \@listI comes in. (These definitions
are in sizeXX.clo.)
So to make a global change you must change all the \@list_ commands, plus
redefine \small, and maybe \footnotesize, and either \normalsize or \@listI.
A common hack to bypass all this redefinition is to reset \itemsep
at the beginning of a list. The normal inter-item separation is
\itemsep + \parsep, but once the list has begun, \parsep has been noted
and put in "\parskip". So there are two variations on the hack to
remove spacing:
\begin{itemize} \begin{itemize}
\setlength{\itemsep}{-\parsep} \setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
Note: not "sep" -----------^^^^
Donald Arseneau as...@reg.triumf.ca
Have you checked the suggestions from the FAQs, e.g.,
the compactitem environment (paralist package):
8.5.23 Wie kann ich das Aussehen von Listenumgebungen, speziell deren
vertikale Abstände, auf einfache Weise verändern?
<URL:http://www.dante.de/faq/de-tex-faq/>
Olaf
--
Before posting to comp.text.tex, please consult:
- LaTeX Introduction <URL:http://www.ctan.org/tex-archive/info/lshort/english/>
- Symbol List <URL:http://www.ctan.org/tex-archive/info/symbols/comprehensive/>
- UK TeX FAQ <URL:http://www.tex.ac.uk/faq>
> "Ulrich Diez" <ulric...@student.uni-tuebingen.de> writes:
>
>> At the moment I'm trying to put an {itemize}-environment into a text
>> without a vertical space separating it from the text-paragraph above.
>
> This is the answer I've given before:
>
> This is much harder than it should be.
> A common hack to bypass all this redefinition is to reset \itemsep
> at the beginning of a list. The normal inter-item separation is
> \itemsep + \parsep, but once the list has begun, \parsep has been noted
> and put in "\parskip". So there are two variations on the hack to
> remove spacing:
>
> \begin{itemize} \begin{itemize}
> \setlength{\itemsep}{-\parsep} \setlength{\itemsep}{0pt}
> \setlength{\parskip}{0pt}
> Note: not "sep" -----------^^^^
>
He asked about the length before the first item. Changing \itemsep and
\parskip will only affect the space between the items. The space before
the first item is \topsep + \parsep + [\partopsep]. \topsep and \parsep
are stored in the \@listi-environment. At \begin{itemize} \topsep +
\parsep + [\partopsep] is calculated and stored in \@topsep and at the
first \item \@topsep is inserted. So to get rid of the space you could
use:
\documentclass{report}
\begin{document}
some text
\begin{itemize}%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}% space between items
\makeatletter\@topsep0pt\makeatother %space before itemize
\item one
\item two
\end{itemize}
\end{document}
And I agree with you that to reset spaces in list is much to hard.
Ulrike Fischer
> At the moment I'm trying to put an {itemize}-environment into a text
> without a vertical space separating it from the text-paragraph
> above. The result should look like:
_______
> preceeding text in the first paragraph preceeding text in the first
> paragraph
> - item1
> - item2
You can compact the list up somewhat using the \unskip command, for
example:
\documentclass[a4paper]{article}
\begin{document}
The quick brown fox.
\begin{itemize}
\item \unskip item1
\item \unskip item2
\item \unskip item3
\end{itemize}
\end{document}
> Donald Arseneau <as...@triumf.ca> schrieb:
>
> > "Ulrich Diez" <ulric...@student.uni-tuebingen.de> writes:
> >
> >> At the moment I'm trying to put an {itemize}-environment into a text
> >> without a vertical space separating it from the text-paragraph above.
> >
> > This is the answer I've given before:
> He asked about the length before the first item. Changing \itemsep and
> \parskip will only affect the space between the items.
Yeah, I was lazy in not editing down the old answer. The main
point (snipped) was that changing \topsep requires redefining
\small et al.
Now I will give a customized answer to the question:
So you want help to reduce the vertical space surrounding a
list while leaving the large spaces between items?
NO! I refuse to participate in such criminal activity!
:-D
> Now I will give a customized answer to the question:
>
> So you want help to reduce the vertical space surrounding a
> list while leaving the large spaces between items?
>
> NO! I refuse to participate in such criminal activity!
You are right (and in my example I changed the spaces between the items
also).
Ulrike
The memoir class provides a \tightlist declaration which removes extra
vertical spaces before, after, and in itemize and enumerate environments.
Peter W.
At the moment I'm trying to put an {itemize}-environment into a text without a vertical space separating it from the text-paragraph above.
The result should look like:
_______
preceeding text in the first paragraph preceeding text in the first paragraph
- item1
- item2
following text in the second paragraph. following text in the second paragraph.
_______
But I always get something like:
_______
preceeding text in the first paragraph preceeding text in the first paragraph
{space occuring here is even
larger than \parskip}
- item1
- item2
following text in the second paragraph. following text in the second paragraph.
_______
The same problem also occours with {enumerate}-environment.
I tried modifying some list-parameters already (\parsep \parskip \partopsep \topsep etc.) but that didn't seem to affect the look of the {itemize}-environment.
I also tried to put the whole thing into a {minipage}[t]{\textwidth}-environment. That did work but unfortunately there are so many items in the list that they won't fit on one page and will be lost when putting them into a {minipage}.
Thanks for any ideas and hints.
Ulrich
> At the moment I'm trying to put an {itemize}-environment into a text
> without a vertical space separating it from the text-paragraph above.
See the answers posted yesterday and the day before.
You can even use google to search for the thread.
Donald Arseneau as...@triumf.ca
Thank you all very much for your comments and hints !
In particular the answers and comments of Mr. Arsenau and Ulrike Fischer were a great help as no more additional packages are needed when following their instructions.
Yet the comment of Mr. Arsenau (> > So you want help to reduce the vertical space surrounding a list while leaving the large spaces between items? NO! I refuse to participate in such criminal activity ! <<)
causes me to give an explanation for my unorthodox intentions/enquiries:
I already figured out how to reduce space between items, so I decided only to ask for the spacing before the first item.
I do agree to the term "criminal activity" anyway. For my own needs and purposes, usually LATEX 's default settings are fine (therefore I didn't go all too far into the basics of TEX yet) but unfortunately not for the "teachers"/tutors I'm somehow depending on. Some of them consider matters of layout and personal fancies more important than content and tenor of a scientific elaboration.
Actually they wanted to make me using some Microsoft-Apps(<-Sorry for writing down this ugly expression, no offense but linguistic unskillfulness). Although I'm still a silly little opportunistic TEX-novice, I refused as for some reason I consider such activity much more criminal.
Greetings
Ulrich
> "teachers"/tutors I'm somehow depending on. Some of them consider
> matters of layout and personal fancies more important than content
> and tenor of a scientific elaboration. Actually they wanted to make
> me using some Microsoft-Apps(<-Sorry for writing down this ugly
Yes, there are lots of people who have been brainwashed to think that
whatever crap MS Word spits out is "right".
It is very unfortunate that LaTeX's standard document classes have
so many bad formatting choices, and quite a few things that are hard
to change. That way you can't get on your highh horse and condemn the
Word users. LaTeX's default list spacing is 1) not usual, so a bad
default; 2) fine for presentation slides and for long (multiline)
items in general, but looks awful for lists of short items in a
real document.
Donald Arseneau as...@triumf.ca