LoginSignup
1
4

More than 3 years have passed since last update.

LaTeXでstyファイルをインストールする

Last updated at Posted at 2020-08-16

備忘録です。siunitx.styをインストールする例です。

styファイルが置かれているディレクトリを見つける

地味に大変でした
※環境によって違います

Windows
c:/texlive/{TeXの西暦}/texmf-dist/tex/latex
Linux(Ubuntu)
/usr/share/texlive/texmf-dist/tex/latex

それっぽいディレクトリを見つける / 更にディレクトリを作成する

Latexディレクトリ内にいくつもディレクトリがあるので、その中から適切なディレクトリを選んでください。
なければ作成します。
Linuxの場合、

$ cd /usr/share/texlive/texmf-dist/tex/latex
$ cd siunitx
もしsiunitxディレクトリがなければ
$ mkdir siunitx
$ cd siunitx

そこでstyファイルをダウンロードする

$ wget https://www.sys.kth.se/docs/texlive/texmf-dist/tex/latex/siunitx/siunitx.sty

インストール

Windows
mktexlsr
Linux
sudo mktexlsr
1
4
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
1
4