Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable indentation of LaTeX list items? [closed]

Tags:

margin

latex

By default the "enumerate" environment is indented with respect to the current environment. How can I disable this indentation so that an enumerate environment of three items would produce the same output as the following piece of code?

\documentclass{article}
\begin{document}
  \paragraph{1.}
  \paragraph{2.}
  \paragraph{3.}
\end{document}
like image 643
reprogrammer Avatar asked Sep 15 '09 12:09

reprogrammer


People also ask

How do I turn off auto indentation in LaTeX?

LaTeX will automatically indent the first line of each paragraph that doesn't immediately follow a section heading. If you'd like to get rid of an indent, you can use the \noindent command: \section{Introduction} This is the first paragraph. \noindent This is the second paragraph.

How do you indent a list in LaTeX?

How Do You Indent a List in LaTeX? You can add additional depth to your list by first using the command \begin{enumerate} and then ending the code with \end{enumerate} for each level.

How do I reduce space between items in LaTeX?

How do I reduce space between items in LaTeX? \end{small}. You can reduce the gap between table columns by using \setlength{\tabcolsep}{1pt}.


1 Answers

Your best bet is probably to use either the mdwlist package or the enumlist package.

Or this website suggests the use of the list environment like this:

\begin{list}{\labelitemi}{\leftmargin=1em}
\item First item in the list
\item Second item
\item and so on
\end{list}

which suggests that you could redefine the length leftmargin in your enumeration if you prefer. Something like:

\newenvironment{flushenum}{
\begin{enumerate}
  \setlength{\leftmargin}{0pt}
}{\end{enumerate}}

which seems to work for me..

like image 179
dmckee --- ex-moderator kitten Avatar answered Nov 07 '22 05:11

dmckee --- ex-moderator kitten