Greetings all,
I'm fairly new to the LaTeX world, having only used it for about three weeks now, but I'm proficient enough to be using it for school work. I was given a homework assignment (in an MS Word document) where the professor has given us the conditions for a problem, and then an indented list of numbered problems, followed by a new set of non-indented conditions and indented problems. The conditions are basic text, but the problems are numbered. When I use the \enumerate environment, the non-problem text is indented with the last \item entered. How do I tell LaTeX to format the text the way I want it?
Text Formatting ⇒ Enumeration Issues
Enumeration Issues
LaTeX Distibutions: MiKTeX 2.8/MacTeX
Editors: TeXnicCenter/TeXShop
Editors: TeXnicCenter/TeXShop
NEW: TikZ book now 40% off at Amazon.com for a short time.
Enumeration Issues
For something like this, I might use the resume option from the enumitem package to make a new enumerate environment continue the numbering of the last one.
Does the following example help?
The package documentation has other options that may interest you.
Does the following example help?
Code: Select all
\documentclass{article}
\usepackage{enumitem}
\begin{document}
A paragraph of normal text.
\begin{enumerate}
\item numbered item 1
\item numbered item 2
\end{enumerate}
Another paragraph of text, with the first line indented as a paragraph, with some extra words added to make sure it's more than one line long.
\begin{enumerate}[resume]
\item numbered item 3
\item numbered item 4
\end{enumerate}
\noindent A paragraph of text, not indented at all.
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Enumeration Issues
It might be helpful if this document would be present to us. You can attach it to your next post.jonfucius wrote:[...] I was given a homework assignment (in an MS Word document) where the professor has given us the conditions for a problem, [...]
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Enumeration Issues
I've attached the PDF file of the homework. I'm not soliciting help with the actual problems, just trying to find a solution in typesetting the questions and their answers in LaTeX.
- Attachments
-
- HW Week 5_2009.pdf
- (158.19 KiB) Downloaded 217 times
LaTeX Distibutions: MiKTeX 2.8/MacTeX
Editors: TeXnicCenter/TeXShop
Editors: TeXnicCenter/TeXShop
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Enumeration Issues
Take the example of frabjous and compile it on your machine. It is exactly what you need. You can translate this very easy to build the document as seen in your attached file. Study the manual of the linked package.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Enumeration Issues
Thank you all! The \enumitem package with \begin{enumerate}[resume] was exactly what I needed. Thanks!
LaTeX Distibutions: MiKTeX 2.8/MacTeX
Editors: TeXnicCenter/TeXShop
Editors: TeXnicCenter/TeXShop