0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

alpineでpLaTeXを使えるようにする

Last updated at Posted at 2024-02-07

概要

alpine linux上でpLaTeXを使えるようにする手順。ディストリビューションとしてTex Liveを利用する。

インストール

タイムゾーンの設定。

# apk add --no-cache tzdata
# cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
# apk del tzdata

依存パッケージのインストール。

# apk add --no-cache perl tar wget xz fontconfig

Tex Liveのインストール。

# cd /var/tmp
# cat <<EOF >texlive.profile
selected_scheme scheme-basic
tlpdbopt_install_docfiles 0
tlpdbopt_install_srcfiles 0
EOF

# wget -nv https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
# tar -xzf ./install-tl-unx.tar.gz --strip-components=1
# ./install-tl --profile=texlive.profile
# /usr/local/texlive/2025/bin/x86_64-linuxmusl/tlmgr install \
  collection-fontsrecommended collection-langjapanese collection-latexextra latexmk

動作確認

# cat <<EOF >test.tex
\documentclass{jsarticle}
\begin{document}
日本語のテスト
\end{document}
EOF

# /usr/local/texlive/2025/bin/x86_64-linuxmusl/platex test.tex
# /usr/local/texlive/2025/bin/x86_64-linuxmust/dvipdfm test.dvi

test.pdfができる。おしまい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?