gpt4 book ai didi

macos - 如何在 OSX 上安装 LaTeX .sty 文件?

转载 作者:行者123 更新时间:2023-12-03 05:45:59 28 4
gpt4 key购买 nike

我设置了一个 LaTeX 项目:

tex/
- documents/
- some_file.tex
- support/
- todonotes.sty

其中some_file.tex使用todonotes:

\usepackage[colorinlistoftodos,textwidth=0.9\marginparwidth]{todonotes}

但是当我尝试在 TextMate 中构建 PDF 时,出现“LaTeX 错误:未找到文件 `todonotes.sty'”。如何向 LaTex 或 TextMate 告知我的 .sty 文件?

稍后

具体来说,我使用的是 MacPorts 中的 tetex,不过根据目前的答案,我可能会尝试其他发行版。

最佳答案

在 Mac OS X (Snow Leopard 10.6.7) 中,将 .sty 文件放入

/usr/local/texlive/2010basic/texmf-dist/tex/latex/base/

然后,运行texhash命令。不要忘记保持 root 用户身份(例如 sudo -s )

关于macos - 如何在 OSX 上安装 LaTeX .sty 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1390828/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com