Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am in the process of transitioning from using the older {paralist} package to the {enumitem} package and this question on Suggestions for transitioning from paralist to enumitem package suggested to use the align=left option. However, this is results in text overlapping. If I remove the setting, then the default {enumitem} package results in text being overwritten. Not sure how to fix this...

\documentclass{article}

\usepackage{paralist}
\usepackage[shortlabels]{enumitem}
%\setlist{align=left}

\usepackage{geometry}
\geometry{showframe}

\usepackage{amsmath}

\begin{document}

\begin{itemize}[\textbf{Given:}]
    \item $f(x) = \sqrt{x}$  

    $g(x) = \sqrt[3]{1 - x}$
\end{itemize}

\end{document}

This produces correct results with {parlist} package. Using the defaults of {enumitem}, shifts text into margin (with TeXLive2012 as of Oct 27, 2012):

enter image description here

and with the align=left, the text overlaps.

Or is there a better way for me to achieve the results that {paralist} produces.

share|improve this question
1  
It's a bug, to be fixed very soon. Anyway, when the list is properly setup (as Gonzalo shows below), this shouldn't be a problem. –  Javier Bezos Jun 27 '11 at 9:41
add comment

1 Answer

up vote 5 down vote accepted

You can use leftmargin=*:

\documentclass{article}
\usepackage[shortlabels]{enumitem}
\setlist{leftmargin=*}
\usepackage{geometry}
\geometry{showframe}
\usepackage{amsmath}

\begin{document}

\begin{itemize}[\textbf{Given:}]
    \item $f(x) = \sqrt{x}$  

    $g(x) = \sqrt[3]{1 - x}$
\end{itemize}

\end{document}

The image only shows the relevant part:

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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