\documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{textgreek} \usepackage{graphicx} \usepackage{fancyvrb} \usepackage{hyperref} \DefineVerbatimEnvironment{juliaout}{Verbatim}{} \DefineVerbatimEnvironment{juliacode}{Verbatim}{fontshape=sl} \DefineVerbatimEnvironment{juliaterm}{Verbatim}{} \title{Introduction to Julia Weave} \begin{document} \maketitle This a sample \href{http://julialang.org/}{Julia} latex document that can be executed using Weave. Output from code chunks and Gadfly plots will be included in the weaved document. This documented can be turned into Latex document with captured result from Julia prompt. \section*{Terminal chunk} <>= x = 1:10 d = {"Weave" => "testing"} y = [2, 4 ,8] @ \section*{Capturing figures} The figures and code can be included in the output. <>= using Gadfly x = linspace(0, 2π, 200) plot(x=x, y = sin(x), Geom.line) @ <>= plot(x=x, y = cos(x), Geom.line) @ <>= plot(x=x, y = cos(2x), Geom.line) @ \end{document}