0

Is there any way to do something like this using an enumerated list:

It's possible to do this with the exam package and if I have to I will but I thought there might be a way without having to bring in a specific package. In order to get on with the writing I'm currently doing something like this for a single question:

\item \phantom{x}

\begin{enumerate} \item (a) \item (b) \end{enumerate}

which is far from desirable.

Bernard
  • 271,350
rhody
  • 1,020

2 Answers2

3
\documentclass{article}
\usepackage{enumitem}

\begin{document}
\begin{enumerate}
  \item \begin{enumerate}[label=(\alph*)]
        \item   sub-question a
        \item   sub-question b
        \item   sub-question c
        \end{enumerate}
  \item \begin{enumerate}[label=(\alph*)]
        \item   sub-question a
        \item   sub-question b
        \end{enumerate}
\end{enumerate}
\end{document}

enter image description here

Zarko
  • 296,517
2

Easily done with enumitem:

\documentclass{article}
\usepackage{enumitem}

\begin{document}

\sffamily \noindent Here is a list of questions:

\begin{enumerate}[left= 0pt, label=\arabic., leftmargin=] \item \begin{enumerate}[left=0pt, label=(\alph), leftmargin=] \item Here is a question. \item Another question that is part of Q1. \item And anotherquestion. \end{enumerate} \item \begin{enumerate}[left= 0pt, label=(\alph), leftmargin=, nosep] \item And it continues, but with Q2. \item Last question. \end{enumerate} \end{enumerate}

\end{document}

enter image description here

Bernard
  • 271,350