2

I need to use the LaTeX file from statistics in medicine template. I do not change anything in the template, but the problem is that I cannot run to the pdf file.

How should I do to fix this?

These are the errors:

For additional information on amsmath, use the `?' option.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsbsy.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsopn.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\classes\amsthm.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\algorithms\algorithm.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\algorithmicx\algorithmicx.sty"
Document Style algorithmicx 1.2 - a greatly improved `algorithmic' style
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\algorithmicx\algpseudocode.sty"
Document Style - pseudocode environments for use with the `algorithmicx' style
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\listings\listings.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\listings\lstmisc.sty"
! No room for a new \count .
\ch@ck ...\else \errmessage {No room for a new #3}
                                                  \fi
l.1219 \newcounter{lstnumber}
                             % \global
?

The MEW is here:

\documentclass[AMA,STIX1COL]{WileyNJD-v2}

\articletype{Article Type}%

\received{26 April 2016}
\revised{6 June 2016}
\accepted{6 June 2016}

\raggedbottom


\begin{document}

\section{Introduction}

\end{document}
1

So I solved it like this:

I downloaded the .zip file from the link you provided and unzipped that .zip on my desktop. Now you should be able to compile the .tex file without any errors.

Here are two pictures:

unzip

And the result:

compilation

  • I am so sad. It does not work for me. The error \ch@ck ...\else \errmessage {No room for a new #3} \fi l.1219 \newcounter{lstnumber} % \global still happen. – sagh Jul 8 '18 at 7:53
  • 1
    @sagh Save your MWE in the same subdirectory where it is WileyNJD-v2.cls, then should work. – Fran Jul 8 '18 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.