Text FormattingHorizontal list

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
carolinej
Posts: 5
Joined: Thu Mar 10, 2016 7:48 pm

Horizontal list

Post by carolinej »

Hi!

I've been trying to make a horizontal bullet list, but can only find horizontal lists using numbers or letters.

So far the best version I've come up with was to use the text "as the items":

Code: Select all

\begin{inparadesc}
\item[ bla bla] ---
\item[ bla bla2] ---
\item[ bla bla3] ---
\item[ bla bla 4] 
\end{inparadesc}
But then the text is bold and I don't really like it (plus I'd prefer bullet points).

Any ideas?

C

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Horizontal list

Post by Johannes_B »

Do you find The wikibook entry on lists helpful?

Code: Select all

\documentclass[twocolumn]{article}
\usepackage{blindtext}
\usepackage[inline]{enumitem}
\usepackage{xcolor}
\begin{document}
\blindtext Coco likes fruit. Her favorites are:
\begin{itemize*}[font={\color{red!50!black}}]
	\item bananas
	\item apples
	\item oranges and
	\item lemons.
\end{itemize*}
\blindtext
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
carolinej
Posts: 5
Joined: Thu Mar 10, 2016 7:48 pm

Re: Horizontal list

Post by carolinej »

Perfect!
Thank you!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Horizontal list

Post by Johannes_B »

But seriously, is it helpful?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
carolinej
Posts: 5
Joined: Thu Mar 10, 2016 7:48 pm

Re: Horizontal list

Post by carolinej »

Yes, I didn't see that post when I was looking before. So yes, it was very helpful!
carolinej
Posts: 5
Joined: Thu Mar 10, 2016 7:48 pm

Re: Horizontal list

Post by carolinej »

Hi again,

I encountered another problem.. My other vertical lists in the same document have now a bigger space between the bullet points (more like double-spaced instead of single-spaced). Is it possible to remove this without changing the horizontal list too?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Horizontal list

Post by Stefan Kottwitz »

Hi Caroline,

could you post a compilable code example which shows this issue? At least I would have a chance to test and to modify it.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Horizontal list

Post by Johannes_B »

You can customize your list.

But really, a MWE is needed to give more precise hints.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
carolinej
Posts: 5
Joined: Thu Mar 10, 2016 7:48 pm

Re: Horizontal list

Post by carolinej »

It worked using \begin{itemize}[noitemsep] for the other lists. Thanks!
Post Reply