
我在 Windows 上使用 TeXLive 2023。我已經footmisc
安裝了該軟體包,並像這樣使用它:
\usepackage[symbol,perpage]{footmisc}
好吧,在文檔編譯過程中,我得到:
File `perpage.sty' not found. \MakePerPage
所以,我想也許我應該嘗試安裝該perpage
軟體包 - 但 TeXLive 中沒有這樣的軟體包。
觸發錯誤的行是 的第 477 行footmisc.sty
,其中表示:
\MakePerPage{footnote}
還是沒有太大幫助。現在,我假設如果footmisc
需要的話perpage.sty
- 它應該包含該文件作為安裝的一部分 - 但它丟失了。為什麼我會收到此錯誤,我該怎麼辦?
筆記:
- 我知道如何安裝 TeXLive 和單獨的 TeXLive 軟體包,請停止將此標記為執行此操作的問題的重複項。
答案1
現在,我假設如果 footmisc 需要 perpage.sty - 它應該包含該檔案作為安裝的一部分 - 但它丟失了。為什麼我會收到此錯誤,我該怎麼辦?
該footmisc
軟體包僅perpage
在某些條件下需要,而不是預設需要。因此bigfoot
是 的軟依賴footmisc
:
https://tug.org/svn/texlive/trunk/Master/tlpkg/tlpsrc/footmisc.tlpsrc?revision=69890&view=markup
截至 2024 年 2 月,texlive 僅考慮硬依賴。它們要么由包維護者指定,要么由用戶貢獻,因此它們也遠未完成。使用者必須自行安裝軟依賴項。看https://tug.org/texlive/pkgcontrib.html#deps有關包依賴性的更多資訊。
(有傳言說有些人正在研究一種更自動化的方式來處理依賴關係,因此這種情況將來可能會改變)
答案2
這是 TeXLive 錯誤的結果(到目前為止,Karl Berry 已報告並修復了該錯誤;但顯然,該修復可能已被撤銷)。事實上, footmisc
on的依賴性perpage.sty
應該導致perpage.sty
作為 的一部分安裝footmisc
,或者應該在footmisc
和另一個提供 的套件之間創建包依賴關係perpage.sty
。
如中所述這個答案,您可以在其他包中搜尋該文件。這應該會導致:
bidi:
texmf-dist/tex/xelatex/bidi/bidi-perpage.sty
bigfoot:
texmf-dist/tex/latex/bigfoot/perpage.sty
lwarp:
texmf-dist/tex/latex/lwarp/lwarp-perpage.sty
zref:
texmf-dist/tex/latex/zref/zref-perpage.sty
我們需要的包是bigfoot
.所以就安裝它,例如通過使用tlmgr install bigfoot
) -footmisc
現在將設法找到其丟失的文件。
感謝@UlrikeFischer 為我指出了處理此類情況的正確方法。