*[[Inkscape:http://inkscape.org/]] [#ycda5b1e] &color(White,#5F2F2F){ ''◆目次◆'' };&br; #contents *Inkscape とは [#v6fd1815] Inkscape は,オープンソースのベクターグラフィックエディタ (SVG エディタ) です. Windows, Linux, Mac OS X, Unix で動作します. |COLOR(#FFF):BGCOLOR(#7C0):入力|COLOR(#FFF):BGCOLOR(#7C0):出力| |SVG, PDF|SVG, PDF, EPS, PS, ODG| 外部プログラムとして -Windows なら [[pstoedit:http://pstoedit.sourceforge.net/]] -UNIX なら [[pstoedit:http://pstoedit.sourceforge.net/]] と ([[Skencil>WikiPedia.ja:Skencil]] に含まれている) skconvert.py を使用することで EPS, PS の入力も可能です. -[[Inkscape 公式サイト:http://inkscape.org/]] -[[Inkscape 開発サイト:https://launchpad.net/~inkscape.dev]] --[[コミットログ:http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/changes]] -[[Inkscape Wiki:http://wiki.inkscape.org]] --[[FAQ (Japanese) - Inkscape Wiki:http://wiki.inkscape.org/wiki/index.php/FAQ_(Japanese)]] ---[[数学記号や特殊記号を入力するには?:http://wiki.inkscape.org/wiki/index.php/FAQ_(Japanese)#.E6.95.B0.E5.AD.A6.E8.A8.98.E5.8F.B7.E3.82.84.E7.89.B9.E6.AE.8A.E8.A8.98.E5.8F.B7.E3.82.92.E5.85.A5.E5.8A.9B.E3.81.99.E3.82.8B.E3.81.AB.E3.81.AF.3F]] -[[WikiPedia.ja:Inkscape]] -[[Wikibooks.ja:Inkscape:http://ja.wikibooks.org/wiki/Inkscape]] -[[MacWiki:Inkscape]] -[[窓の杜 - Inkscape:http://www.forest.impress.co.jp/lib/pic/piccam/paint/inkscape.html]] *PDF+LaTeX/EPS+LaTeX/PS+LaTeX [#d6b72996] -[[LaTeX - Inkscape Wiki:http://wiki.inkscape.org/wiki/index.php/LaTeX]] -[[Release notes/0.48#New LaTeX export for PDF/EPS/PS - Inkscape Wiki:http://wiki.inkscape.org/wiki/index.php/Release_notes/0.48#New_LaTeX_export_for_PDF.2FEPS.2FPS]] -[[CTAN:help/Catalogue/entries/svg-inkscape.html]], http://az.ctan.org/pkg/svg-inkscape -http://sites.google.com/site/richardhenwood/inkscapelatexextension -[[svg2latex:http://sites.google.com/site/richardhenwood/svg2latex2]] Inkscape 0.48 から PDF, EPS, PS ファイルで保存する場合に PDF+LaTeX, EPS+LaTeX, PS+LaTeX を指定することが可能になりました. ---- &color(White,#72C304){%%% Portable Document Format &color(Black,#CC3333){%%%[ ''&color(White){✕};'' ]%%%}; %%%};&br; Restrict to PDF version: %%% PDF 1.5 [ ▼ ]%%%&br; ☐ テキストをパスに変換&br; ☑ PDF+LaTeX: PDF のテキストを除外して LaTeX ファイルを生成&br; ☑ フィルタエフェクトをラスタライズ&br; Resolutiion for rasterization (dpi): 90&br; ☑ エクスポート領域は描画全体&br; ☐ エクスポート領域はページ&br; Limit export to the object with ID: %%% %%%&br; ---- &color(White,#72C304){%%% Encapsulated PostScript &color(Black,#CC3333){%%%[ ''&color(White){✕};'' ]%%%}; %%%};&br; Restrict to PS level: %%% PostScript level 3 [ ▼ ]%%%&br; ☐ テキストをパスに変換&br; ☑ EPS+LaTeX: EPS のテキストを除外して LaTeX ファイルを生成&br; ☑ フィルタエフェクトをラスタライズ&br; Resolutiion for rasterization (dpi): 90&br; ☑ エクスポート領域は描画全体&br; ☐ エクスポート領域はページ&br; Limit export to the object with ID: %%% %%%&br; ---- &color(White,#72C304){%%% PostScript &color(Black,#CC3333){%%%[ ''&color(White){✕};'' ]%%%}; %%%};&br; Restrict to PS level: %%% PostScript level 3 [ ▼ ]%%%&br; ☐ テキストをパスに変換&br; ☑ PS+LaTeX: PS のテキストを除外して LaTeX ファイルを生成&br; ☑ フィルタエフェクトをラスタライズ&br; Resolutiion for rasterization (dpi): 90&br; ☑ エクスポート領域は描画全体&br; ☐ エクスポート領域はページ&br; Limit export to the object with ID: %%% %%%&br; ---- コマンドラインから PDF+LaTeX, EPS+LaTeX, PS+LaTeX で出力することも可能です. -http://inkscape.modevia.com/inkscape-man.html inkscape -D -z --file=image.svg --export-pdf=image.pdf --export-latex inkscape -D -z --file=image.svg --export-eps=image.eps --export-latex inkscape -D -z --file=image.svg --export-ps=image.ps --export-latex *エクステンション [#s696e33c] **[[Latex 数式 (eqtexsvg.py):http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/share/extensions/eqtexsvg.py]] [#w6edd3aa] Inkscape にデフォルトで含まれている LaTeX と連携するためのエクステンション. -環境変数 PATH に latex, dvips, pstoedit が存在するディレクトリが含まれていれば エクステンション(N) → レンダリング → Latex 数式... から使用可能. -[[InkscapeをLaTeXと一緒に使う:http://sora-blue.net/~shogo82148/i/memo/soft/inkscape/with-LaTeX.html]] -[[Inkscape で LaTeX の数式を入力する:http://www.empitsu.com/wp/?p=24]] **[[textext:http://pav.iki.fi/software/textext/]] [#b9881c0b] LaTeX 形式の数式を Inkscape に含めることが可能なエクステンション. -https://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 -[[Inkscape 0.48 で TexText を使ってみた。:http://www.empitsu.com/wp/?p=847]] -[[Inkscape0.48でtextext0.4.4を使用する方法:http://blog.livedoor.jp/tanapy/archives/51625611.html]] -[[textext で日本語:http://kozimathewizard.blogspot.com/2010/12/textext.html]] -[[QA: 電子回路図の挿入>http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=582&parent=3140&mode=3]] -[[Latexの数式が使えるinkscapeの拡張:http://blog.livedoor.jp/les_paul_sp/archives/395249.html]] -[[Textextの日本語化:http://blog.livedoor.jp/les_paul_sp/archives/399981.html]] -[[Windows 版 Inkscape 0.46 で TexText を動作させる:http://www.empitsu.com/wp/?p=411]] -[[Inkscape 0.47 pre4 に TexText を入れてみた(Windows XP):http://www.empitsu.com/wp/?p=758]] -[[TexText で日本語を通す:http://www.empitsu.com/wp/?p=781]] -[[textext, pdf2svg on Windows:http://hil.t.u-tokyo.ac.jp/~t-nakano/textext_pdf2svg.html]] -[[inkscape & textext 導入:http://kozimathewizard.blogspot.com/2010/06/inkscape-textext.html]] -[[うぶつん ~退化する脳みそのための備忘録~: inkscape:http://ubutun.blogspot.com/search/label/inkscape]] -[[Inkscape に textextを導入:http://d.hatena.ne.jp/m_katsurai/20100908/1283915982]] -[[inkscapeで数式:http://s142252.ppp.asahi-net.or.jp/adiary/memo/adiary.cgi/hirosugu/inkscape%A4%C7%BF%F4%BC%B0]] ***インストール [#y0f25738] ---- -http://inkscape.modevia.com/win32/?M=D から Inkscape のナイトリービルド版をダウンロードして展開します. ここでは inkscape_r10146-201104082205.7z をダウンロードして展開しました. 展開したフォルダを C:\inkscape と仮定します.別のフォルダに展開した場合は読み替えてください. ---- -https://bitbucket.org/pv/textext/src の get source >> からファイルをダウンロード,展開して -textext.py -textext.inx を C:\inkscape\share\extensions にコピーします. ---- Inkscape を起動して [エクステンション(N)]-[Tex Text] を実行しようとするとエラーが表示されます. ---- Inkscapeは、実行したスクリプトから追加データを受け取りまし&br; た。スクリプトはエラーを返しませんでしたが、実行結果が意図し&br; ないものになっていることを示唆している可能性があります。&br; &br; Traceback (most recent call last): File "textext.py", line 403, in <module> raise RuntimeError("Neither pygtk nor Tkinter is available!") RuntimeError: Neither pygtk nor Tkinter is available! ---- -http://dgleich.wordpress.com/2010/10/26/fixing-textext-on-inkscape-for-windows/ から site-packages.zip をダウンロードして C:\inkscape\python\Lib\site-packages に展開します. //-http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/ //-http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/ //-http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.28/ ---- Inkscape を起動して [エクステンション(N)]-[Tex Text] を実行しようとするとエラーが表示されます. ---- Inkscapeは、実行したスクリプトから追加データを受け取りまし&br; た。スクリプトはエラーを返しませんでしたが、実行結果が意図し&br; ないものになっていることを示唆している可能性があります。&br; &br; Traceback (most recent call last): File "textext.py", line 741, in <module> paths += [os.path.join(os.abspath(os.dirname(sys.argv[0])), '..', '..')] AttributeError: 'module' object has no attribute 'abspath' ---- C:\inkscape\share\extensions\textext.py の 741 行目を修正します. ---- # The path where Inkscape is likely to be #paths += [os.path.join(os.abspath(os.dirname(sys.argv[0])), '..', '..')] paths += [os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), '..', '..')] ---- &color(Black,#72C304){%%% &color(White){''TeX Text''}; &color(Black,#62B304){%%%[ &color(White){''◛''}; ]%%%};&color(Black,#62B304){%%%[ &color(White){''▭''}; ]%%%};&color(Black,#CC3333){%%%[ &color(White){''✕''}; ]%%%}; %%%};&br; Preamble file: (なし)&br; Scale factor: 1.00&br; LaTeX page width: 10cm&br; Converter: Pstoedit&br; &br; &br; &br; &br; &br; Text:&br; &br; &br; &br; &br; &br; ---- エラーが発生します. &color(Black,#72C304){%%% &color(White){''Textext Error''}; &color(Black,#CC3333){%%%[ &color(White){''✕''}; ]%%%}; %%%};&br; ''Error occurred while converting text from Latex to SVG:''&br; ---- **[[svg2tex:https://github.com/Oni/svg2tex]] [#wc9b7463] Svg2tex is a python script that extracts all text from a *.svg file to a LaTeX picture environment. This way the picture's text is processed directly by LaTeX and can be included into the document.