Formatting

pull/17/head
Matti Pastell 2014-12-05 12:59:05 +02:00
parent b73137bd12
commit e6c7d5b59d
2 changed files with 32 additions and 24 deletions

View File

@ -2,34 +2,41 @@ const rcParams =
@compat Dict{Symbol,Any}(
:plotlib => "PyPlot",
:storeresults => false,
:chunk_defaults => Dict{Symbol,Any}(:echo=> true,
:results=> "markup",
:fig=> true,
:include=> true,
:eval => true,
:fig_cap=> false,
:fig_width => 6, #Size in inches
:fig_height => 4,
:fig_path=> "figures",
:out_width=> nothing, #Defined separately for each format
:out_height=> nothing,
:fig_ext => ".png",
:dpi => 96,
:term=> false,
:name=> nothing,
:wrap=> true,
:fig_pos=> nothing,
:fig_env=> nothing,
:engine=> "julia",
:option_string=> "")
:chunk_defaults =>
Dict{Symbol,Any}(
:echo=> true,
:results=> "markup",
:fig=> true,
:include=> true,
:eval => true,
:fig_cap=> false,
#Size in inches
:fig_width => 6,
:fig_height => 4,
:fig_path=> "figures",
:dpi => 96,
:term=> false,
:name=> nothing,
:wrap=> true,
:engine=> "julia",
:option_string=> ""
#Defined in formats
:fig_ext => nothing,
:fig_pos=> nothing,
:fig_env=> nothing,
:out_width=> nothing,
:out_height=> nothing,
)
)
# Working towards Knitr compatible options, implemented options are added to defaultoptions dictionary above
# and work in progress stays here, options from https://github.com/yihui/knitr/blob/master/R/defaults.R
# If you need a particular options, consider implementing it and making a pull request.
# Working towards Knitr compatible options, implemented options are
# added to defaultoptions dictionary above and work in progress stays here,
# options from https://github.com/yihui/knitr/blob/master/R/defaults.R
# If you need a particular options, consider implementing it and making a
# pull request.
#tidy = FALSE,
#tidy.opts = NULL,

View File

@ -121,7 +121,8 @@ const tex = Tex(@compat Dict{Symbol,Any}(:codestart => "\\begin{juliacode}",
:doctype => "tex"
))
const texminted = Tex(@compat Dict{Symbol,Any}(:codestart => "\\begin{minted}[mathescape, fontsize=\\small, xleftmargin=0.5em]{julia}",
const texminted = Tex(@compat Dict{Symbol,Any}(
:codestart => "\\begin{minted}[mathescape, fontsize=\\small, xleftmargin=0.5em]{julia}",
:codeend => "\\end{minted}",
:outputstart => "\\begin{minted}[fontsize=\\small, xleftmargin=0.5em, mathescape, frame = leftline]{text}",
:outputend => "\\end{minted}",