Document ClassesCannot get \enumitem to do what I need in memoir class

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
radiodurans
Posts: 3
Joined: Sun May 28, 2023 5:18 am

Cannot get \enumitem to do what I need in memoir class

Post by radiodurans »

I'm trying to replicate a certain look for numbered nested paragraphs with the enumitem package in memoir class.

This is the look I'm trying to achieve:
Screenshot_2023-05-27_17-29-52.png
Screenshot_2023-05-27_17-29-52.png (109.14 KiB) Viewed 10331 times
I've been playing around with settings below, the below is just my current state of experimentation. This is NOT the answer but a sample of the frustration of playing around with all the settings to try to achieve the image :)

Any help would be appreciated!:

Code: Select all

\setlist[enumerate,1]{label=\arabic*., after=\vspace{\baselineskip}, itemindent=0in, listparindent=\leftmargin}leftmargin=\dimexpr0.25in+\labelwidth+\labelsep\relax, listparindent=\dimexpr0.25in\relax]
\setlist[enumerate,2]{label=\alph*., after=\vspace{0pt}, itemindent=.25in, listparindent=\leftmargin}
\setlist[enumerate,3]{label=(\arabic*), after=\vspace{0pt}, itemindent=0.5in, listparindent=\leftmargin}
here is the full tex code of my current (failed) test:

Code: Select all

\documentclass[12pt,oneside,letterpaper]{memoir}
\usepackage{newtxtext}
\usepackage{newtxmath}
\usepackage[USenglish]{babel}
\usepackage{enumitem}

\setlist[enumerate,1]{label=\arabic*., after=\vspace{\baselineskip}, itemindent=0in, listparindent=\leftmargin}leftmargin=\dimexpr0.25in+\labelwidth+\labelsep\relax, listparindent=\dimexpr0.25in\relax]
\setlist[enumerate,2]{label=\alph*., after=\vspace{0pt}, itemindent=.25in, listparindent=\leftmargin}
\setlist[enumerate,3]{label=(\arabic*), after=\vspace{0pt}, itemindent=0.5in, listparindent=\leftmargin}

\setlrmarginsandblock{0.5in}{1in}{*} % Left and right margins
\setulmarginsandblock{0.88in}{1in}{*} % Top and bottom margins
\raggedright

\checkandfixthelayout

\begin{document}

\begin{enumerate}
    \item First level item that is indented on the first line. This is a long description that spills over into multiple lines. Here is the second line of the description. And here is the third line of the description.
    \begin{enumerate}
        \item Second level item that is indented on the first line. This is a long description that spills over into multiple lines. Here is the second line of the description. And here is the third line of the description.
        \begin{enumerate}
            \item Third level item that is indented on the first line. This is a long description that spills over into multiple lines. Here is the second line of the description. And here is the third line of the description.
        \end{enumerate}
    \end{enumerate}
\end{enumerate}

\end{document}
Last edited by Stefan Kottwitz on Mon May 29, 2023 1:39 am, edited 3 times in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Cannot get \enumitem to do what I need in memoir class

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

I guess there's a better chance to get a solution if you add the image here as attachment in the forum (instead of some outside pasteboard) and a small but full compilable example (Infominimal working example) because nobody tests such a \setlist command list just in the head or imagines a LaTeX document around it and sees the issue there.

Stefan
LaTeX.org admin
radiodurans
Posts: 3
Joined: Sun May 28, 2023 5:18 am

Cannot get \enumitem to do what I need in memoir class

Post by radiodurans »

OK updated the post
Post Reply