Text FormattingCentering inparaenum (from paralist)

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
kitsune
Posts: 6
Joined: Thu Feb 11, 2010 7:19 pm

Centering inparaenum (from paralist)

Post by kitsune »

I want to center ever \begin{inparaenum} ... \end{paraenum} that appears in my document. Is there a way to do with without going

Code: Select all

\begin{center}
\begin{inparaenum}
\item 1
\item 2
\item 3
\item 4
\item 5
\end{inparaenum}
\end{center}
every time?

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Centering inparaenum (from paralist)

Post by frabjous »

Can't you just define a custom environment? For example:

Code: Select all

\documentclass{article}
\usepackage{paralist}
\newenvironment{clist}{\begin{center}\begin{inparaenum}}{\end{inparaenum}\end{center}}
\begin{document}

\begin{clist}
\item one
\item two
\item three
\item four
\item five
\end{clist}

\end{document}
Post Reply