LaTeX 错误:命令算法已定义

问题描述 投票:0回答:1

我在背页写了第一篇论文,即将提交给 arXiv。为此,我在网页上执行了“提交”,但是,我收到了 3 个错误,我不太明白。

> LaTeX Error: Command \algorithmic already defined.
> 
> Or name \end... illegal, see p.192 of the manual.
> 
> See the LaTeX manual or LaTeX Companion for explanation. Type  H
> <return>  for immediate help.  ...                                    
> 
>                                                    l.112    }
>           % Your command was ignored. Type  I <command> <return>  to replace it with another command, or  <return>  to continue without it.
> 
> ) Document Style - pseudocode environments for use with the
> `algorithmicx' style )
> (/usr/local/texlive/2022/texmf-dist/tex/latex/mathtools/empheq.sty
> Package: empheq 2017/03/31 v2.15 Emphasizing equations
> (/usr/local/texlive/2022/texmf-dist/tex/latex/mathtools/mhsetup.sty
> Package: mhsetup 2021/03/18 v1.4 programming setup (MH) )
> (/usr/local/texlive/2022/texmf-dist/tex/latex/mathtools/mathtools.sty
> Package: mathtools 2022/02/07 v1.28a mathematical typesetting tools
> (/usr/local/texlive/2022/texmf-dist/tex/latex/tools/calc.sty Package:
> calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ) \calc@Acount=\count291
> \calc@Bcount=\count292 \calc@Adimen=\dimen173 \calc@Bdimen=\dimen174
> \calc@Askip=\skip58 \calc@Bskip=\skip59 LaTeX Info: Redefining
> \setlength on input line 80. LaTeX Info: Redefining \addtolength on
> input line 81. \calc@Ccount=\count293 \calc@Cskip=\skip60 )
> \g_MT_multlinerow_int=\count294 \l_MT_multwidth_dim=\dimen175
> \origjot=\skip61 \l_MT_shortvdotswithinadjustabove_dim=\dimen176
> \l_MT_shortvdotswithinadjustbelow_dim=\dimen177
> \l_MT_above_intertext_sep=\dimen178
> \l_MT_below_intertext_sep=\dimen179
> \l_MT_above_shortintertext_sep=\dimen180
> \l_MT_below_shortintertext_sep=\dimen181 \xmathstrut@box=\box57
> \xmathstrut@dim=\dimen182 ) \l_EQ_equationtype_int=\count295
> \l_EQ_alignmentmode_int=\count296 \l_EQ_totalwidth_dim=\dimen183
> \l_EQ_displaywidth_dim=\dimen184 \l_EQ_temp_linewidth_dim=\dimen185
> \l_EQ_linewidth_dim=\dimen186 \EmphEqdelimitershortfall=\dimen187
> \EmphEqdelimiterfactor=\count297 \g_EQ_toptag_height_dim=\dimen188
> \g_EQ_bottomtag_depth_dim=\dimen189 \g_EQ_toprow_height_dim=\dimen190
> \g_EQ_bottomrow_depth_dim=\dimen191 \g_EQ_widesttag_dim=\dimen192
> \EQ_mathdisplay_box=\box58 \EQ_tag_box=\box59
> \g_EQ_temprow_int=\count298 )
> (/usr/local/texlive/2022/texmf-dist/tex/latex/natbib/natbib.sty
> Package: natbib 2010/09/13 8.31b (PWD, AO)

第二:

Missing number, treated as zero.
...

第三个:

Missing = inserted for \ifnum.
...
latex submission
1个回答
0
投票

algpseudocode与algorithm不兼容,用algorithmicx替换algorithmic可能会解决你的问题。

© www.soinside.com 2019 - 2024. All rights reserved.