Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem with list spacing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Goh, Kheng-Swee  
View profile  
 More options Oct 13 2005, 9:05 am
Newsgroups: comp.text.tex
From: "Goh, Kheng-Swee" <khengs...@gmail.com>
Date: 13 Oct 2005 06:05:59 -0700
Local: Thurs, Oct 13 2005 9:05 am
Subject: Problem with list spacing
Hi all,

     I'm formatting a CV using the ancient res package. I've run into a
problem regarding list spacing. There's too much space inserted when I
start a list without any text before it.

\employer{\textbf{Sunway Lagoon} {\small (Theme park)}}
\title{\emph{Lifeguard}}
\location{\small Kuala Lumpur, Malaysia}
\dates{\textbf{\small July 2004 -- August 2004}}
\begin{position}
\begin{itemize}  \itemsep -2pt
    \item responsible for visitors' safety on water slide and
theme park grounds
    \item administering basic first aid
\end{itemize}
\end{position}

gives this weird spacing, have a look:
<http://rubeus.org/tex/listitem.png>

If I have some text before the list like:

\employer{\textbf{Sunway Lagoon} {\small (Theme park)}}
\title{\emph{Lifeguard}}
\location{\small Kuala Lumpur, Malaysia}
\dates{\textbf{\small July 2004 -- August 2004}}
\begin{position}
EXTRA TEXT HEEBIE JIEBIES HOME GOOGLE and MORE
\begin{itemize}  \itemsep -2pt
    \item responsible for visitors' safety on water slide and
theme park grounds
    \item administering basic first aid
\end{itemize}
\end{position}

The spacing will be fine. Desperately need help to fix this ASAP. I've
gone through all my (freely available from TUG.org) printed LaTeX
tutorials but there's nothing said about spacings regarding lists and
the paragraph text like this. Many, many thanks in advance.

--Kheng-Swee Goh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Goh, Kheng-Swee  
View profile  
 More options Oct 13 2005, 6:06 pm
Newsgroups: comp.text.tex
From: "Goh, Kheng-Swee" <khengs...@gmail.com>
Date: 13 Oct 2005 15:06:05 -0700
Local: Thurs, Oct 13 2005 6:06 pm
Subject: Re: Problem with list spacing
I manage to find out about \topsep but even after using it in my code,
it doesn't seem to make a difference. I tried negative numbers (\topsep
-2cm) too. Anybody nice enough to point out and correct my mistake?
Thanks.

\employer{\textbf{Sunway Lagoon} {\small (Theme park)}}
\title{\emph{Lifeguard}}
\location{\small Kuala Lumpur, Malaysia}
\dates{\textbf{\small July 2004 -- August 2004}}
\begin{position}
\begin{itemize}  \topsep 1pt \itemsep -2pt
    \item responsible for visitors' safety on water slide and
theme park grounds
    \item administering basic first aid
\end{itemize}
\end{position}


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Goh, Kheng-Swee  
View profile  
 More options Oct 13 2005, 6:15 pm
Newsgroups: comp.text.tex
From: "Goh, Kheng-Swee" <khengs...@gmail.com>
Date: 13 Oct 2005 15:15:16 -0700
Local: Thurs, Oct 13 2005 6:15 pm
Subject: Re: Problem with list spacing
Problem fixed via trial and error when I inserted \null\vspace{-1em}
before the list. But I'm still curious why \topsep didn't do the work.

\employer{\textbf{Sunway Lagoon} {\small (Theme park)}}
\title{\emph{Lifeguard}}
\location{\small Kuala Lumpur, Malaysia}
\dates{\textbf{\small July 2004 -- August 2004}}
\begin{position}
\null\vspace{-1em}
\begin{itemize} \itemsep -2pt
    \item responsible for visitors' safety on water slide and
theme park grounds
    \item administering basic first aid
\end{itemize}
\end{position}


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oleg Paraschenko  
View profile  
 More options Oct 14 2005, 8:35 am
Newsgroups: comp.text.tex
From: "Oleg Paraschenko" <ole...@gmail.com>
Date: 14 Oct 2005 05:35:30 -0700
Local: Fri, Oct 14 2005 8:35 am
Subject: Re: Problem with list spacing
Hello Goh,

probably the "res" package uses some tabular environment. It seems that
unneeded vertical space before and after a list in a cell is a known
problem without a good solution. In your case, instead of hardcoding
sizes, I'd try something like this (probably, with \null):

\vspace{-\baselineskip}\vspace{-\parskip}\vspace{-\parsep}

I don't know why \topset doesn't work. I suspect that that table cell
starts in the horizontal mode, and when a list adds a break penalty,
TeX creates an empty paragraph due to switching from the horizontal
mode to the vertical mode.

By the way, for my longtables I use the following commands:

\newcommand{\celltolist}{\vspace{-\baselineskip}\vspace{-\parskip}}
\newcommand{\listtocell}{\vspace{-\baselineskip}\vspace{-\parskip}\vspace{- \parskip}}

Probably it's only a coincide that these commands work for me.

--
Oleg Paraschenko  olpa@ http://uucode.com/
http://uucode.com/blog/  Generative Programming, XML, TeX, Scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulrike Fischer  
View profile  
 More options Oct 14 2005, 9:04 am
Newsgroups: comp.text.tex
From: Ulrike Fischer <n...@nililand.de>
Date: Fri, 14 Oct 2005 13:04:56 +0000 (UTC)
Local: Fri, Oct 14 2005 9:04 am
Subject: Re: Problem with list spacing
"Oleg Paraschenko" <ole...@gmail.com>  schrieb:

> I don't know why \topset doesn't work. I suspect that that table cell
> starts in the horizontal mode, and when a list adds a break penalty,
> TeX creates an empty paragraph due to switching from the horizontal
> mode to the vertical mode.

No the problem is that the description of the list parameters is
misleading.  If you define a new list of your own, you can set topsep
etc, but the standard lists have predefined values and copy this values
at the start to internal registers and then use this internal
registers.

So if you want to change topsep e.g. in itemize you should set
\@topsep after \begin{itemize}.

--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »