Text Formattingenumitem and paralist and parskip error

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

enumitem and paralist and parskip error

Post by svend_tveskaeg »

Hi LaTeX friends.

First, take a look at the attached TeX file.

For some reason the document will not compile using

Code: Select all

latex test.tex
It does, however, compile just fine if I remove the paralist package. I would really like to have the inparaenum environment, though.

It is probably do to a very trivial error but I simply cannot figure out the problem (or the solution).

Thansk in advance!
Attachments
test.tex
(2.74 KiB) Downloaded 243 times
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

enumitem and paralist and parskip error

Post by localghost »

It works after swapping enumitem and paralist.


Best regards
Thorsten
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Lists

Post by svend_tveskaeg »

Dear Thorsten.

I thought that my MWE was good enough but obviously it is not! If I swap the two aforementioned packages in my "real" TeX document it still will not compile. I have attached my "real" document (and the log file).

Thanks in advance!
Attachments
tal.log
(33.42 KiB) Downloaded 218 times
tal.tex
(27.62 KiB) Downloaded 236 times
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

enumitem and paralist and parskip error

Post by localghost »

In the last enumerate environment there is a line where a backslash is missing.

Code: Select all

\setlength{\parskip}{0pt}
By the way, inside the environment this line has no effect. For lists you have to modify the length \parsep. In this case you can give this as optional argument to the enumerate environment.

Code: Select all

\begin{enumerate}[parsep=0pt]
% list contents
\end{enumerate}
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

enumitem and paralist and parskip error

Post by svend_tveskaeg »

localghost wrote:In the last enumerate environment there is a line where a backslash is missing.
I do not follow you, unfortunately. Could you please write exactly what I have to change?

Thank you very much for helping me!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

enumitem and paralist and parskip error

Post by localghost »

Compare what you wrote …

Code: Select all

\setlength{parskip}{0pt}
… with the line I wrote …

Code: Select all

\setlength{\parskip}{0pt}
… and you will see what I mean.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Lists

Post by svend_tveskaeg »

Oh dear! Embarrassing!

Thank you very much!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply