Text FormattingEnumeration Issues

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jonfucius
Posts: 7
Joined: Fri Oct 02, 2009 7:05 pm

Enumeration Issues

Post by jonfucius »

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?
LaTeX Distibutions: MiKTeX 2.8/MacTeX
Editors: TeXnicCenter/TeXShop

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Enumeration Issues

Post by frabjous »

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?

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}
The package documentation has other options that may interest you.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Enumeration Issues

Post by localghost »

jonfucius wrote:[...] I was given a homework assignment (in an MS Word document) where the professor has given us the conditions for a problem, [...]
It might be helpful if this document would be present to us. You can attach it to your next post.


Best regards and welcome to the board
Thorsten
jonfucius
Posts: 7
Joined: Fri Oct 02, 2009 7:05 pm

Re: Enumeration Issues

Post by jonfucius »

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Enumeration Issues

Post by localghost »

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.
jonfucius
Posts: 7
Joined: Fri Oct 02, 2009 7:05 pm

Re: Enumeration Issues

Post by jonfucius »

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
Post Reply