LoginSignup
0
0

More than 5 years have passed since last update.

Beamerで画像挿入する時、図がずれる問題

Last updated at Posted at 2017-10-07

プレゼン用スライドをBeamerで作っていたところ、図がなんでかずれる。
\centeringで中央揃えしてもずれる。
上下方向もよくわからん空白が入る。

という感じで困っていたんですが、原因がわかりました。
参考にしたのはこちら↓
日本人のための LaTeX タブー集 ~画像読込編~

これのタブー②を見ると

\includegraphics[bb=0 0 800 600]{sample.jpg}

のように、bbオプションを設定していたのが原因のよう。
extractbbでxbbファイルを作り、

$ extractbb sample.jpg

bbオプションを消したら見事に解決しました。

\includegraphics{sample.jpg}

めでたしめでたし。

いちいちxbbファイル作るのも面倒だけど、どうにかならないかなあ…。

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