%20%E8%BB%9F%E9%AB%94%E5%8C%85.png)
直到幾天前,我所有關於導入包的知識都是基於使用\usepackage{}
您最終使用的任何發行版安裝的套件。現在,我對這一切是如何運作的感到有點困惑。
我正在嘗試使用 2 個包: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
軟體包甚至還附帶一個包含字體的資料夾。
不管怎樣,我有辦法「從外部」解決這個問題嗎?我真的正確理解這個軟體包安裝問題嗎?