Markdown To Docx
vscode-pandoc
- https://chinsun9.github.io/2021/03/24/vscode-pandoc/
- VisualStudio에 vscode-pandoc 확장 도구를 설치하고 windows에 pandoc를 설치 한다. md 파일과 같은 폴더에 docx 파일을 생성 한다.
Pondoc
- 홈페이지 : https://pandoc.org/
- 다운로드 : https://pandoc.org/installing.html
- 매뉴얼
- 옵션 : https://pandoc.org/MANUAL.html#options
- 사용자 가이드(pdf) : https://pandoc.org/MANUAL.pdf
#--- source.md를 target.docx로 변환
pandoc source.md -f markdown -t docx -s -c obconStyle.css -o manual/files/target.docx
#--- source.md를 target.pdf로 변환
apt install texlive-xetex librsvg2-bin texlive-science
pandoc source.md --pdf-engine=xelatex -o manual/files/target.pdf
- -f (--form) : Source 파일 포맷 - html, markdown, ...
- -t (--to) : Target 파일 포맷 - html, markdown, ...
- -s (--standalone) : 적당하게 문서의 header와 footer를 자동으로 생성 한다.
- -c (-css) : CSS StyleSheet 파일명 (Default. epub.css)
- -o (--output) : Target 파일명
Gitbook
Gitbook 폴더 구조
- book.json : 설정 파일
- README.md : 문서의 Header (필수)
- SUMMARY.md : 목차
- GLOSSARY.md : 용어 사전
- chapter-1
- README.md
- ~.md
- chapter-2
- README.md
- ~.md
#--- Gitbook 설치
npm install -g gitbook-cli gitbook
gitbook -V
#--- 파일 변환
gitbook pdf ./ manual/files/target.pdf
gitbook epub ./ manual/files/target.epub
gitbook mobi ./ manual/files/target.mobi
Last modified, 2021.05.17 ~ 2021.05.17, version 0.01
최종 수정일: 2022-10-24 19:17:34
이전글 :
다음글 :