Text FormattingItems alignment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
SlavomirKan
Posts: 1
Joined: Mon Apr 25, 2022 10:21 pm

Items alignment

Post by SlavomirKan »

Hi,

please can someone provide help with my issue ? I am getting struggle with text alignment in "itemize" command. I need to align first column from left and second one from left also like is presented on picture.

Thank you for help.
Screenshot 2022-04-25 at 19.39.24.png
Screenshot 2022-04-25 at 19.39.24.png (40.01 KiB) Viewed 2687 times

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

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Items alignment

Post by Bartman »

A proposal using the description environment and the enumitem package to achieve the result shown.

Code: Select all

\documentclass{article}
\usepackage{enumitem}

\begin{document}
\begin{description}[leftmargin=*, widest=Text Text, labelsep=2cm, font=\mdseries]
\item[Text] Text Text Text Text Text Text Text Text Text Text
\item[Text Text] Text Text Text Text Text Text Text
\end{description}
\end{document}
Alternatively, the labeling environment is available if you use a KOMA-Script class or load the scrextend package.
Post Reply