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?

More than 1 year has passed since last update.

\includegraphicsで画像を入れたときエラーが出た

Posted at

macのtexshopを使ってプリントを作成しているときに、画像を入れるとエラーが出たので解決法メモ

\includegraphicsを使ってイラストレーターで作成したpdfの画像を入れようとしたら

Latex warning file not found on input line size of graphic in no boundingbox

みたいなエラーが出る。
そのまま検索してみると
https://teokure.net/technology/tex-image-notfound/

しかし、ちゃんとパッケージを読み込むときにdvipdfmxもつけている。

いろいろいじっていると、usepackage[dvipdfmx]{graphicx}の読み込む順番を一番初めに持ってくるとうまくいった。
謎。

一応、読み込んでいたものは
\usepackage{bxpapersize}
\usepackage{amssymb}
\usepackage{mhchem}
\usepackage{enumerate}

この一番最後に入れるとエラーで表示できないが、一番上に持ってくるとちゃんと表示された。

謎。

どのパッケージとぶつかっているのか調べるために徐々に記述場所を下げていくと
\usepackage{mhchem}
の後まで持ってきた段階でエラーが出た。
mhchemというパッケージと何かがぶつかっているのかも

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?