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?

LaTeXで扱う画像ファイル形式と余白処理について

Posted at

はじめに

本稿では、LaTeXで図として埋め込む画像について述べる。

画像ファイル形式

LaTeXでは、PDF形式の画像ファイルを最もきれいに埋め込める。
そのため、図の作成にはPDFを用いるのが推奨される。
PowerPointやExcel、Illustratorなどで作成した図をPDF形式で書き出せば、解像度の劣化がなく、拡大・縮小にも強い。

画像のクロップ

PowerPointなどで作成した図をPDF形式でエクスポートすると、不要な余白が含まれることがある。この場合、LaTeXに付属するpdfcropコマンドを使うと、自動的に余白を削除できる。

使用例

以下のようにターミナルで実行する。

pdfcrop figure.pdf

すると、figure-crop.pdfという余白のないファイルが生成される。
これをLaTeXの\includegraphicsで挿入すれば、きれいに図を配置できる。

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?