I've got following error message when compiling for a journal article:
/usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty:431: LaTeX Error: Command \proof already defined. Or name \end... illegal, see p.192 of the manual.
while compiling this in overleaf:
\documentclass[lnbip]{svmultln}
\usepackage{lineno,hyperref, graphicx, caption, color, amsthm, float, makeidx}
\usepackage[utf8]{inputenc}
\modulolinenumbers[5]
\setlength{\parindent}{0em}
\setlength{\parskip}{0.8em}
\setlength{\belowcaptionskip}{-12pt}
\newtheoremstyle{dotless}{}{}{\itshape}{}{\bfseries}{}{ }{}
\theoremstyle{dotless}
\newtheorem {lem}{Lemma}
\begin{document}
and Journal send me this error (I don't know what editor they use)
! Runaway argument?
\begin {linenomath}\LN@displaymath \@nil \@ifpackageloaded {amstex}{\ETC.
! Paragraph ended before \@tempa was complete.
<to be read again>
\par
l.435 \newenvironment{proof}[1][\proofname]{\par
But everything is ok on Sharelatex.
p.s (updated): I dont get error more after delete amsthm
, add amsmath
and remove \newtheoremstyle{dotless}{}{}{\itshape}{}{\bfseries}{}{ }{}
and \theoremstyle{dotless}
and after reformat all formula but I get error for caption with footnote and 2^14 x 2^14 (it is ok in sharelatex):
\begin{figure}[h]
\centering
\includegraphics[width=\linewidth]{fig6.PNG}
\captionsetup{justification=centering}
\caption{... A\footnotemark \\ with dimensions 2^{24} \times 2^{24}.}
\label{figure6}
\end{figure}
\footnotetext{\url{}}
\makeatletter\let\proof\@undefined\let\endproof\@undefined\makeatother
between the\documentclass
and the first\usepackage
line. – Lupino Oct 16 '17 at 12:01