For a simple solution, you might try Mustache which can iterate over a data frame. Something like this could be generalized:
using Mustache using DataFrames d = DataFrame(a=1:10, b=rand(10)) d[:b] = round(d[:b],2) tpl=""" \\begin{table} \\centering \\begin{tabular}{cc} {{#df}}{{a}}&{{b}}\\\\{{/df}} \\end{tabular} \\caption{ {{caption}} } \\label{tab:{{label}}} \\end{table} """ render(tpl, ["df"=>d, "caption"=>"caption", "label" => "label"]) |> print On Saturday, February 28, 2015 at 4:52:13 AM UTC-5, Tamas Papp wrote: > > Hi, > > I am solving some economic models in Julia. I have vectors that describe > various moments, for some data and then for a bunch of models. I would > like to export them to LaTeX, and if possible to ASCCI like org-mode. > > | moment | data | model1 | model2 | ... | > |----------+------+--------+--------+-----| > | UE / 1m | 0.37 | 0.37 | 0.37 | | > | UE / 12m | 0.59 | 0.90 | 0.89 | | > | ... | | | | | > > I found LaTeX.jl, I am wondering if anyone can suggest another solution, > especially for the ASCII tables. Dumping in some format that Julia can > export to, then converting with some external tool would not be a > problem, especially since I could automate the whole thing from Julia. > > Best, > > Tamas >