この記事を作った動機
lualatex でframedというパッケージを使おうとしたところ、framedに関するパッケージがないと言われ、対応に手間取ったので記録したい。
エラーが出たときにインストールしていたTexLiveのパッケージ
local/texlive-basic 2025.2-2 (texlive)
TeX Live - Essential programs and files
local/texlive-bin 2025.2-2
TeX Live binaries
local/texlive-langcjk 2025.2-2 (texlive-lang)
TeX Live - Chinese/Japanese/Korean (base)
local/texlive-langjapanese 2025.2-2 (texlive-lang)
TeX Live - Japanese
local/texlive-latex 2025.2-2 (texlive)
TeX Live - LaTeX fundamental packages
local/texlive-latexrecommended 2025.2-2 (texlive)
TeX Live - LaTeX recommended packages
local/texlive-luatex 2025.2-2 (texlive)
TeX Live - LuaTeX packages
local/texlive-plaingeneric 2025.2-2 (texlive)
TeX Live - Plain (La)TeX packages
問題があるとき
少なくとも、Arch linux環境においては、texlive-full以外の最小構成で TexLive をインストールしていると、パッケージがそろっていないことがあり、以下のようなエラーになることがある。
! LaTeX Error: File `framed.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.11
731 words of node memory still in use:
6 hlist, 4 rule, 1 dir, 3 kern, 1 glyph, 116 attribute, 49 glue_spec, 18 att
ribute_list, 1 write, 8 user_defined nodes
avail lists: 1:4,2:122,3:3,4:4,5:1,6:1,7:7,9:8
! ==> Fatal error occurred, no output PDF file produced!
やったこと
パッケージが足りないことが分かったため、texlive-latexextraをインストールした。texlive-fullはあまりに大きすぎて更新やインストールに時間がかかりすぎるため、当初はそれのインストールを試みていたが、中断した。
yay -S texlive-latexextra
# pacman -S texlive-latexextra
参考にしたサイトとか
- Arch Linux - texlive-latexextra 2025.2-2 (any)
https://archlinux.org/packages/extra/any/texlive-latexextra/ (2025年11月19日) - texlive - framed.sty not found after switching from OS X to Linux - TeX - LaTeX Stack Exchange
https://tex.stackexchange.com/questions/163423/framed-sty-not-found-after-switching-from-os-x-to-linux (2025年11月19日) - AUR (en) - texlive-full
https://aur.archlinux.org/packages/texlive-full (2025年11月20日)