3

I tried just

1) foo;
2) bar;

in LaTeX, but I found it looks strange.

  • 4
    but I found it looks strage is not useful information in helping you solve any issue. In your future questions, please try and describe why it looks strange, and how you expected it to look. – 0xdd Nov 1 '18 at 18:33
  • 1
    Please elaborate on that strangeness! – Georges Nov 2 '18 at 8:21
9

You can use the enumitem package to make all kinds of lists.

Example:

\documentclass{article}

\usepackage{enumitem}

\begin{document}
\begin{enumerate}[noitemsep,label=\arabic*)]
    \item foo
    \item bar
\end{enumerate}
\end{document}

enter image description here

The key part for your question is the label=\arabic*). The \arabic part tells LaTeX you want numbers, the ) says you want brakets. The * is also necessary.

The noitemsep isn't necessary, I just like using it whenever I make lists, as I dislike spaces placed between items (which is the default).

Check out the documentation for this package if you want to learn more about it

  • Does it support inline mode? – Mark Nov 2 '18 at 7:31
8

Are you talking about an enumeration?

With the enumitem package and its shortlabels option, we have this:

enumitem

\documentclass{article}
\usepackage[shortlabels]{enumitem}
\begin{document}
   \begin{enumerate}[1)]
   \item foo;
   \item bar;
   \end{enumerate}
\end{document}

The enumerate package manages shortlabels natively:

\documentclass{article}
\usepackage{enumerate}
\begin{document}
   \begin{enumerate}[1)]
   \item foo;
   \item bar;
   \end{enumerate}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.