TeX > 画像の表示

更新日 2014-10-24
広告
TeXで画像を表示する方法を紹介します。 まず、graphicxパッケージを設定します。
\usepackage[dvipdfmx]{graphicx}
EPSファイルは、以下のように表示できます。
\begin{figure}[t]
  \centering
  \includegraphics{hoge.eps}
  \caption{This is sample figure}
  \label{sample}
\end{figure}
captionは、図の下に表示される説明です。 labelで設定した文字は、文中から参照する際のキーワードです。 以下のように参照できます。
\ref{sample}
広告
お問い合わせは sweng.tips@gmail.com まで。
inserted by FC2 system