1

Code:

\documentclass[12pt]{article}
\usepackage{enumitem}
\usepackage[margin=1in]{geometry} 
\begin{document} 
    \noindent
    Hello
    \begin{enumerate}[leftmargin =*, label = \textbf{Problem \arabic*.}]
        \item Find the Th\'evenin equivalent with respect to this resistor. Use this result to determine the conditions under which $R_9$ absorbs \textit{maximal} power.
        \item Based on the results obtained in Problem 1, select the resistor so that $\eta$ is maximized with the following additional constraint:
    \end{enumerate}
\end{document}

Output (with annotations): enter image description here

Is there a way to move the second line such that it is aligned with the enumeration? My objective is that whenever a new line is made, it is aligned with the enumeration labels instead of with the first line.

Edit: here is a hand sketch of what I want: enter image description here

2
  • could you add a hand drawn sketch of the desired output
    – js bibra
    Commented Jun 8, 2020 at 0:36
  • Ok, give me a moment
    – Superman
    Commented Jun 8, 2020 at 0:36

1 Answer 1

2

You can use enumitem's keys to modify the lengths in the enumerate environment. Also, especially if you want to use multiple such lists, you could define a new list type.

\documentclass[12pt]{article}
\usepackage{enumitem}
\usepackage[margin=1in]{geometry} 
\usepackage{calc}
\newlist{problems}{enumerate}{1}
\setlist[problems]{
    label=\textbf{Problem \arabic*.},
    labelwidth={\widthof{\textbf{Problem 0.}} + \labelsep},
    itemindent=\labelwidth,
    leftmargin=0pt,
}
\begin{document} 
    \noindent
    Hello
    \begin{problems}
        \item Find the Th\'evenin equivalent with respect to this resistor. Use this result to determine the conditions under which $R_9$ absorbs \textit{maximal} power.
        \item Based on the results obtained in Problem 1, select the resistor so that $\eta$ is maximized with the following additional constraint:
    \end{problems}
\end{document}

2
  • What a nice solution! Thank you so much!
    – Superman
    Commented Jun 8, 2020 at 3:45
  • 2
    This earlier question requests the same visual result: Removing horizontal space in enumerate. An important difference is that a theorem-class object is involved in the other question. But it would be nice if a common approach could apply to both. Commented Jun 8, 2020 at 20:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .