2013年6月25日 星期二

[Software] 文件轉檔工具

好用的文件轉檔工具: Pandoc

常用指令: pandoc -s input.format -o output.format

這邊 format可以是 .tex, .html, .pdf, .doc, ...等等, 相當多, 注意: 這邊的 -s指的是 standalone而非 source

option 選項:

  • 可下 -m做數學轉換, 還有 --webtex或 --mathjax等可轉換, 但注意, 主要以 $...$排版, \begin{equation} 等環境並無法使用
  • --toc: table of content, 產生目錄 
  • -A: 加入內容於後, e.g. pandoc -s input.txt -A sample.html -o output.html, 則程式會將 input.txt轉成 html格式, 並在檔案後頭加入 sample.html的內容
  • -B: 加入內容於前
  • -c ./sample.css: 可加入 css的排版樣式

沒有留言:

張貼留言