Skip to content

Instantly share code, notes, and snippets.

@xwmx
Created December 2, 2009 17:15
Show Gist options
  • Save xwmx/247355 to your computer and use it in GitHub Desktop.
Save xwmx/247355 to your computer and use it in GitHub Desktop.
# converts sections to chapters, subsections to sections and subsubsections to subsections after processing with pandoc.
$ pandoc -t latex -C TeXHeader -s Chapter1 Chapter2 | sed -e 's/\
\section{/\\chapter{/g' \
-e 's/subsection{/section{/g' > book.tex
$ pdflatex book.tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment