Text Formattingtabs in enumeration

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
koszta5
Posts: 7
Joined: Sat Jan 15, 2011 8:28 pm

tabs in enumeration

Post by koszta5 »

Hey,
this might be a really dumb question but I cant figure it out... Is there a way for me to create tabs after a number in enumeration environment... what i tried is
\begin{tabbing}
\begin{enumerate}
\item \> first thing\\
\item \> second thing
\end{enumerate}
\end{tabbing}

But it didnt work...
I need something like:

1. TAB HERE first thing
2. TAB HERE second thing
thank you all

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tabs in enumeration

Post by localghost »

It would be helpful to know what you are after. At the moment I see no sense in what you are trying. Usually the list environments align the items and numbers properly on their own. Finally the list parameters can be modified. Perhaps a tabular environment (perhaps tweaked with automatic line numbering) could also help.


Best regards and welcome to the board
Thorsten
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

tabs in enumeration

Post by frabjous »

You can't really use an enumerate environment inside a tabbing one, as you've no doubt noticed, but from your example, I can't even tell what you're trying to do. In LaTeX, you can't use a tabstop in tabbing until it's been set (with \=), and if you set it right at the beginning of the first item, and then used \> with all the other ones, all you would have accomplished is to line up the start of all the items in the enumeration, but that's already the default behavior in the enumerate environment, so why would it be necessary?

Are you simply trying to increase the horizontal space between the number and the item? If so, I'd simply load the enumitem package and increase the labelsep value:

Code: Select all

\documentclass{article}
\usepackage{enumitem}

\begin{document}
\begin{enumerate}[labelsep=2em]
\item First
\item Second
\end{enumerate}
\end{document}
But is there more to it than that? Do you want left-aligned numbers rather than right-aligned numbers? Do you need multiple tabstops following the numbers? Or what?
Post Reply