![latexmk はどのようにしてパッケージファイルを見つけるのでしょうか?](https://rvso.com/image/327805/latexmk%20%E3%81%AF%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%81%97%E3%81%A6%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E8%A6%8B%E3%81%A4%E3%81%91%E3%82%8B%E3%81%AE%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F.png)
texlive-latexextra
パッケージを使用するために、Arch Linux に TexLive を と一緒にインストールしましたtodonotes
が、ファイルlatexmk
が見つかりませんtodonotes.sty
。次のように出力されます。
$ ラテックスmk --
pdf latex-preview.tex
Latexmk: This is Latexmk, John Collins, 5 February 2015, version: 4.43a.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
Non-existent destination files:
'latex-preview.pdf'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -recorder "latex-preview.tex"'
------------
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Arch Linux) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./latex-preview.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
! LaTeX Error: File `todonote.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
手動で見つけました。 にあります/usr/share/texmf-dist/tex/latex/todonotes/
。
latexmk
何らかの理由で、このフォルダーはsty ファイルの検索場所に追加されていません。
では、latexmk
sty ファイルをどのように検索し、検索するフォルダーをどのように追加するのでしょうか?
実行するとtexhash
次のようになります:
texhash: Updating /etc/texmf/ls-R...
texhash: Updating /usr/share/texmf-dist/ls-R...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.
しかし、その後または再起動後には動作しません。
texhash
は、監視していると主張していますls -R /usr/share/texmf-dist/
。これを考慮すると、そこに見つかるはずです。
$ ls -R /usr/share/texmf-dist/ | grep todonotes
fixmetodonotes
todonotes
/usr/share/texmf-dist/tex/latex/fixmetodonotes:
fixmetodonotes.sty
/usr/share/texmf-dist/tex/latex/todonotes:
todonotes.sty
luatodonotes
/usr/share/texmf-dist/tex/lualatex/luatodonotes:
luatodonotes.lua
luatodonotes.sty
todonotes-xetex-bidi.def
そして
$ kpsewhich todonotes.sty
/usr/share/texmf-dist/tex/latex/todonotes/todonotes.sty
答え1
! LaTeX Error: File `todonote.sty' not found.
そして
/usr/share/texmf-dist/tex/latex/todonotes:
todonotes.sty
一方には s があり、もう一方には s がありません。