EPS †EPSファイルについて †TeXでよく使われる図の形式にEPS(Encapsulated Post Script)がある。
画像ファイルから変換 †BMP, JPEG等の場合、以下のソフトで変換する。 Word, Excel等から変換(64bit版Windows7) †既存の方法では、AdobeのPSプリンタドライバが古いので64bit版Windowsにインストールできない。Kerosoft : Modus Operandiで紹介されているWMF2EPSを使うといい。ただし、情報が古いようで、ここを見るとWindows7用のパッチが置いてある。 インストール †
使い方 †
Word, Excel等から変換(windows7) †http://kenkitagawa.cocolog-nifty.com/blog/2012/01/win7-eps-f4a2.html Word, Excel等から変換(32bitXPまでの古いWindowsでの方法) †仮想プリンタ †まず、Post Scriptプリンタドライバをインストールする(プリンタ自体は持ってなくても問題なし)。
をインストール。その際、ポイントは
の2つ。これで「スタート」-「設定」-「プリンタ」に「Adobe PS Generic Post Script Printer」という新しいプリンタができているはず。次にプリンタドライバの設定。「Adobe PS Generic Post Script Printer」を右クリックして設定する。
仮想プリンタから出力&変換 †インストールした仮想プリンタで印刷するだけ。 図の挿入 †texファイルの\begin{document} の前に \usepackage[dvips]{graphicx} を入れておく。次に、図を挿入したい部分に \begin{figure}[h] \begin{center} \end{center} \caption{図のタイトル} \end{figure} とするだけ。大きさの指定には \includegraphics[width=**cm,keepaspectratio,clip]{figure.eps} とする。 図を左右に並べる場合 †\begin{center} \begin{minipage}{.45\linewidth} \input{fig2_kinnkou1.tex} \end{minipage} \begin{minipage}{.45\linewidth} \input{fig2_kinnkou2.tex} \end{minipage} \end{center} または \begin{figure}[h] \begin{center} \begin{minipage}{.45\linewidth} \input{fig2_kinnkou1.tex} \caption{$p_1>p^*$} \label{fig_kinnkou1} \end{minipage} \begin{minipage}{.45\linewidth} \input{fig2_kinnkou2.tex} \caption{$p_2<p^*$} \label{fig_kinnkou2} \end{minipage} \end{center} \end{figure} 参考 †
|