0


I have some problems with the itemize environment. I want to change the symbol in an existing environment and for it to look good also change the indents. But there it only changes the indents of the first lines. And as fare as I know, I can not change the leftmargin from within itemize. I also don't want to close the itemize and open a new one because I sometimes want to change the symbol in the 3rd nested itemize layer. I created following minimal example:

\usepackage{lipsum}
\usepackage{enumitem}

\newcommand{\changeSymbol}{ \renewcommand{\labelitemi}{$\rightarrow$} \global\setlength{\itemindent}{-13pt} }

\begin{document} \noindent\lipsum[1] \begin{itemize}[itemindent=-20pt, topsep=0pt, label=-, itemsep=0pt] \global\setlength{\labelsep}{3pt} \item \lipsum[1] \changeSymbol \item \lipsum[1] \end{itemize} \end{document}

the output

  • 1
    Try \begin{itemize}[leftmargin=5em, itemindent=-20pt, topsep=0pt, label=-, itemsep=0pt] – Simon Dispa Jun 10 '22 at 21:48
  • it only shifts the items further to the right. Also I couldn't change this in the command which is my main goal. – Sebastian Jun 11 '22 at 09:34
  • Making it work with enumitem may be more difficult than making it work with itemize. I ran into some weird stuff working on https://tex.stackexchange.com/questions/645742/in-the-exam-document-class-how-to-use-envuplevel-for-solution-that-spans-multip/645789#645789 and https://tex.stackexchange.com/questions/646551/adding-right-aligned-text-to-a-multi-line-list-item/646564?r=SearchResults&s=1%7C0.0000#646564 – John Kormylo Jun 12 '22 at 04:02

0 Answers0