Debianに「vanilla」TeX Liveをインストールしましたが、aptはまだ「texlive-」パッケージのインストールを試みます。

Debianに「vanilla」TeX Liveをインストールしましたが、aptはまだ「texlive-」パッケージのインストールを試みます。

TeX Live 2022をインストールしてアップグレードしました。TeX Live 2023以下は私が行ったステップのリストです。ありがとうございます。テキサス:

  1. 以前のアンインストール
sudo apt-get purge texlive*
sudo rm -rf /usr/local/texlive/*
sudo rm -rf ~/.texlive*
sudo rm -rf /usr/local/share/texmf
sudo rm -rf /var/lib/texmf
sudo rm -rf /etc/texmf
sudo apt-get remove tex-common --purge
find -L /usr/local/bin/ -lname /usr/local/texlive/*/bin/* | xargs -r rm
sudo rm -rf /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache
  1. 依存関係
sudo apt install wget perl-tk
  1. スクリプトのダウンロード
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xf install-tl-unx.tar.gz
cd install-tl- #(Press TAB to autocomplete)
  1. スクリプトの実行
sudo ./install-tl
  1. 環境変数の設定
export PATH=/usr/local/texlive/2023/bin/x86_64-linux:$PATH
export MANPATH=$MANPATH:/usr/local/texlive/2023/texmf-dist/doc/man
export INFOPATH=$INFOPATH:/usr/local/texlive/2023/texmf-dist/doc/info
  1. インストールの確認
which tex
  1. トリックパッケージ
sudo apt install equivs --no-install-recommends freeglut3
mkdir -p /tmp/tl-equivs && cd /tmp/tl-equivs
equivs-control texlive-local
  1. texlive-local 編集
wget -O texlive-local https://tug.org/texlive/files/debian-equivs-2022-ex.txt

この段階では、2022年のサンプルファイル年を2023年に変更します。したがって、次のようになります。

Section: misc
Priority: optional
Standards-Version: 4.1.4

Package: texlive-local
Version: 2023.99999999-1
Maintainer: you <[email protected]>
Provides: chktex, biblatex, biblatex-dw, cm-super, cm-super-minimal, context, 
 dvidvi, dvipng, feynmf, fragmaster, jadetex, lacheck, latex-beamer, 
 latex-cjk-all, latex-cjk-chinese, latex-cjk-chinese-arphic-bkai00mp, 
 latex-cjk-chinese-arphic-bsmi00lp, latex-cjk-chinese-arphic-gbsn00lp, 
 latex-cjk-chinese-arphic-gkai00mp, latex-cjk-common, latex-cjk-japanese, 
 latex-cjk-japanese-wadalab, latex-cjk-korean, latex-cjk-thai, latexdiff, 
 latexmk, latex-sanskrit, latex-xcolor, lcdf-typetools, lmodern, luatex, 
 musixtex, passivetex, pgf, preview-latex-style, prosper, ps2eps, psutils, 
 purifyeps, t1utils, tex4ht, tex4ht-common, tex-gyre, texlive, texlive-base, 
 texlive-bibtex-extra, texlive-binaries, texlive-common, texlive-extra-utils,
 texlive-fonts-extra, texlive-fonts-extra-doc, texlive-fonts-recommended,
 texlive-fonts-recommended-doc, texlive-font-utils, texlive-formats-extra,
 texlive-games, texlive-generic-extra, texlive-generic-recommended,
 texlive-humanities, texlive-humanities-doc, texlive-lang-african,
 texlive-lang-all, texlive-lang-arabic, texlive-lang-cjk, texlive-lang-cyrillic,
 texlive-lang-czechslovak, texlive-lang-english, texlive-lang-european,
 texlive-lang-japanese, texlive-lang-chinese, texlive-lang-korean,
 texlive-lang-french, texlive-lang-german, texlive-lang-greek, 
 texlive-lang-indic, texlive-lang-italian, texlive-lang-other, 
 texlive-lang-polish, texlive-lang-portuguese, texlive-lang-spanish,
 texlive-latex-base, texlive-latex-base-doc, texlive-latex-extra, 
 texlive-latex-extra-doc, texlive-latex-recommended, 
 texlive-latex-recommended-doc, texlive-luatex, texlive-math-extra, 
 texlive-metapost, texlive-metapost-doc, texlive-music,
 texlive-omega, texlive-pictures, texlive-pictures-doc, texlive-plain-extra,
 texlive-plain-generic,
 texlive-pstricks, texlive-pstricks-doc, texlive-publishers,
 texlive-publishers-doc, texlive-science, texlive-science-doc, texlive-xetex,
 thailatex, tipa, tipa-doc, xindy, xindy-rules, xmltex, asymptote, texinfo
Depends: freeglut3
Architecture: all
Description: My local installation of TeX Live 2023.
 A full "vanilla" TeX Live 2023
 http://tug.org/texlive/debian#vanilla
  1. パッケージのビルドとインストール
equivs-build texlive-local
sudo dpkg -i texlive-local_ #(TAB)
sudo apt install -f
  1. TeXLiveアップデート
sudo tlmgr update --all
sudo tlmgr --gui

それから試してみましたSageTexが、TexWorksコンパイル中にエラーが発生しましたsagetex.sty not found。 Tex Liveに付属していると思いました。ターミナルに行ってきましたsudo apt install sagetex。驚いたことに、texlive-プレフィックスパッケージをインストールしようとしました。

sudo apt install sagetex

The following NEW packages will be installed:

dvisvgm libptexenc1 libteckit0 libtexlua53 libtexluajit2 lmodern preview-latex-style ps2eps python3-sagetex tex-gyre texlive-base texlive-binaries texlive-font-utils texlive-fonts-recommended texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-plain-generic tipa

これらのパッケージは上記のファイルに明示的に言及されていますが、なぜaptがまだそのパッケージをインポートしようとしているのか混乱しています。これを無視してインストールするとSageTeX設定が中断されますか?台無しになりましたか?再インストールする必要がありますかTeX Live 2023?この場合、正しい作業方法は何ですかSageTeX?では、コンパイルされた一般LaTeXファイルを使用してもpdfLaTeX問題ありませんTeXWorks

これは私のSageTexコンパイルスクリプトですTexWorks

#!/bin/sh
pdflatex "${1}.tex"
sage "${1}.sagetex.sage"
pdflatex "${1}.tex"

ベストアンサー1

おすすめ記事