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?

【Tex】documentclassで「File 'plistings.sty' not found.」となったときの対処法

Posted at

問題

以下のコードを書いて,{ltjsarticle}という文章クラスを適応しようとした.

\documentclass[a4paper,12pt]{ltjsarticle} % 文章クラスとオプション

しかし,以下の画像のように,「File 'plistings.sty' not found.」というエラーが発生した.

image.png

解決法

1.'plistings.sty'のインストール

'plistings.sty'は標準的なパッケージではないため,手動でインストールする必要がある.

以下のリンクで配布されているため,ダウンロードする.

image.png

2.ファイルの配置

ダウンロードした'plistings.sty'ファイルを以下のいずれかのディレクトリに配置する.

・プロジェクトフォルダ(.texファイルと同じディレクトリ)

・TeXディストリビューションのローカルディレクトリ(すべてのTexファイルで使えるようになる)

 <TeXディストリビューションのパス>/texmf-local/tex/latex/local/  %ローカルディレクトリ

3.インデックスの更新

TeX LiveやW32TeXなどを使用している場合、インデックスを更新する必要があります。以下のコマンドを実行してください

mktexlsr

4. LaTeXコード内で確認

正常にインストールされた場合、以下のようなコードでエラーが解消されます。

\usepackage{plistings}

参考文献

link : https://github.com/h-kitagawa/plistings

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?