訊息
|
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 取代。
- Mind on Mind, 为 Jekyll 装上瑞士军刀 Pandoc
- Using Pandoc to Build Your ePub eBook
- 用 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
- 若要轉為 PDF 要透過 texengine,像是 Miktex
- http://johnmacfarlane.net/pandoc/
Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, or LaTeX to
- HTML formats: XHTML, HTML5, and HTML slide shows using Slidy, Slideous, S5, or DZSlides.
- Word processor formats: Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML
- Ebooks: EPUB
- Documentation formats: DocBook, GNU TexInfo, Groff man pages
- TeX formats: LaTeX, ConTeXt, LaTeX Beamer slides
- PDF via LaTeX
- Lightweight markup formats: Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile
用法:
Facebook
|
Post preview:
Close preview