title: Julia: Export results to table: example code
body: <p>Please point to example code and documentation on approaches to export some data and simulation results to a tidy, readable table that could easily be copy-pasted or imported into documents, particularly for post-processing with <code>LaTeX</code>.  </p>
  
  <p>My current practice is along the lines of:</p>
  
  <pre><code>using DataFrames
  function show_table(mp::ModelParameters, ms::ModelSolution)
      α = mp.α; δ = ms.δ;
      d = DataFrame(Name = @data(["α"]),
                    Description = @data(["alpha"]),
                    Value = @data([α])
      )
      push!(d, @data(["δ", "delta", δ]))
      return(d)
  end
  
      2×3 DataFrames.DataFrame
      │ Row │ Name │ Description │ Value │
      ├─────┼──────┼─────────────┼───────┤
      │ 1   │ "α"  │ "alpha"     │ 1.01  │
      │ 2   │ "δ"  │ "delta"     │ 2.02  │
  </code></pre>
  
  <p>Turning the above into a <code>LaTeX</code> table will require some work. Any step in the right direction will be appreciated. </p>
  
  <p>I have found a promising package named <a href="https://github.com/rened/LaTeX.jl" rel="nofollow noreferrer">LaTeX.jl</a> that does not seem to be maintained and/or has been superseded.  The dream would be to have something like <a href="http://jakeruss.com/cheatsheets/stargazer.html" rel="nofollow noreferrer">stargazer</a>  for <code>R</code>.  </p>
  
  <p>I have used unicode Greeks in my code, e.g. α, which can be compiled with <code>XeLaTeX</code>, but a solution where <code>α</code> were converted to <code>\alpha</code> would be welcome too. An alternative would be to manually replace the names in my convenience function <code>show_table</code>, which is not so bad.</p>