* いろいろな変換ツール [#qb4d5c4e]

ここでは,TeX と合わせて用いることができる便利な変換ツールをまとめます.

''目次''
#contents

* ビットマップ画像 (ラスターイメージ) ←→ PDF/EPS [#w1278ce9]

JPEG は EPS2(正確には PostScript Level 2 の EPS)にするとサイズがあまり増えません.

-[[MuPDF]] (mudraw)
--Linux Mint, Debian では mupdf-tools にコマンドが収録されています.
--mudraw - render PDF/XPS/CBZ documents (PDF → PNG)
-[[Poppler]] (pdftocairo)
--Linux Mint, Debian では poppler-utils にコマンドが収録されています.
--pdftocairo  - Portable Document Format (PDF) to PNG/JPEG/PDF/PS/EPS/SVG using cairo
-[[dktools:http://dktools.sourceforge.net/]] ([[CTAN:help/Catalogue/entries/dktools.html]])
--bmeps (PNG 等 → PDF/EPS1, 2, 3.[[TeX Live]], [[W32TeX]] にも収録されています)
-[[sam2p:https://code.google.com/archive/p/sam2p/]]
(ビットマップ → PDF/EPS.[[TeX Live]], [[W32TeX]] にも収録されています)
-[[potrace>http://potrace.sourceforge.net/]]
(グレースケールbmp → PDF/EPS/PS/SVG.[[W32TeX]] にも収録されています)
-[[ImageMagick]]
--convert foo.jpg eps2:foo.eps とすると EPS2 になる
--mogrify -format pdf *.jpg とすると,フォルダ(ディレクトリ)内の全 jpg を pdf に変換する(上書きされない)
-[[EPS-conv:http://hp.vector.co.jp/authors/VA023018/epsconv.htm]]
(寺嶋 容明 さん)
(Windows用, BMP/JPEG/PNG/GIF → EPS, Susie plug-in対応)
--[[TeXを便利に使うツール類#EPS-conv(画像変換ツール)>http://c.nagaokaut.ac.jp/index.php?TeX%A4%F2%CA%D8%CD%F8%A4%CB%BB%C8%A4%A6%A5%C4%A1%BC%A5%EB%CE%E0#le26dada]]
-[[pdf2svg]] :PDF から SVG への変換

* EPS ←→ EPS/EMF/WMF/PowerPoint [#i3d14633]

-[[Metafile to EPS Converter]]
(EMF/WMF → EPS)
-[[pstoedit]]
(EPS → EMF.[[W32TeX]] に含まれています.)
-[[ps2eps:http://www.tm.uka.de/~bless/ps2eps.html]](Windows の
PS プリンタドライバで作った EPS は clip オプションを付けても
外側を侵蝕することがあります.これを試してみてください.[[TeX Live]], [[W32TeX]] に含まれています.)
-[[EmfPrinter>http://emfprinter.sourceforge.net/]]
(EMF/WMF 形式に出力可能な仮想プリンタドライバ)
-[[EpsWriter>http://torasenriwohashiru.seesaa.net/]] (Tanaka さん)
(PowerPoint の表示中のスライドを EPS ファイルに出力するアドイン) (EMF → EPS)
-[[寺嶋さん:http://hp.vector.co.jp/authors/VA023018/]]の
EPS-draw,EPS-conv,EPS-merg などは便利そうです
--[[EPS-merg:http://hp.vector.co.jp/authors/VA023018/epsmerg.htm]]
(寺嶋 容明 さん)
(Windows用,2つのEPS(Encapsulated PostScript)形式の画像を1つに合成)
-[[EMFtoEPS>http://www.projectory.de/emftoeps/]]
(Dirk Struve)
(EMF → EPS)
-[[PowerPoint から TeX 用の EPS ファイルを生成する方法:http://kano.arkoak.com/2015/09/26/eps/]]
-[[WindowsでのTeX用仮想EPSプリンタの作成方法:http://keijisaito.info/arc/tex/v_eps_printer.htm]]
([[画像や写真をTeXからPDFへ入れ込む方法:http://keijisaito.info/arc/tex/picture_eps.htm]])
-[[PowerPoint から LaTeX 用の EPS ファイルを全自動で生成する:http://www.kagami.org/diary/cat_ppt2eps.html]]
-[[ドローソフト>描画・グラフツール]] を使って変換するという手もあります

* Excel/Calc/CSV/TSV → LaTeX [#wf7315cb]

**Web アプリ [#c3a5e72b]
-[[CSV2TeX:https://sites.google.com/site/nssvdabb/csv2tex]]
(阿部 良太 さん) CSV形式からTeXのtabular環境を自動的に作成するツール(タブ区切り形式からの変換にも対応).ブラウザ上で動作します.
-[[Create LaTeX tables online:http://www.tablesgenerator.com/]] LaTeX Table Generator
-[[Table Editor:http://truben.no/table/]]
(Peder Skeidsvoll) テーブルジェネレータ.テーブルデータのインポートも可能.
-[[csvまたはタブ区切りテキストデータをLaTeXのtabularで使える形式に(JavaScript)>http://www.h2.dion.ne.jp/~rra/scriptapplet/csv2tabular/]]

**スタンドアロンアプリ [#gabc9730]
-[[Calc2LaTeX>http://calc2latex.sourceforge.net/indexj.html]]
(阿部 昌平 さん) Calc ([[LibreOffice]]/[[Apache OpenOffice>LibreOffice]] の表計算ソフト) で書かれた表を LaTeX 形式に変換.LibreOffice/Apache OpenOffice で動作します. ([[qa:22310]])
-[[Visual Tabular:http://www.katch.ne.jp/~ssizz/]]
(杉浦 崇之 さん) 表計算ソフトライクなソフト.tabular 環境,array 環境,HTML 形式に対応.Wine を使って動作するらしい
-[[TeXtable:http://holyhedron.tumblr.com/tagged/TeX]] TeXの表を簡単に作るためのExcelマクロ
-[[LaTable:http://www.ctan.org/pkg/latable]]
(Alex A. Denisov) A near-WYSIWYG editor for LaTeX tables
--[[CTAN:help/Catalogue/entries/latable.html]]
-[[excel2latex (Excel-to-LaTeX)>http://www.ctan.org/pkg/excel2latex]]
--[[CTAN:help/Catalogue/entries/excel2latex.html]]
--[[Excel2LaTeX in Launchpad:https://launchpad.net/excel2latex]] (Kirill Müller, Andrew Hawryluk, and Joachim Marder)
--[[【Excel2LaTeX の導入】:https://plus.google.com/100959984173869250851/posts/5EkZoxA6Ncb]]
--[[EXCELで書いた表をLaTeXに変換ーExcel2LaTeX:http://mac-physics.ldblog.jp/archives/51933868.html]]
-[[xls2TeX:http://myweb.whitman.syr.edu/rkshukla/Misc/xls2TeX.asp]] (Ravi Shukla)
-[[xl2latex:http://www.ctan.org/pkg/xl2latex]] (Ronny Buchmann)
--[[CTAN:help/Catalogue/entries/xl2latex.html]]
-[[excel_latex_copy.pl:https://gist.github.com/1977461]] (Sunao HARA)
Convert Excel table to LaTeX table format
-[[exceltex:http://www.ctan.org/pkg/exceltex]]
(Hans-Peter Doerr) Excel で書かれたファイルから TeX ファイルにデータを取り込むためのパッケージ.要 Perl
--[[CTAN:help/Catalogue/entries/exceltex.html]]
--[[exceltex のインストールと使い方>http://d.hatena.ne.jp/bagpack/20090318]]
--[[exceltex をマルチバイト文字に対応させる>http://d.hatena.ne.jp/bagpack/20090319]]
-[[spreadsheet2latex>http://www.panix.com/~elflord/unix/software/spreadsheet2latex/]]
(Donovan Rebbechi) Perl script that converts a tab-delimited text file to a colorful latex table
-[[Gnumeric:http://www.gnumeric.org/]]
Excel のファイルを読み込んで LaTeX 形式のファイルに出力可能.Windows 版もあり,Excel,Calc,Gnumeric 等の CSV ファイルを LaTeX 形式に変換
-[[Excel to Latex table convertor>http://tom.counsell.org/view/ExcelToLatexTableConvertor]] (Thomas Counsell)
-[[Excel 表をきれいにTeXからPDFへ入れ込む方法:http://keijisaito.info/arc/tex/ve_exta_pdf.htm]] (Windows での挿入方法, [[Excel のグラフ:http://keijisaito.info/arc/tex/vector_pdf.htm]]や [[PowerPoint の図:http://keijisaito.info/arc/tex/ve_ppfi_pdf.htm]]も,ほぼ同様)

**LaTeX パッケージ [#n568af03]
[[目的別パッケージ簡易リファレンス>目的別パッケージ簡易リファレンス#v78r6f2c]] も参照.
-[[csvsimple:http://www.ctan.org/pkg/csvsimple]]
(Thomas F. Sturm) LaTeX で CSV ファイルを直接読み込んで処理するパッケージ.tabular 環境と融合可能
--[[CTAN:help/Catalogue/entries/csvsimple.html]]
-[[csv2latex:http://www.ctan.org/pkg/csv2latex]]
(Alan Munn and Thomas Counsell) TeXShop用.Excel, Calc等からコピーアンドペーストで LaTeX 表形式に変換・貼り付け
--[[CTAN:help/Catalogue/entries/csv2latex.html]]

* LaTeX ←→ HTML/XHTML/XML/MathML/EPUB [#u7d3e393]

-[[LyX]] TeX ファイルを読み込んで HTML, XHTML ファイルに出力可能.
-[[Tools for Converting LaTeX to XML:http://jblevins.org/log/xml-tools]]
-[[fMath:http://www.fmath.info/]] Flash and Javascript library for mathematics on web pages
-[[pdf2htmlEX]] ((LaTeX →) PDF → HTML)
-[[plasTeX:http://tiarno.github.io/plastex/]] a Python package to convert LaTeX markup to DOM
--[[LaTeXをHTMLに変換.plasTeX (python):http://www.monochrome-photo.info/?p=3268]]
--[[LaTeX文書をHTML化するなら「plasTeX」:http://builder.japan.zdnet.com/member/u48681/blog/2011/03/01/entry_27045111/]]
--[[plasTeX インストール備忘録:https://staff.aist.go.jp/t.oe/sect0009.html]]
-[[HEVEA:http://pauillac.inria.fr/~maranget/hevea/]]
LaTeX to HTML translator written in OCaml
--[[HEVEAを使ってTeXをHTMLにしよう:http://d.hatena.ne.jp/mzp/20090317/hevea]]
\usepackage[utf8]{inputenc}をプリアンブルに挿入することで日本語を含む文書の変換も可能です.
-[[LaTeX2HTML5]] (LaTeX → HTML5)
-[[LaTeX2HTML]] LaTeX2HTML is a convertor written in Perl that converts LaTeX documents to HTML.
-[[LaTeXML:http://dlmf.nist.gov/LaTeXML/]] A LaTeX to XML Converter
--[[tex2xml:http://tex2xml.kwarc.info/]]
--[[いわにぃのブログ : latexml を含む記事:http://blog.livedoor.jp/ti5942/search?q=latexml]]
--[[LaTeX2EPUB:http://kmuto.jp/d/index.cgi/computer/latex2epub.htm]]
-[[Lamuriyan:https://github.com/nodamushi/Lamuriyan]] TeX風な言語をHTML DOMオブジェクトに変換するツール
--[[プログラムdeタマゴ:http://d.hatena.ne.jp/nodamushi/]]
--[[Lamuriyan仮本部:http://ntex.ie-yasu.com/]]
-[[TeX4ht:http://www.tug.org/tex4ht/]]
LaTeX and TeX for Hypertext
--[[コミットログ:http://svn.gnu.org.ua/viewvc/tex4ht/trunk/?view=log]]
--[[CTAN:help/Catalogue/entries/tex4ht.html]]
--[[LaTeX をウエッブに載せよう:http://osksn2.hep.sci.osaka-u.ac.jp/~naga/miscellaneous/tex4ht/tex4ht-howto.html]]
--[[tex4htを日本語環境で動かす>http://www.geocities.jp/yasushi_suzudo/lets/softwares.html#tex4ht]]
-[[TtH:http://hutchinson.belmont.ma.us/tth/]]
the TeX to HTML translator
--[[CTAN:help/Catalogue/entries/tth.html]]
-[[TtM:http://hutchinson.belmont.ma.us/tth/mml/]] a TeX to MathML translator
-[[TeX2page>http://ds26gte.github.io/tex2page/]] TeX/LaTeX ドキュメントを HTML に変換する Scheme で書かれたプログラム
-[[mil:http://mil.osdn.jp/]] TeX ライクな HTML 生成機
--[[TeX to HTML コンバータ:http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=288]]
-[[LaTeX2MathML:http://latex2mathml.freewebmaster.fr/]]
-[[Latex2MathML:http://latex2mathml.codeplex.com/]] LaTeX → XHTML+MathML
-[[LaTeX to HTML (MathML) 変換ツール "てぃ→えぃち":http://ore-dmng.jp/ore/zsk/th/]]
-[[Tralics:http://www-sop.inria.fr/apics/tralics/]] a LaTeX to XML translator
-[[LXir:http://www.lxir-latex.org/]] A tool to convert LaTeX documents to XML
-[[Hermes:http://hermes.roua.org/]] a semantic XML+MathML+Unicode e-publishing/self-archiving tool for LaTeX authored scientific articles
-[[GELLMU:http://www.albany.edu/~hammond/gellmu/]]
-[[xml2tex:https://github.com/k16shikano/xml2tex]]
-[[TeX Converter:http://www.mayer.dial.pipex.com/tex.htm#TexConverter]] Windows front-end
-[[ひらくの工房 - mathml.rb:http://www.hinet.mydns.jp/?mathml.rb]] TeXの数式をMathMLに変換する Ruby 用ライブラリ
--[[LaTeXの数式をMathMLに変換してHTMLに組み込んでみる.(Mac版):http://blog.livedoor.jp/txmy/archives/52106127.html]]
-[[MathToWeb>http://www.mathtoweb.com/cgi-bin/mathtoweb_home.pl]] LaTeX → MathML
-[[XML SmartDoc:http://www.xmlsmartdoc.org/]] SmartDoc形式のドキュメントをHTML4.0, HTML3.2, LaTeX2e, JavaHelpおよびプレインテキストに変換
--[[XML SmartDocリファレンスマニュアル:http://tempest.nemui.org/~sugi/sdoc/refman/html4/]]
-[[DB2LaTeX>http://db2latex.sourceforge.net/]] docbook → LaTeX2e
-[[TeXのトイ実装で数式をHTML表示する話 (TeX-modoki):http://note.golden-lucky.net/2010/09/what-tex-modoki-is-tex-modoki-is-aiming.html]]
-[[TeXをhtmlに変換する:http://d.hatena.ne.jp/tukasa1919/20110516/1305541910]]
-[[HTML2LaTeX:http://www.iwriteiam.nl/html2tex.html]]
-[[HTML to LaTeX:http://htmltolatex.sourceforge.net/]]

* BibTeX → HTML [#j6df93e2]
BibTeX形式(*.bib,*.bbl)からHTMLへの変換ツールです.
- [[bbl2htm.pl:http://staff.aist.go.jp/w.mizutani/bibplist.html]]:要Perl,日本語可
- [[bibtex2html:http://www.lri.fr/~filliatr/bibtex2html/]],Windows用バイナリ有り
- [[JabRef:http://www.jabref.org/]]にもHTMLを出力する機能有り(齋藤経史さん: [[Jab2HTML:http://keijisaito.info/arc/biblio/jabref_jbib.htm]]),日本語可

* Markdown → LaTeX [#q6a81996]
-[[Markdown]]

* reStructuredText (reST) → LaTeX [#q38ee84a]
-[[reStructuredText]]

* plain2 [#oe747d31]

plain2 はプレーンテキストを LaTeX 等に変換するツールです.
Win32 環境で使えるものを角藤さんが作ってくださっています.

小林 健一さんの [[plain2のHTMLテーブル拡張>http://www.asahi-net.or.jp/~vw4k-kbys/plain2/]] にて plain2 の詳細説明や経緯を見ることができます.
パッチもダウンロードできます.

-[[plain2 fan>http://www.jaist.ac.jp/~k-chinen/pg/plain2/plain2-j.html]] (NAIST 知念さん)

* ワープロ形式 ←→ LaTeX [#x5d64adf]
-[[LyX]] (LyX ←→ LaTeX.WYSIWYM な TeX エディタ.LaTeX 形式での出力可.GPL.)
--[[word2lyx>LyX/使い方#jba6f16a]] (MS Word 2010 → LyX)
-[[Writer2LaTeX:http://writer2latex.sourceforge.net/]] (LibreOffice/Apache OpenOffice writerの文書 → LaTeX形式.図は不可.文章のみ).[[OpenOffice.org日本ユーザ会:http://oooug.jp/faq/index.php?faq%2F4%2F4#content_1_9]]の方による日本語を含む文書の変換方法についての解説があります.LGPL.[[コミットログ:http://writer2latex.svn.sourceforge.net/viewvc/writer2latex/trunk/?view=log]]
//日本語も不可(Linux上で確認,WinやMacは不明,誰かよろしく))
-[[LaTeX2rtf:http://latex2rtf.sourceforge.net/]] (LaTeX文書 → RTF形式.最近のバージョン (1.9.17以降) では日本語可 (W32TeX付属のものも日本語可).VineLinuxなら,# apt-get install latex2rtfでインストール可.GPL.[[コミットログ:http://sourceforge.net/p/latex2rtf/code/log/]]
--[[latex2rtfで日本語:http://soyogu.blogspot.com/2010/05/latexlatex2rtf-1.html]] 「\usepackage[utf8]{inputenc} と書いておけば変換できるようだ.」
--[[LaTeX原稿のスペルチェック:http://spatiohack.blogspot.com/2010/12/latex_14.html]]
--[[latex2rtfで変換するときの注意点:http://spatiohack.blogspot.com/2011/02/latex2rtf.html]]
-[[l2rtf:http://www.sciweavers.org/l2rtf]] Converts Latex document to Rich Text Format (RTF) that can be edited by Microsot Word
-[[rtf2latex2e>http://sourceforge.net/projects/rtf2latex2e/]] RTF ファイル → LaTeX.GPL.[[コミットログ:http://sourceforge.net/p/rtf2latex2e/code/log/]]
-[[docx2tex:http://docx2tex.codeplex.com/]] (MS Word 2007 → TeX.[[New BSD License:http://docx2tex.codeplex.com/license]])
-[[WP2LaTeX:http://sourceforge.net/projects/wp2latex/]] (WordPerfect → LaTeX.GPL, LGPL.)

* (LaTeX →) PDF → Word [#c2f24109]
-[[Google Drive:https://drive.google.com/]] (PDF → Google Drive → Word)
//--[[PDFや画像ファイルをGoogleドキュメントを使って「Wordに変換」する方法:http://www.lifehacker.jp/2011/04/110420wordconvert.html]] (PDF → Google ドキュメント → Word)
-[[PDF to Word Converter — 100% Free:http://www.pdftoword.com/]]
-[[Convert pdf to word - Convert pdf to doc - Convert online pdf to word:http://convertpdftoword.net/]]

* dviware [#k08c2f40]

-[[CTAN:dviware]]
-[[dvipdfmx]]
-[[dvips]]
-[[dvisvgm]]
-[[dvipng]]

* その他(未整理) [#pd1eb72f]
-[[Wikipedia.en:Lightweight_markup_language]]
-[[The DITA Open Toolkit (DITA-OT):http://dita-ot.sourceforge.net/]], [[DITA-OT Wiki:http://dita.xml.org/wiki/the-dita-open-toolkit]], [[DITA Open Toolkit Page:http://ditaopentoolkit.org/]]
-[[Mosha Cloud SpotOCR:https://www.moshaspot.com/]]
-[[Texcaller:http://www.profv.de/texcaller/]]
-[[TeXPrinter:http://texprinter.sourceforge.net/]]
-[[漢文エディタ:http://www2s.biglobe.ne.jp/~Taiju/]]
-[[DoxygenのLaTeX出力で日本語を使う:http://dev.activebasic.com/egtra/2011/12/25/459/]]
-[[IdeoType:http://ideotype.sourceforge.net/]] (IdeoType is a book compiler that converts manuscript (XHTML) to book (PDF) on the fly.)
-[[wkhtmltopdf:http://wkhtmltopdf.org/]]
--[[wkhtmltopdfでPDFを簡単作成:http://tdoc.info/blog/2012/09/19/wkhtmltopdf.html]]
-[[TeXが出力するDVIファイルをパースして整形して表示するプログラムつくりました (ParseDVI):http://d.hatena.ne.jp/yayugu/20110423/1303561326]] Parse & PrettyPrint TeX’s DVI files.
-[[MilkTeX:https://github.com/torimaru/milktex]] (CoffeeScriptにインスパイヤされたLaTeXのトランスコンパイラ)
-[[highlight:http://www.andre-simon.de/doku/highlight/en/highlight.html]]
--[[160以上のプログラムを見やすくHTML・TeXなどに変換するフリーソフト「Highlight」:http://gigazine.net/news/20120513-highlight/]]
-[[ftex:http://pisan-dub.jp/]]
-[[latex2man:ftp://ftp.dante.de/tex-archive/support/latex2man/latex2man.html]]
-[[aozora-proc.el:https://github.com/kawabata/aozora-proc]]
-[[Melt:https://forge.ocamlcore.org/projects/melt/]] Melt allows you to program LaTeX documents using OCaml.
-[[lhs2TeX:http://people.cs.uu.nl/andres/lhs2tex/]] lhs2TeX is a preprocessor to generate LaTeX code from literate Haskell sources.
-[[i2pdf:http://web.newsguy.com/lmgava/i2pdf/]]
-[[123 PDF to Image:http://www.freepdftoimage.com/]]
-[[xdoc2txt:http://ebstudio.info/home/xdoc2txt.html]] (PDF,WORD,EXCEL,一太郎などの各種バイナリ文書からテキストを抽出)
-[[Xpdf]] の pdftotext (PDFファイルからテキストを抽出.参考:[[@IT:PDFファイルからテキストを抽出するには:http://www.atmarkit.co.jp/flinux/rensai/linuxtips/745textfpdf.html]])
-[[soffice2html [Internet Archive]:http://web.archive.org/web/20080704071201/http://ooosupport.good-day.net/ja/download/applications/]] (Apache OpenOffice Writer のフォーマットである.sxw を HTML に変換する Perl スクリプト.writer2latexあたりと併用できる?)
-[[tab4tex>CTAN:help/Catalogue/entries/tab4tex.html]] (テキストファイルから LaTeX の表に変換)
-[[DragMath:http://www.dragmath.bham.ac.uk/]] (フリーの "drag and drop" 数式エディタ.LaTeX 形式の出力が可能.Java applet)
-[[Texts — Structured Content Editor for Mac OS X and Windows:http://www.texts.io/]] (Markdown + TEX + WYSIWYM)