以前から、テキストファイルからWord、PDF、epub出力するツールを探していた。 Haskellで作られたツールPandocでようやく意図できたものが出力できたのでメモ。 【元ネタ】 『ソフトウェアの基礎』のePub版を公開しました。 - みずぴー日記 Pandocのリンク: プログラマの思索 Pandoc - Demos 【インストール】 Windowsでは、ワンクリックインストーラーを使えば、HaskellのGHCを入れなくてもツールを導入できる。 Pandoc - Installing pandoc --help で認識すればOK。 Rubyのgem、Pythonのeasy_installに相当するHaskellのライブラリインストールコマンドcabalをインストールするのは面倒だったから。 【epub, word出力方法】 Pandoc - Creating an ebook