Text Formatting ⇒ Modify enumerated Lists to show Nesting on same Line
Modify enumerated Lists to show Nesting on same Line
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Modify enumerated Lists to show Nesting on same Line
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
Modify enumerated Lists to show Nesting on same Line
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
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Modify enumerated Lists to show Nesting on same Line
\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}