GeneralSpace between rows in a shortenumerate

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Space between rows in a shortenumerate

Post by dmt »

I am using the shortlist package and the shortenumerate environment. But the rows in the shortenumerate are too close together for me.

I know how to add space between items horizontally, but I can't figure out how to adjust the row spacing when you have more items than fit on a single row so that there end up multiple rows.

Can someone explain to me how to do this? Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: Space between rows in a shortenumerate

Post by balf »

As is normal in such an environment, the distance between 'rows' is just \baselineskip.
So you might define a new environment in the following wey, that uses the setspace package :
\newenvironment{myshortenum}[1][default value for setstretch] {\setstretch{#1}\begin{shortenumerate}}{\end{shortenumerate}}

B.A.
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: Space between rows in a shortenumerate

Post by dmt »

Thanks, that was helpful, though I don't understand everything you did in your newenvironment command (I've never seen that that command used before). I looked into the setspace package a little and experimented with your suggestion and have gotten it much better now.

One more problem I am having though. I am using a shortenumerate inside of a normal enumerate and for some reason there is much more space above the shortenumerate list than under it (it is "attached" to the enumerate item above it as sub numbering, so there should be less space above it and more under to indicate this more clearly).

Is there something simple I can do to fix this issue?
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: Space between rows in a shortenumerate

Post by balf »

The vertical spacing in a list environment depends on no less than four parameters : \parsep, which is the vertical between paragraphs in ordinary text and is used between your main text and the beginning of the list (usually, it is 0pt by default). But also used are \topsep and \partopsep (I think this one is used when the list environment is introduced by a blank line). And finally \itemsep is used between successive items in the list.
I don't know which ones are used inside a list, before a sublist but you can play with them, making changes on entering in the 'myshortenum' environment (put them in the definition of myshortenum, so as to make the changes local).

What I did in the myshortenum environment was just to modify the \baselineskip (vertical distance between successive lines in ordinary text) by a factor. Btw, the usual \baselineskip is, in the opinion of many people, too small ; one can change this by setting, e.g. \linespread{#1}, in the preamble. A value between 1.05 and 1.1 is usally correct, but that depends on the font.

B.A.
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: Space between rows in a shortenumerate

Post by dmt »

Thanks a lot. That's really helpful.
Post Reply