mirror of https://github.com/mpastell/Weave.jl
Separate environment for term chunks in tex format
parent
18d690d19f
commit
eaa3f34578
|
@ -7,6 +7,8 @@
|
|||
|
||||
\DefineVerbatimEnvironment{juliaout}{Verbatim}{}
|
||||
\DefineVerbatimEnvironment{juliacode}{Verbatim}{fontshape=sl}
|
||||
\DefineVerbatimEnvironment{juliaterm}{Verbatim}{}
|
||||
|
||||
|
||||
\title{Introduction to Julia Weave}
|
||||
|
||||
|
@ -46,4 +48,4 @@ plot(x=x, y = cos(2x), Geom.line)
|
|||
@
|
||||
|
||||
|
||||
\end{document}
|
||||
\end{document}
|
||||
|
|
|
@ -116,6 +116,8 @@ const tex = Tex("Latex with custom code environments",
|
|||
:codeend => "\\end{juliacode}",
|
||||
:outputstart => "\\begin{juliaout}",
|
||||
:outputend => "\\end{juliaout}",
|
||||
:termstart => "\\begin{juliaterm}",
|
||||
:termend => "\\end{juliaterm}",
|
||||
:fig_ext => ".pdf",
|
||||
:extension =>"tex",
|
||||
:out_width=> "\\linewidth",
|
||||
|
|
Loading…
Reference in New Issue