Top/article/Putting-PNG-and-JPEG-on-LaTeX-with-extractbb-to-extract-bounding-box
English | Japanese
English | Japanese

Menu

  • Top
  • Akihiko Yamaguchi 山口 明彦
  • Project プロジェクト
  • Text テキスト
  • Recent articles 最近の記事
  • Articles 記事一覧 (a to z)
  • Search 検索

Tags タグ †

  • [c++][bash][python][latex][php]
  • [linux][windows][mac][android]
  • [math][algorithm][idea][trick]
  • [liboctave][opencv][git][ros]
  • [setting][bug][general]
↑

Recent articles 最近の記事 †

2019-07-02
  • article/Display-Unix-Time
  • article/Synchronize-Linux-Time-to-Remote
2018-09-27
  • article/python-multimode-singleton
2018-09-02
  • article/rosinstall-git-default-remote
2017-07-28
  • article/SubMenu
2017-03-05
  • article/Import-a-different-version-of-OpenCV-in-Python
2015-08-17
  • article/DRC-finals-2015
2015-01-05
  • article/Upgrade-Android-to-Lollipop
2015-01-01
  • article/Kernel-panic-of-Linux-when-using-Xtion
  • article/Do-not-skip-freeing-data-when-using-tri-mesh-in-ODE
Access: 5/3092 - Admin
These search terms have been highlighted:[linux]

Putting PNG and JPEG on LaTeX with extractbb to extract the bounding box

LaTeX で PNG や JPEG を読み込むには extractbb でバウンディングボックスを抽出する

[latex][trick][linux]
2013-03-12

よく忘れるので防備録的な感じでメモ.

LaTeX で PNG や JPEG を単純に読み込むと,no BoundingBox とかエラーが出るので,バウンディングボックスを指定してやる必要がある.そのためのコマンドに ebb とか extractbb があるが,extractbb を使おう(解像度が高い).ファイルに出力すると,ファイルが増えて邪魔なので,extractbb に -O オプションをつけて標準出力に出力して,includegraphics の bb オプションでバウンディングボックスを指定する.

バウンディングボックスの抽出:

extractbb -O FILE_NAME

(extractbb の代わりに ebb を使うことはお薦めしない)

出力は以下のような感じ:

%%Title: ./FILE_NAME
%%Creator: extractbb 20090708
%%BoundingBox: 0 0 720 540
%%HiResBoundingBox: 0.000000 0.000000 719.940485 539.955364
%%CreationDate: Tue Mar 12 16:40:11 2013

で,HiResBoundingBox: 以降をコピーして,includegraphics の bb オプションに指定する.

\includegraphics[bb=0.000000 0.000000 719.940485 539.955364,width=1.0\hsize] {FILE_NAME}

width は適当に.




Last-modified:2015-01-01 (Thu) 09:35:05 (3833d)
Site admin: Akihiko Yamaguchi.
Written by: Akihiko Yamaguchi.
System: PukiWiki 1.5.0. PHP 5.2.17. HTML conversion time: 0.007 sec.