This package allows to construct LaTeX documents programmatically.
It is assumed that you have pdflatex
installed. You can then install LaTeX.jl
like this:
Pkg.add("LaTeX")
x = linspace(-6,6,100)
y = sin(x)./x
import Winston
w = Image([], 7, Winston.plot(x, y))
import Gadfly
g = Image(7, 7, Gadfly.plot(x = x, y = y))
openpdf(report(Section("Plots",Figure("Plot comparison",Tabular({w,g})))))
content
can always be either a single item or an array of items.
latex = report(content)
assembles the LaTeX fileopenpdf(latex)
compiles the LaTeX file and tries to open itSection(title, content)
creates a new section. A section is automatically translated to a Linux chapter, section or subsection according to its nestingFigure(caption, content)
Table(caption content)
Tabular(content)
Image(height, width, Array or Winston.FramePlot or Gadfly.Plot)
, where the array can be either of size(m,n,1)
or RGB(m,n,3)
, with the values in the range0..1
- make preable configurable
- adapt
openpdf
to linux - add tests