Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
martman
Posts: 8 Joined: Thu Jul 31, 2008 4:09 am
Post
by martman » Sat Jul 03, 2010 5:34 am
Im trying to remove the indentation from lists like this, with no luck. Any ideas?
Code: Select all
\begin{multicols}{2}
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
\setlength{\leftmargin}{-.25in}
\item a
\item b
\item c
\item d
\item e
\item f
\end{itemize}
\end{multicols}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide : 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook : 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ : the first book about TikZ for perfect drawings in your LaTeX thesis
frabjous
Posts: 2064 Joined: Fri Mar 06, 2009 12:20 am
Post
by frabjous » Sat Jul 03, 2010 6:19 am
The easiest way is to load the
enumitem package and use some of its options, e.g.:
Code: Select all
\begin{itemize}[leftmargin=*]
\item a
\item b
\item c
\item d
\item e
\item f
\end{itemize}
See the
enumitem package documentation for more information and more options.
martman
Posts: 8 Joined: Thu Jul 31, 2008 4:09 am
Post
by martman » Sat Jul 03, 2010 1:12 pm
That helped with indenting nicely.
Now I'm noticing that if I start a list like that at the top of a section, the first elements in each column arnt lined up. Know how to fix that anychance?
Thanks
frabjous
Posts: 2064 Joined: Fri Mar 06, 2009 12:20 am
Post
by frabjous » Sat Jul 03, 2010 2:47 pm
Please provide a fully compilable minimal example of what you mean. At the moment, I don't know how to duplicate this problem. It seems to work fine for me at the start of a section, at least in the article class with no other packages besides multicol and enumitem loaded.
martman
Posts: 8 Joined: Thu Jul 31, 2008 4:09 am
Post
by martman » Sat Jul 03, 2010 3:22 pm
Code: Select all
\documentclass[12]{report}
\usepackage{titlesec}
\usepackage{anysize}
\usepackage{multicol}
\usepackage{enumitem}
\thispagestyle{empty}
\pagestyle{empty}
\setlength{\parindent}{0in}
\marginsize{1.5in}{.75in}{.0in}{0in}
\setlength{\parskip}{-.125in}
\titleformat{\section}[leftmargin] {
\normalfont
\large
\sffamily
\bfseries
\filleft
}{\thesection}{.25in}{}
\titlespacing{\section}{1.25in}{.25in}{.125in}
\begin{document}
\section*{Foo Bar}
\begin{multicols}{2}
\begin{itemize}[leftmargin=*]
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
\item a
\item b
\item c
\item d
\item e
\item f
\end{itemize}
\end{multicols}
\end{document}