Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (38 sloc) 1.04 KB

% Simple example % Stephen Eglen % 2013-07-10

This first chunk creates the extra lines for the latex header. We use the cat engine to save the content of the chunk to a file specified in the engine.opts option. This file will be passed to pandoc via the --include-in-header (or -H) option.

% Extra header text for latex
% use append=TRUE for cat() to append to an existing file

We can then do some simple R math.


About this document

To compile this document in R:

pandoc('095-pandoc-header', format='latex')
# or two commands in one
pandoc(knit('095-pandoc-header.Rmd'), format='latex')