GeneralReduce row space

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
xetal
Posts: 14
Joined: Fri May 25, 2007 5:18 pm

Reduce row space

Post by xetal »

Code: Select all

\begin{topic}
\item[A] A
\item[B] B
\item[C] C
\end{topic}
How would I reduce the space?

Also, I am using \begin{document}. Is there a way of making the width of the document greater by overwriting just that property?

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Reduce row space

Post by gmedina »

For the first problem, you can use the paralist package and the compactenum environment (see the code below). For the second problem, you can use the geometry package to customize the layout of the page (I changed the textwidth in the code below). Read the documentation of the packages to see all the options they offer:

Code: Select all

\documentclass{article} 
\usepackage{paralist}
\usepackage[textwidth=15cm]{geometry}
\begin{document} 

\begin{compactenum}[A]
  \item A
  \item B
  \item C
\end{compactenum}

\end{document}
Addendum: of course, you can control the vertical separation between items in a standard list-like environmnet changing the value of \itemsep, as the following example shows:

Code: Select all

\documentclass{article} 

\begin{document} 

%-----with the standard separation between items
\begin{enumerate}
  \item[A] A
  \item[B] B
  \item[C] C
\end{enumerate}

%-----with less separation between items
\begin{enumerate}
  \setlength\itemsep{-4pt}
  \item[A] A
  \item[B] B
  \item[C] C
\end{enumerate}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
xetal
Posts: 14
Joined: Fri May 25, 2007 5:18 pm

Re: Reduce row space

Post by xetal »

Thank you! That was what I needed!
Post Reply