*Adobe Illustrator [#w6d2965c]

Illustrator 関連の話題を書き込んでください。

**Illustrator の図を TeX に [#sa00c636]

Illustrator で EPS 保存したものを LaTeX に挿入する例:

 %%% -*- mode: yatex; Coding: iso-2022-jp; Encoding: ISO-2022-JP -*-
 \documentclass{...}
 \usepackage[dvips]{graphicx}
 \begin{document}
 ...
 \includegraphics[width=50mm,clip]{hoge.eps}
 ...
 \end{document}

Illustrator で保存時の注意:

-プレビューを付けない(なるべく)
-サムネイルを付けない(Illustrator 7–10のバグのため不正な EPS になることがある)
-フォントを埋め込む

不正な EPS は,
[[Tomas Rokicki:http://tomas.rokicki.com/]]
の [[Illustrator 7.0/8.0/9.0 BeginData Bug:http://tomas.rokicki.com/illbug/]]
から “fixill.pl” を頂いてきて直す。
次のようにして使う。

 $ fixill.pl <old.eps >new.eps

“fixill.pl” は Perl スクリプトであり,実行には Perl が必要。
Microsoft Windows なら Cygwin を使うか,あるいは [[ActiveState:http://www.activestate.com/]]
から ActivePerl をダウンロードしてインストールすればいいであろう。
角藤さんの “dvipsk-w32.tar.gz” には “fixill.pl” と “fixill.exe” が含まれる。

 >fixill.exe <old.eps >new.eps

最終的に PDF で出力するならば,Adobe Illustrator Artwork (拡張子 “.ai”)のままでも OK。
AI 形式は実質的に PDF なので,[[PDF 形式の図の挿入>TeX入門/図#a58e4bcb]]と同様に処理できる。
Ghostscript が呼び出されないので処理も高速。

例(hoge.ai を挿入):

 %%% -*- mode: yatex; Coding: iso-2022-jp; Encoding: ISO-2022-JP -*-
 \documentclass{article}
 \usepackage[dvipdfmx]{graphicx}
 \usepackage{mediabb}
 \DeclareGraphicsRule{.ai}{pdf}{*}{}
 \begin{document}
 \includegraphics{hoge.ai}
 \end{document}

Adobe Illustrator CS (11.0.0) で作られたファイルで確認。

**トラブル [#id16611b]

Illustrator CS で CM フォントの数式が変になる [[qa:27936]] のスレッド(未解決)。


** その他 [#a59267c4]

-【参考情報】
[[Th&oacute;rTeXTypography:Illustratorの図をTeXに:http://tex.dante.jp/typo/?Illustrator%A4%CE%BF%DE%A4%F2TeX%A4%CB]]