* いろいろな変換ツール [#qb4d5c4e] ここでは,TeX と合わせて用いることができる便利な変換ツールをまとめます. ''目次'' #contents * ビットマップ画像 (ラスターイメージ) ←→ PDF/EPS [#w1278ce9] JPEG は EPS2(正確には PostScript Level 2 の EPS)にするとサイズがあまり増えません. -[[MuPDF]] (mutool) --Linux Mint, Debian では mupdf-tools にコマンドが収録されています. --mutool draw - 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.ring:help/Catalogue/entries/dktools.html]]) --bmeps (PNG 等 → PDF/EPS1, 2, 3.[[TeX Live]], [[W32TeX]] にも収録されています) -[[sam2p:https://github.com/pts/sam2p]] (ビットマップ → PDF/EPS.[[TeX Live]], [[W32TeX]] にも収録されています) -[[potrace>http://potrace.sourceforge.net/]] (グレースケールbmp → PDF/EPS/PS/SVG.[[W32TeX]] にも収録されています) -[[ImageMagick]] --magick 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 への変換 -[[→画像ファイルのフォーマットを変換する: jpg png gif eps tiff ps bmp:http://www.henkan-muryo.com/image-converter.php]] * 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/]] -[[PowerPoint から LaTeX 用の EPS ファイルを全自動で生成する:http://www.kagami.org/diary/cat_ppt2eps.html]] -[[ドローソフト>描画・グラフツール]] を使って変換するという手もあります * EMF/PowerPoint → PDF [#dbdb5370] -[[kuroko>https://github.com/shioyadan/kuroko]] (EMF/PowerPoint → PDF) * 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://rra.yahansugi.com/scriptapplet/csv2tabular/]] -[[Excel から tabular ソースへ変換:https://doratex.github.io/misc-files/excel2tabular/]] **スタンドアロンアプリ [#gabc9730] -[[Excel VBAでワークシート上の表をLaTeX形式に変換するマクロを作ってみた:http://cyclo-commuter.hatenablog.jp/entry/2018/12/12/162144]] -[[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 を使って動作するらしい -[[LaTable:https://ctan.org/pkg/latable]] (Alex A. Denisov) A near-WYSIWYG editor for LaTeX tables --[[CTAN.ring:help/Catalogue/entries/latable.html]] -[[excel2latex (Excel-to-LaTeX)>https://ctan.org/pkg/excel2latex]] --[[CTAN.ring: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]] -[[xl2latex:https://ctan.org/pkg/xl2latex]] (Ronny Buchmann) --[[CTAN.ring:help/Catalogue/entries/xl2latex.html]] -[[excel_latex_copy.pl:https://gist.github.com/1977461]] (Sunao HARA) Convert Excel table to LaTeX table format -[[exceltex:https://ctan.org/pkg/exceltex]] (Hans-Peter Doerr) Excel で書かれたファイルから TeX ファイルにデータを取り込むためのパッケージ.要 Perl --[[CTAN.ring: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) **LaTeX パッケージ [#n568af03] [[目的別パッケージ簡易リファレンス>目的別パッケージ簡易リファレンス#v78r6f2c]] も参照. -[[csvsimple:https://ctan.org/pkg/csvsimple]] (Thomas F. Sturm) LaTeX で CSV ファイルを直接読み込んで処理するパッケージ.tabular 環境と融合可能 --[[CTAN.ring:help/Catalogue/entries/csvsimple.html]] -[[csv2latex:https://ctan.org/pkg/csv2latex]] (Alan Munn and Thomas Counsell) TeXShop用.Excel, Calc等からコピーアンドペーストで LaTeX 表形式に変換・貼り付け --[[CTAN.ring:help/Catalogue/entries/csv2latex.html]] -[[xlstabular パッケージ:https://github.com/domperor/xlstabular]]([[解説:http://raccho32.blog.fc2.com/blog-entry-103.html]])Excel から LaTeX ソースに直接コピーアンドペーストしてそのまま利用できる。 * LaTeX ←→ HTML/XHTML/XML/MathML/EPUB [#u7d3e393] [[Tools for Converting LaTeX to XML:http://jblevins.org/log/xml-tools]], [[TeX原稿からEPUBを作りたい:https://www.slideshare.net/k16shikano/texepub]] なども参照。 -[[LyX]] TeX ファイルを読み込んで HTML, XHTML ファイルに出力可能. -[[LaTeX.js:https://latex.js.org/]] JavaScript LaTeX to HTML5 translator -[[lwarp:http://bdtechconcepts.com/]] (LaTeX → HTML5) -[[LaTeX2HTML]] LaTeX2HTML is a convertor written in Perl that converts LaTeX documents to HTML. -[[plasTeX:http://plastex.github.io/plastex/]] a Python package to convert LaTeX markup to DOM --[[ひびのびぼーろく: 339びぼーろく; plastex その1:https://phys-diary.blogspot.com/2017/02/339-plastex-1.html]], [[ひびのびぼーろく: 340びぼーろく; plastexその2:https://phys-diary.blogspot.com/2017/02/340-plastex2.html]] --[[LaTeXをHTMLに変換.plasTeX (python):https://mono96.jp/archives/3268]] --[[plasTexによる表示の例:http://flutecore.g2.xrea.com/motoori_kojikiden/index.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}をプリアンブルに挿入することで日本語を含む文書の変換も可能です. --[[HEVEAを使って LATEXからHTMLへの変換:http://flutecore.g2.xrea.com/heveaTest2015.html]]使用法のメモ -[[LaTeX2JS]] (LaTeX → HTML5) -[[LaTeXML:https://dlmf.nist.gov/LaTeXML/]] A LaTeX to XML Converter (Perl製) --[[tex2xml:http://tex2xml.kwarc.info/]] --[[いわにぃのブログ : latexml を含む記事:http://blog.livedoor.jp/ti5942/search?q=latexml]] --[[KeN's GNU/Linux Diary | LaTeX2EPUB:http://web.archive.org/web/20170529071825/http://kmuto.jp/d/index.cgi/computer/latex2epub.htm]] -[[pdf2htmlEX]] ((LaTeX →) PDF → HTML) -[[Lamuriyan:https://github.com/nodamushi/Lamuriyan]] TeX風な言語をHTML DOMオブジェクトに変換するツール --[[Lamuriyan カテゴリーの記事一覧 - プログラムdeタマゴ:http://nodamushi.hatenablog.com/archive/category/Lamuriyan]] --[[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.ring:help/Catalogue/entries/tex4ht.html]] --[[LaTeX をウエッブに載せよう:http://osksn2.hep.sci.osaka-u.ac.jp/~naga/miscellaneous/tex4ht/tex4ht-howto.html]] --[[tex4htを日本語環境で動かす [Wayback Machine]:http://web.archive.org/web/20160304001634/http://www.geocities.jp:80/yasushi_suzudo/lets/softwares.html#tex4ht]] -[[TtH:http://hutchinson.belmont.ma.us/tth/]] the TeX to HTML translator --[[CTAN.ring: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 コンバータ:https://okumuralab.org/tex/mod/forum/discuss.php?d=288]] -[[latex2mathml:https://github.com/Code-ReaQtor/latex2mathml]] (Python製) -[[LaTeX2MathML:http://latex2mathml.freewebmaster.fr/]] (PHP製) -[[Latex2MathML:http://latex2mathml.codeplex.com/]] LaTeX → XHTML+MathML (C#製) -[[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/]] (Perl製) -[[xml2tex:https://github.com/k16shikano/xml2tex]] (Scheme製) -[[ひらくの工房 - 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 (Java製) -[[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]] (C言語製) -[[HTML to LaTeX:http://htmltolatex.sourceforge.net/]] (Java製) -LaTeXMathML (JavaScript) --[[オリジナル:https://www.maths.nottingham.ac.uk/personal/drw/lm.html]] --[[拡張:http://math.etsu.edu/LaTeXMathML/]] --[[Perl版:http://pillars.che.pitt.edu/LaTeXMathML/]] ---[[LaTeXiT]]のMathML出力で使用されている。 -[[blahtexml:http://gva.noekeon.org/blahtexml/]] ([[GitHub:https://github.com/gvanas/blahtexml]]) LaTeX→MathML (C++製) --AppleのPagesとiBooks Authorで使用されている。 -[[Pandoc]] (Haskell製) --Pandocのうち、特に数式 (LaTeX/MathML/OMML) の変換を担う部分は[[texmath:https://github.com/jgm/texmath]]というライブラリとして切り出されている。 -[[itex2MML:https://golem.ph.utexas.edu/~distler/blog/itex2MML.html]] (C言語製、Rubyバインディングあり) --Ruby製のWikiソフトウェアである[[Instiki:https://golem.ph.utexas.edu/wiki/instiki/show/HomePage]]で使用される。Instikiで動いているWebサイトとしてはnLabがある。 * 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を出力する機能有り,日本語可 * 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.) -[[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.[[コミットログ:https://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:https://sourceforge.net/projects/rtf2latex2e/]] RTF ファイル → LaTeX.GPL.[[コミットログ:https://sourceforge.net/p/rtf2latex2e/code/log/]] -[[docx2tex:https://github.com/transpect/docx2tex]] (Microsoft docx → TeX.[[BSD 2-clause "Simplified" License:https://github.com/transpect/docx2tex/blob/master/LICENSE]]) -[[WP2LaTeX:https://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/]] * 手書き数式 → LaTeX [#nf39b090] -http://webdemo.myscript.com/views/math.html * dviware [#k08c2f40] -[[CTAN.ring:dviware]] -[[dvipdfmx]] -[[dvips]] -[[dvisvgm]] -[[dvipng]] * その他(未整理) [#pd1eb72f] -[[Wikipedia.en:Lightweight_markup_language]] -[[Mathpix:https://mathpix.com/]] -[[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/]] -[[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. -[[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:https://www.andres-loeh.de/lhs2tex/]] lhs2TeX is a preprocessor to generate LaTeX code from literate Haskell sources. -[[i2pdf:https://freeshell.de/~luis/i2pdf/]] -[[123 PDF to Image:http://www.freepdftoimage.com/]] -[[xdoc2txt:http://ebstudio.info/home/xdoc2txt.html]] (PDF,WORD,EXCEL,一太郎などの各種バイナリ文書からテキストを抽出) -[[soffice2html:https://www.catch.jp/openoffice/opendocument/perl_to_html.html]] (Apache OpenOffice Writer のフォーマットである.sxw を HTML に変換する Perl スクリプト.writer2latexあたりと併用できる?) -[[tab4tex:https://ctan.org/pkg/tab4tex]] (テキストファイルから LaTeX の表に変換) -[[DragMath:https://github.com/maths/dragmath]] (フリーの "drag and drop" 数式エディタ.LaTeX 形式の出力が可能.Java applet) -[[Texts — Structured Content Editor for Mac OS X and Windows:http://www.texts.io/]] (Markdown + TEX + WYSIWYM) -[[TeX converter:https://tools.9revolution9.com/math/tex/]] (TeXのテキストを入力すると数式を表示してくれるWebサービス) -[[TeX Editor:https://tools.9revolution9.com/math/tex/]] (TeXのテキストを入力すると数式を表示してくれるWebサービス)