문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
pandoc [2013/11/17 19:05] kwon37xi 새로 만듦 |
pandoc [2014/08/11 14:57] (현재) kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== pandoc ====== | ====== pandoc ====== | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | ===== Getting Started ===== | ||
+ | * [[http:// | ||
+ | * 화면상의 markdown을 html로 변환< | ||
+ | pandoc -f markdown -t html | ||
+ | Hello *pandoc*! | ||
+ | # < | ||
+ | # 출력 | ||
+ | < | ||
+ | </ | ||
+ | * 파일 변환< | ||
+ | # markdown 파일을 html로 변환 | ||
+ | pandoc test1.md -f markdown -t html -s -o test1.html | ||
+ | |||
+ | # to docx | ||
+ | pandoc test.md -f markdown -t docx -s -o test.docx | ||
+ | |||
+ | # to odt, 보통은 확장자에 따라 자동인식하므로 포맷 지정을 안해도 된다. | ||
+ | pandoc test.md -s -o test.odt | ||
+ | |||
+ | # 여러 파일 동시 처리 | ||
+ | pandoc `ls *.md | sort` -s -o all.odt | ||
+ | </ | ||
+ | * '' | ||
+ | * '' | ||
+ | * 대부분의 경우 명령행 변환은 파일 확장자를 통해 포맷을 자동 인식한다. | ||
+ | * '' | ||
+ | |||
+ | ===== User Guide ===== | ||
+ | * [[http:// | ||
+ | |||
+ | ===== To PDF ===== | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Editor support ===== | ||
+ | * [[https:// | ||
+ | |||
+ | ===== make ===== | ||
+ | GNU Make를 사용하여 pandoc markdown을 ODT로 변환하는 예. 파일을 '' | ||
+ | <code make> | ||
+ | EXPORT_DIR = export | ||
+ | ODTS := $(patsubst %.md, | ||
+ | |||
+ | all: $(addprefix $(EXPORT_DIR)/, | ||
+ | |||
+ | $(EXPORT_DIR) : | ||
+ | mkdir -p $@ | ||
+ | |||
+ | $(EXPORT_DIR)/ | ||
+ | pandoc $< -o $@ -s | ||
+ | |||
+ | clean: | ||
+ | rm -rf $(EXPORT_DIR) | ||
+ | </ | ||