Weave.jl/src/config.jl

71 lines
2.8 KiB
Julia

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 => 8, #Size in inches
:fig_height => 6,
:fig_path=> "figures",
:out_width=> nothing, #Defined separately for each format
:out_height=> nothing,
:fig_ext => ".png",
:dpi => 200,
:term=> false,
:name=> nothing,
:wrap=> true,
:fig_pos=> nothing,
:fig_env=> nothing,
:engine=> "julia",
:option_string=> "")
)
# 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,
#collapse = FALSE
#prompt = FALSE
#highlight = TRUE
#strip.white = TRUE
#size = 'normalsize'
#background = '#F7F7F7',
#cache = FALSE
#cache.path = 'cache/'
#cache.vars = NULL
#cache.lazy = TRUE,
#dependson = NULL
#autodep = FALSE,
#fig.keep = 'high'
#fig.show = 'asis'
#fig.align = 'default'
#dev = NULL
#dev.args = NULL
#fig.ext = NULL
#fig.scap = NULL
#fig.lp = 'fig:'
#fig.subcap = NULL,
#out.extra = NULL
#fig.retina = 1,
#external = TRUE
#sanitize = FALSE
#interval = 1
#aniopts = 'controls,loop',
#warning = TRUE
#error = TRUE
#message = TRUE,
#render = NULL,
#ref.label = NULL
#child = NULL
#split = FALSE
#purl = TRUE