我在我的苹果电脑上使用MacTex,并尝试将我们Texmaker作为我的编辑器。
然而,当我在Texmaker中输入\usepackage{algorithms}时,它总是警告我找不到algorithms.sty。我也在Texshop中尝试过,错误是相同的。
我首先检查了TexLive实用程序,以确保算法包已安装。它会给出肯定的答案。然后,我尝试将algorithms.sty从/usr/local/texlive/2015/texmf-dist/tex/latex/algorithms文件夹复制到/usr/local/texlive/2015/texmf-dist/tex/latex/base文件夹,并执行texhash进行更新。仍然不能工作,并得到相同的错误。
有人能帮我一下吗?任何帮助都是非常感谢的。
发布于 2015-08-30 11:50:31
algorithms实际上是一个捆绑包,提供了两个独立的*包“:
algorithm提供algorithm float和与float相关的附件。
algorithmic提供算法pseudo-code.布局的环境
因此,要使用algorithms,您需要以下两种或其中之一
\usepackage{algorithm}
\usepackage{algorithmic}https://stackoverflow.com/questions/32288251
复制相似问题