Pandoc

數位出版

簡介

實體書出版

電子書出版

BLOG 網誌

Wiki 出版

影音出版

文件出版

論文出版

HTML5

閱讀器

授權方式

商業模式

文件格式

未來

軟體

數位殯葬業

案例研究

Khan Acacemy

EPub格式

reStructuredText

TreeSaver

CNXML

Pandoc

Tex

Libre Office

Markdown

Kitabu

Calibre

訊息

相關網站

參考文獻

最新修改

簡體版

English

pandoc 支援的程式語言

pandoc 1.9.1
Compiled with citeproc-hs 0.3.4 and highlighting-kate 0.5.0.2.
Syntax highlighting is supported for the following languages:
Actionscript, Ada, Alert, Alert_indent, Apache, Asn1, Asp, Awk, Bash,
Bibtex, Boo, C, Changelog, Clojure, Cmake, Coffeescript, Coldfusion,
Commonlisp, Cpp, Cs, Css, D, Diff, Djangotemplate, Doxygen, Dtd, Eiffel,
Email, Erlang, Fortran, Fsharp, Gnuassembler, Go, Haskell, Haxe, Html, Ini,
Java, Javadoc, Javascript, Json, Jsp, Latex, Lex, LiterateHaskell, Lua,
Makefile, Mandoc, Matlab, Maxima, Metafont, Mips, Modula2, Modula3,
Monobasic, Nasm, Noweb, Objectivec, Objectivecpp, Ocaml, Octave, Pascal,
Perl, Php, Pike, Postscript, Prolog, Python, R, Relaxngcompact, Rhtml, Ruby,
Scala, Scheme, Sci, Sed, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo,
Verilog, Vhdl, Xml, Xorg, Xslt, Xul, Yacc, Yaml
Copyright (C) 2006-2012 John MacFarlane
Web: http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

VisualBasic 似乎可用 Monobasic 取代。

  1. Mind on Mind, 为 Jekyll 装上瑞士军刀 Pandoc
  2. Using Pandoc to Build Your ePub eBook
  3. 用 pandoc 輸出 Markdown 文件 — http://yenlungblog.wordpress.com/2012/10/26/pandoc/ (讚!)

pandoc 預設使用 markdown 語法,這是一種簡潔的 wiki 語法,請參考。

檔案:testbook.txt

% My Book
% Sam Smith

This is my book!

# Chapter One

Chapter one is over.

# Chapter Two

Chapter two has just begun.
D:\pandoc>pandoc testbook.txt -o testbook.pdf --latex-engine=pdflatex

D:\pandoc>pandoc testbook.txt -o testbook.htm

D:\pandoc>pandoc testbook.txt -o testbook.epub

D:\pandoc>pandoc --toc testbook.txt -o testbook.pdf --latex-engine=pdflatex // 會產生有目錄的 pdf

D:\pandoc>pandoc -t epub --epub-metadata=metadata.xml -s // 使用 metadata.xml, style.css 進行格式化。
                          --epub-stylesheet=style.css --toc -o 
                          $(BUILDDIR)/book.epub *.markdown
  1. 若要轉為 PDF 要透過 texengine,像是 Miktex
  2. http://johnmacfarlane.net/pandoc/

Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, or LaTeX to

  1. HTML formats: XHTML, HTML5, and HTML slide shows using Slidy, Slideous, S5, or DZSlides.
  2. Word processor formats: Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML
  3. Ebooks: EPUB
  4. Documentation formats: DocBook, GNU TexInfo, Groff man pages
  5. TeX formats: LaTeX, ConTeXt, LaTeX Beamer slides
  6. PDF via LaTeX
  7. Lightweight markup formats: Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile

用法:

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License