Hi everyone,
I have just started learning LaTex. I am not sure how to modify the enumerate environment to show nestings on the same line. Could someone please kindly show me how to code the following list arrangment (not the actual text) in LaTex
My whole document contains maths questions with some questions containing nested parts like (a), (b). Other questions have further nestings like (i) and (ii).
Thank you for your help.
Text Formatting ⇒ Modify enumerated Lists to show Nesting on same Line
Modify enumerated Lists to show Nesting on same Line
Last edited by localghost on Sat Mar 03, 2012 4:37 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Modify enumerated Lists to show Nesting on same Line
Hi,
welcome to the board!
Generally, it's a good idea to post some code. For example here, you could copy a sample into the post showing what you did already, the reader could test and improve it. For now, if a reader would have an idea, he would have to type dummy text on his own or type the text from your screenshot, instead of just copy & paste. It's possible that nobody does it if you don't post a code sample.
It reminds me of questions such as "can somebody create this document for me" with an image and without any effort such as code to start - even if your question is a smaller one.
Stefan
welcome to the board!
Generally, it's a good idea to post some code. For example here, you could copy a sample into the post showing what you did already, the reader could test and improve it. For now, if a reader would have an idea, he would have to type dummy text on his own or type the text from your screenshot, instead of just copy & paste. It's possible that nobody does it if you don't post a code sample.
It reminds me of questions such as "can somebody create this document for me" with an image and without any effort such as code to start - even if your question is a smaller one.
Stefan
LaTeX.org admin
Modify enumerated Lists to show Nesting on same Line
Hello Stefan,
My apologies for not posting code. My best attempt is with the following:
I'm not sure how to get the text at (a) to go on the same line as 1. (as per picture) and I'm not sure how to split (b) into (i) and (ii).
Thank you
My apologies for not posting code. My best attempt is with the following:
Code: Select all
\begin{enumerate}
\item Question line 1
\begin{enumerate}
\item Part (a) text
\item Part (b) text
\begin{enumerate}
\item Part (b)(i) text
\item Part (b)(ii) text
\end{enumerate}
\end{enumerate}
\item Question line 2
\item Question line 3
\end{enumerate}
Thank you
Last edited by Stefan Kottwitz on Sat Mar 03, 2012 5:00 pm, edited 1 time in total.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Modify enumerated Lists to show Nesting on same Line
It's on the same line if you would start the new enumeration right after
Stefan
\item
:
Code: Select all
\documentclass[12pt]{article}
\begin{document}
\begin{enumerate}
\item
\begin{enumerate}
\item Part (a) text
\item
\begin{enumerate}
\item Part (b)(i) text
\item Part (b)(ii) text
\end{enumerate}
\end{enumerate}
\item Question line 2
\item Question line 3
\end{enumerate}
\end{document}
LaTeX.org admin
Re: Modify enumerated Lists to show Nesting on same Line
This is exactly how I wanted it. Thank you so much Stefan for your patience and help. I am most grateful.