LaTeX报错解决办法 Error: File 'amsmath.sty' not found

本文详细介绍了在Win7系统下使用WinEdt7.0与TeXify编译LaTeX文档时遇到的amsmath.sty文件未找到错误的解决方法。通过安装amsmath包并正确配置MiKTeX Package Manager,最终成功解决了编译问题。

Compile in WinEdt 7.0 with TeXify.


"""
! LaTeX Error: File `amsmath.sty' not found.


Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)


Enter file name: 


Process has been terminated ...

"""

问题解决方法,安装amsmath.sty 包:

Win7系统,开始--CTeX--MiKTeX--MiKTeX Package Manage (Admin), 在name框中输入amsmath,选中amsmath点击install+,可见install+亮起,unistall-为灰色,说明该包未安装。 

按装完毕,关闭弹出的对话框,再次选中amsmath,点击install+变灰,unistall-变亮,该包已经安装。

再次编译,依旧报错。重启电脑是没有用的(额,这是最笨的办法···)。重启后再次编译,依旧报错,且报错相同。

Google上找到类似报错(http://tex.stackexchange.com/questions/213928/latex-error-file-amsthm-sty-not-found-using-lyx-and-despite-all-miktex-ams),原来使用amsmath package还要同时安装有amscls package

安装好这个包后,编译,一切正常。出现这个问题有可能是我前不久update MiKTeX,这些包不知道怎么就没了。升级之前是一些正常的。

系统工程学报CTEX排版出现这个问题:Command Line: bibtex.exe "JSE Template-to author" Startup Folder: D:\A研究生1111\研究生\小论文\璐萍师姐\20221010004Latex源文件 This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary file: JSE Template-to author.aux I found no \citation commands---while reading file JSE Template-to author.aux I found no \bibdata command---while reading file JSE Template-to author.aux I found no \bibstyle command---while reading file JSE Template-to author.aux (There were 3 error messages) Command Line: texify.exe --pdf --tex-option=--interaction=errorstopmode --tex-option=--synctex=1 "D:\A研究生1111\研究生\小论文\璐萍师姐\20221010004Latex源文件\JSE Template-to author.tex" Startup Folder: D:\A研究生1111\研究生\小论文\璐萍师姐\20221010004Latex源文件 This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) entering extended mode ("D:/A研究生1111/研究生/小论文/璐萍师姐/20221010004Latex源文件/ JSE Template-to author.tex" LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for loaded. (D:\CTEX\MiKTeX\tex\latex\ctex\ctexart.cls Document Class: ctexart 2011/03/11 v1.02c ctexart document class (D:\CTEX\MiKTeX\tex\latex\ctex\opt\ctex-common-opts.def) (D:\CTEX\MiKTeX\tex\latex\ctex\opt\ctex-caption-opts.def) (D:\CTEX\MiKTeX\tex\latex\ctex\opt\ctex-class-opts.def) (D:\CTEX\CTeX\tex\latex\ctex\cfg\ctexopts.cfg) (D:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-loadclass.def (D:\CTEX\MiKTeX\tex\latex\base\article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (D:\CTEX\MiKTeX\tex\latex\base\size10.clo))) (D:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-common.def (D:\CTEX\MiKTeX\tex\latex\l3kernel\expl3.sty (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3names.sty (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3bootstrap.sty)) (D:\CTEX\MiKTeX\tex\latex\misc\etex.sty) (D:\CTEX\MiKTeX\tex\latex\graphics\color.sty (D:\CTEX\MiKTeX\tex\latex\00miktex\color.cfg) (D:\CTEX\MiKTeX\tex\latex\pdftex-def\pdftex.def (D:\CTEX\MiKTeX\tex\generic\oberdiek\infwarerr.sty) (D:\CTEX\MiKTeX\tex\generic\oberdiek\ltxcmds.sty))) (D:\CTEX\MiKTeX\tex\latex\graphics\graphics.sty (D:\CTEX\MiKTeX\tex\latex\graphics\trig.sty) (D:\CTEX\MiKTeX\tex\latex\00miktex\graphics.cfg)) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3basics.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3expan.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3tl.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3seq.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3int.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3quark.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3prg.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3clist.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3token.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3prop.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3msg.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3file.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3skip.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3keys.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3fp.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3box.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3coffins.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3color.sty) (D:\CTEX\MiKTeX\tex\latex\l3kernel\l3luatex.sty)) (D:\CTEX\MiKTeX\tex\latex\etoolbox\etoolbox.sty) (D:\CTEX\MiKTeX\tex\generic\oberdiek\ifpdf.sty) (D:\CTEX\MiKTeX\tex\generic\ifxetex\ifxetex.sty) (D:\CTEX\MiKTeX\tex\latex\graphics\keyval.sty) (D:\CTEX\MiKTeX\tex\latex\tools\indentfirst.sty) (D:\CTEX\MiKTeX\tex\latex\base\fix-cm.sty (D:\CTEX\MiKTeX\tex\latex\base\ts1enc.def)) (D:\CTEX\MiKTeX\tex\latex\ctex\engine\ctex-cjk-engine.def (D:\CTEX\MiKTeX\tex\latex\cjk\CJK.sty (D:\CTEX\MiKTeX\tex\latex\cjk\mule\MULEenc.sty) (D:\CTEX\MiKTeX\tex\latex\cjk\CJK.enc)) (D:\CTEX\CTeX\tex\latex\CJKpunct\CJKpunct.sty (D:\CTEX\CTeX\tex\latex\CJKpunct\CJKpunct.spa)) (D:\CTEX\MiKTeX\tex\latex\ctex\engine\ctex-cjk-common.def) (D:\CTEX\MiKTeX\tex\latex\ctex\fontset\ctex-cjk-winfonts.def (D:\CTEX\MiKTeX\tex\generic\zhmetrics\zhwinfonts.tex (D:\CTEX\MiKTeX\tex\generic\oberdiek\ifpdf.sty){D:/CTEX/UserData/pdftex/config/ pdftex.map{Unicode.sfd}{UGBK.sfd}})))) (D:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-caption.def) (D:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-class.def) (D:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-article.def)) (D:\CTEX\MiKTeX\tex\latex\ctex\def\ctex-gbk.def) (D:\CTEX\MiKTeX\tex\latex\ctex\cfg\ctexcap.cfg (D:\CTEX\MiKTeX\tex\latex\ctex\cfg\ctexcap-gbk.cfg)) (D:\CTEX\MiKTeX\tex\latex\ctex\cfg\ctex.cfg) (D:\CTEX\MiKTeX\tex\latex\fancyhdr\fancyhdr.sty) (D:\CTEX\MiKTeX\tex\latex\tools\array.sty) (D:\CTEX\MiKTeX\tex\latex\ams\math\amsmath.sty For additional information on amsmath, use the `?' option. (D:\CTEX\MiKTeX\tex\latex\ams\math\amstext.sty (D:\CTEX\MiKTeX\tex\latex\ams\math\amsgen.sty)) (D:\CTEX\MiKTeX\tex\latex\ams\math\amsbsy.sty) (D:\CTEX\MiKTeX\tex\latex\ams\math\amsopn.sty)) (D:\CTEX\MiKTeX\tex\latex\amsfonts\amsfonts.sty) (D:\CTEX\MiKTeX\tex\latex\amsfonts\amssymb.sty) (D:\CTEX\MiKTeX\tex\latex\graphics\graphicx.sty) (D:\CTEX\MiKTeX\tex\latex\subfigure\subfigure.sty **************************************** * Local config file subfigure.cfg used * **************************************** (D:\CTEX\MiKTeX\tex\latex\subfigure\subfigure.cfg)) (D:\CTEX\MiKTeX\tex\latex\tools\bm.sty) (D:\CTEX\MiKTeX\tex\latex\tools\multicol.sty) (D:\A研究生1111\研究生\小论文\璐萍师姐\20221010004Latex源文件\p icins.sty Option `picins' Version 3.0 Sep. 1992, TH Darmstadt/HRZ) (D:\CTEX\MiKTeX\tex\latex\abstract\abstract.sty) (D:\CTEX\MiKTeX\tex\latex\ams\classes\amsthm.sty) (D:\CTEX\MiKTeX\tex\latex\booktabs\booktabs.sty) (D:\CTEX\MiKTeX\tex\latex\titlesec\titlesec.sty) (D:\CTEX\MiKTeX\tex\latex\multirow\multirow.sty) (D:\CTEX\MiKTeX\tex\latex\psnfss\times.sty) (D:\CTEX\MiKTeX\tex\latex\wasysym\wasysym.sty) (D:\CTEX\MiKTeX\tex\latex\oberdiek\epstopdf.sty (D:\CTEX\MiKTeX\tex\latex\oberdiek\epstopdf-base.sty (D:\CTEX\MiKTeX\tex\latex\oberdiek\grfext.sty (D:\CTEX\MiKTeX\tex\generic\oberdiek\kvdefinekeys.sty)) (D:\CTEX\MiKTeX\tex\latex\oberdiek\kvoptions.sty (D:\CTEX\MiKTeX\tex\generic\oberdiek\kvsetkeys.sty (D:\CTEX\MiKTeX\tex\generic\oberdiek\etexcmds.sty (D:\CTEX\MiKTeX\tex\generic\oberdiek\ifluatex.sty)))) (D:\CTEX\MiKTeX\tex\generic\oberdiek\pdftexcmds.sty))) (D:\CTEX\MiKTeX\tex\latex\natbib\natbib.sty) (D:\CTEX\MiKTeX\tex\latex\caption\caption.sty (D:\CTEX\MiKTeX\tex\latex\caption\caption3.sty) Package caption Warning: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. See the caption package documentation for explanation. ) (D:\CTEX\MiKTeX\tex\latex\lettrine\lettrine.sty Loading lettrine.cfg (D:\CTEX\MiKTeX\tex\latex\lettrine\lettrine.cfg)) (D:\CTEX\MiKTeX\tex\latex\cjk\standard.bdg) (D:\CTEX\MiKTeX\tex\latex\cjk\extended.enc) (D:\CTEX\MiKTeX\tex\latex\cjk\extended.chr) LaTeX Warning: Unused global option(s): [10.5pt]. ("D:\A研究生1111\研究生\小论文\璐萍师姐\20221010004Latex源文件\ JSE Template-to author.aux") (D:\CTEX\MiKTeX\tex\latex\psnfss\ot1ptm.fd) (D:\CTEX\MiKTeX\tex\context\base\supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (D:\CTEX\MiKTeX\tex\latex\cjk\GB\GB.cpx ! LaTeX Error: \figureformat undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.49 \renewcommand\figureformat {\prefigurename~\thefigure~\postfigurename} ? Process has been terminated ...
06-11
Command Line: bibtex.exe "整理" Startup Folder: D:\Users\orange\Desktop\整理稿最最新版 This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary file: .aux I found no \bibdata command---while reading file .aux I found no \bibstyle command---while reading file .aux (There were 2 error messages) Command Line: texify.exe --pdf --tex-option=--interaction=errorstopmode --tex-option=--synctex=1 "D:\Users\orange\Desktop\整理稿最最新版\整理.tex" Startup Folder: D:\Users\orange\Desktop\整理稿最最新版 This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) entering extended mode (D:/Users/orange/Desktop/整理稿最最新版/整理.tex LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for loaded. ("D:\program files\Latex\CTEX\CTeX\tex\latex\cct\cctart.cls" Document Class: cctart 2004/10/14 Derived from the `article' class ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\base\size10.clo")) ("D:\program files\Latex\CTEX\CTeX\tex\latex\cct\cctbase.sty" ("D:\program files\Latex\CTEX\CTeX\tex\latex\cct\CCT.sty" 0.61803 [2009/11/20] ("D:\program files\Latex\CTEX\CTeX\tex\latex\cct\cchead.sty") ("D:\program files\Latex\CTEX\CTeX\tex\latex\cct\CCT.cfg") ("D:\program files\Latex\CTEX\CTeX\tex\latex\cct\GBKkern.cfg") ("D:\program files\Latex\CTEX\CTeX\tex\latex\CJK\GB\c19song.fd") (\ziti{A}->gbksong)))) ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\ams\math\amsmath.sty" For additional information on amsmath, use the `?' option. ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\ams\math\amstext.sty" ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\ams\math\amsgen.sty")) ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\ams\math\amsbsy.sty") ("D:\program files\Latex\CTEX\MiKTeX\tex\latex\ams\math\amsopn.sty")) ("D:\program files\Latex\CTEX\CTeX\tex\latex\clatex\headrule.sty") ("D:\program files\Latex\CTEX\CTeX\tex\latex\clatex\vatola.sty") ("D:\program files
最新发布
11-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值