直到几天前,我对导入软件包的所有了解都是基于使用\usepackage{}
最终使用的发行版安装的软件包。现在,我对这一切的工作原理感到有点困惑。
我正在尝试使用两个包:psgo
和igo
,它们均旨在创建围棋(棋盘游戏)图表。
该psgo
软件包似乎附带 TeX Live,但我不确定。我已将它们“安装”在本地 — 实际上我只是从镜像中下载它们并将它们放在我的模板项目。现在显然\usepackage{psgo}
似乎正在发挥作用。
对于igo
,我做了类似的事情,尝试了许多不同的变化:
\documentclass{article}
\usepackage{./igo/igo}
\begin{document}
\white{b4,c4,d4,e4,f4,g3,g2,c3}
\black{b3,b2,c2,d3,e3,f3,f2}
\begin{center}
\shortstack{\showgoban\\White to kill}
\end{center}
\end{document}
然而,当我尝试编译东西时,它会抱怨字体:
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./src/igo.template.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/size10.clo)) (./igo/igo.sty
++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++ igo.sty - January 2007 - 0.62 +++++++++++
+ A TeX package to manipulate Go games and positions +
++++++++++++++++++++++++++++++++++++++++++++++++++++++
(/usr/local/texlive/2023/texmf-dist/tex/generic/eijkhout/repeat.tex
Loading loop macro, version 0.93a)
kpathsea: Running mktextfm igo10
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input igo10
This is METAFONT, Version 2.71828182 (TeX Live 2023) (preloaded base=mf)
kpathsea: Running mktexmf igo10
! I can't find file `igo10'.
<*> ...=ljfour; mag:=1; ; nonstopmode; input igo10
Please type another input file name
! Emergency stop.
<*> ...=ljfour; mag:=1; ; nonstopmode; input igo10
Transcript written on mfput.log.
grep: igo10.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input igo10' failed to make igo10.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \igo@font=igo10 at 10.0pt not loadable: Metric (TFM) file not found.
<to be read again>
\global
l.175 \smallgoban
?
导入字体不应该在包内部完成吗?igo
包里甚至还附带一个包含字体的文件夹。
无论如何,有没有办法让我“从外部”解决这个问题?我真的正确理解了这个包安装问题吗?