문서의 이전 판입니다!
pandoc의 템플릿에 대한 정리.
-s/--standalone
으로 문서를 변환ᅟ할 때 기본 템플릿 보기.
pandoc -D FORMAT # FORMAT은 html 등이다.
기본적으로 새 줄이 있어도 이어서 보여준다. 새 줄기호 자체는 두 개 이상의 공백(문단 나누기) 혹은 백슬래시 후 새 줄 하나(새 줄 내리기)로 표현.
=
를 아래에 둔 텍스트a level one header ==================
-
를 아래에 둔 텍스트a level two header -------------------
#
갯수를 1~6개로 조정하여 지정# A level one header ### a level three header ###
foo
로 ID 지정.# My header {#foo} ## My header ## {#foo} My other header {#foo} ----------------------
# My Header {-} # My header {.unnumbered}
--toc|--table-of-contents
옵션 사용시 이용됨.# My Header {#foo} go to header [Header title](#foo). or go to header [My Header]. <- 헤더 텍스트에 중복에 없을 경우
> 이것은 > 이용된 것이다.
>
> 이것은 인용된 것이여. > 이것도 인용된 것이여.
>
를 해 준다.> 인용이고 > > > 이중 인용이지
~
혹은 `
세 글자 이상으로 감싸진 코드 블럭은 인덴트 없이도 코드 블럭으로 간주된다.~~~ if (a > 3) { moveShiep(5 * gravity, DOWN); } ~~~
~
나 `
를 사용할 경우에는 코드 블럭 감싸개를 더 많은 글자로 만들어주면된다.```haskell
형태로 시작하면 haskell 코드 블럭임을 나타낸다.|
으로 시작하는 줄들은 합쳐서 코드 블럭으로 간주. 내부 공백 유지됨.| The limerick... | In space | But the good | So seldoc | 200 Main st. | Berkeley, CA 94718
\newpage
, \pagebreak
는 페이지를 나누는 작용을 한다. 하지만 PDF와 Latex에만 적용된다.
pandoc --chapters, or pandoc -V documentclass=memoir or pandoc -V documentclass=book will tell pandoc to treat level 1 headers as chapters rather than sections. In both the book and memoir document classes, chapters are preceded by page breaks. I'm not sure exactly what you need to set in your header to get page breaks before sections. Have you read the documentation for the memoir class? It includes a \setbeforesectionskip{} command that might a place to start.