我一直在尝试使用 Manim,它用来编译 LaTex 公式的软件包之一是 calligra。我安装 LaTex 所需的其他 Manim 软件包时没有遇到任何问题,但LaTeX Error: File 'calligra.sty' not found
运行时编译器仍然提示错误pdflatex file_name.tex
(下面显示了触发错误的示例文件)。
\documentclass[preview]{standalone}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dsfont}
\usepackage{setspace}
\usepackage{tipa}
\usepackage{relsize}
\usepackage{textcomp}
\usepackage{mathrsfs}
\usepackage{calligra}
\usepackage{wasysym}
\usepackage{ragged2e}
\usepackage{physics}
\usepackage{xcolor}
\usepackage{microtype}
\DisableLigatures{encoding = *, family = * }
\linespread{1}
\begin{document}
\begin{align*}
x^2
\end{align*}
\end{document}
Tex-live-utility 说该包已安装(我已卸载并重新安装了几次)。find <harddrive> -name "calligra.sty"
未显示任何文件(即 calligra.sty 不仅被放入了错误的目录中,而且它根本没有被创建过)。我找到的唯一一个“calligra.sty”文件的下载地址是:http://lcd-www.colorado.edu/~axbr9098/tmp/licentiate/calligra.sty 我不知道它是否正确,而且使用它似乎确实不起作用。
calligra 包不再受支持吗?
这是用 BasicTex 完成的,pdfTeX 版本3.141592653-2.6-1.40.22在 mac os 上11.5.2
答案1
如果我这样做tlmgr info calligra --list
,我就会得到
tlmgr info calligra --list
package: calligra
category: Package
shortdesc: Calligraphic font
longdesc: A calligraphic font in the handwriting style of the author,
Peter Vanroose. The font is supplied as Metafont source.
LaTeX support of the font is provided in the calligra package
in the fundus bundle.
installed: Yes
revision: 15878
sizes: doc: 105k, run: 305k
relocatable: No
cat-license: other-free
cat-topics: font font-calligraphic font-mf
cat-related: calligra-type1
collection: collection-fontsextra
Included files, by type:
run files:
texmf-dist/fonts/source/public/calligra/callig15.mf
texmf-dist/fonts/source/public/calligra/calligra.mf
texmf-dist/fonts/tfm/public/calligra/callig15.tfm
doc files:
texmf-dist/doc/latex/calligra/README
texmf-dist/doc/latex/calligra/testfont.pdf details="Font table"
并且该longdesc
字段(为了便于阅读,在此处进行了编辑)非常清晰。
做tlmgr info fundus
收益
tlmgr: cannot find package fundus, searching for other matches:
Packages containing `fundus' in their title/description:
calligra - Calligraphic font
fundus-calligra - Support for the calligra font in LaTeX documents
fundus-cyr - Support for Washington University Cyrillic fonts
fundus-sueterlin - Sutterlin
最后tlmgr info fundus-calligra --list
得到
package: fundus-calligra
category: Package
shortdesc: Support for the calligra font in LaTeX documents
longdesc: The package offers support for the calligra handwriting font,
in LaTeX documents. The package is part of the fundus bundle.
installed: Yes
revision: 26018
sizes: src: 13k, doc: 197k, run: 5k
relocatable: No
cat-version: 1.2
cat-license: other-free
cat-topics: font-supp
collection: collection-latexextra
Included files, by type:
run files:
texmf-dist/tex/latex/fundus-calligra/calligra.sty
source files:
texmf-dist/source/latex/fundus-calligra/calligra.dtx
texmf-dist/source/latex/fundus-calligra/calligra.ins
doc files:
texmf-dist/doc/latex/fundus-calligra/calligra.pdf details="Package documentation"
因此需要安装calligra
和。fundus-calligra