GeneralErrors at the third level of enumerate

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Flavia Ferreira
Posts: 4
Joined: Thu Sep 03, 2015 12:50 am

Errors at the third level of enumerate

Post by Flavia Ferreira »

Hi!

I wonder if you could help me. I am using the enumerate package and the environment "enumerate", which is suposed to deal with up to 4 levels. However, I found the errors described below at the line of the command "\begin{enumerate}" of the third (and last) level:

Missing number, treated as zero \item
Illegal unit of measure (pt inserted) \item


What should I have been doing wrong? My code is:

Code: Select all

\begin{enumerate}[label=\bfseries Step 1:]

\item Calibration of the first 2D-BF (that one applied to LL sub-band) through the VSASP method:

\begin{enumerate}[a.]
\item The DWT is performed to find the wavelet coefficients of LL, HL, LH and HH sub-bands;
\item For every $(\sigma_d, R)$ of this first 2D-BF, with $\sigma_d=0.5:0.5:5$
    and $R= 0.5:0.5:10$, do:

\begin{enumerate}[i.]
\item Use the 2D-BF to operate the LL coefficients;
\item Synthetize the denoised image with the IDWT;
\item Calculate the chosen metric (usually PSNR or MSSIM).
\end{enumerate}

\item Finally, the $(\sigma_d, R)$ that optimizes the chosen metric is determined and maintained
    unchanged through the following stages.

\end{enumerate}
\end{enumerate}
Last edited by Stefan Kottwitz on Tue Sep 08, 2015 8:58 pm, edited 1 time in total.

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
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Errors at the third level of enumerate

Post by Stefan Kottwitz »

Hi Flavia,

welcome to the forum!

This code runs for me without errors. I just needed to add \usepackage[shortlabels]{enumitem} to get the syntax running. Are you using the enumitem package too? Or another one? Also the enumerate package instead doesn't give an error.

I tested with TeX Live 2014, and with the Overleaf online compiler.

Stefan
LaTeX.org admin
Flavia Ferreira
Posts: 4
Joined: Thu Sep 03, 2015 12:50 am

Errors at the third level of enumerate

Post by Flavia Ferreira »

Hi Stefan,

Thank you very much for your quick response.
I keep on having problems. See how I declare the packages:

Code: Select all

\documentclass{bmcart}
%\documentclass[a4paper,12pt]{report}
\usepackage{graphicx}
%\usepackage{enumerate}
%\usepackage{enumitem}
\usepackage[shortlabels]{enumitem}
I have tried all the possibilities: commenting and not commenting the lines

Code: Select all

%\usepackage{enumerate}
%\usepackage{enumitem}
In fact, at the beginning I didn't have any errors and everything was all right, but at some time, the code didn't compile any more.

Do you have any idea of what can be going wrong?

Flavia
Last edited by Stefan Kottwitz on Tue Sep 08, 2015 9:45 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Errors at the third level of enumerate

Post by Stefan Kottwitz »

Hi Flavia,

can you provide a link to that document class bmcart? Perhaps it does something which is not standard.

Stefan
LaTeX.org admin
Flavia Ferreira
Posts: 4
Joined: Thu Sep 03, 2015 12:50 am

Re: Errors at the third level of enumerate

Post by Flavia Ferreira »

Hi Stefan,

You can find it in

https://www.dropbox.com/sh/ejsfhtdah6b0 ... l5y-a?dl=0

I also uploaded the template.

Thank you,
Flávia
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Errors at the third level of enumerate

Post by Johannes_B »

Please add to the end of your preamble:

Code: Select all

\makeatletter
\def\@listiii{\leftmargin\leftmarginiii
              \labelwidth\leftmarginiii
              \advance\labelwidth-\labelsep
              \topsep\z@
              \parsep\z@
              \partopsep\z@
              \itemsep\topsep}
\makeatother


This is a little bug in the class file, i poked the author. Don't know how long it will take till the fix gets to upstream.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Flavia Ferreira
Posts: 4
Joined: Thu Sep 03, 2015 12:50 am

Re: Errors at the third level of enumerate

Post by Flavia Ferreira »

Thank you very much, Johannes!
It run perfectly!
Flávia
anndo1
Posts: 1
Joined: Mon May 01, 2023 1:37 am

Errors at the third level of enumerate

Post by anndo1 »

The class file is still not fixed 8 years later, and I had to implement the soln presented above. If I don't implement the solution, I end up with odd "z@" symbols at the end of the first enumerate statements. Can we "poke" the author again? Thanks!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Errors at the third level of enumerate

Post by Stefan Kottwitz »

Hi Anndo,

why do you use bmcart.cls, for which purpose? This may be obsolete for a long time. BMC belongs to Springer Nature, and they write:
The Springer Nature LaTeX authoring template can be used to prepare your journal article submission to any Springer Nature journal inclusive of Springer, Nature Portfolio, and BMC.
If you publish with them, you may use the Springer Nature LaTeX template now, I think.

Stefan
LaTeX.org admin
Post Reply