E-Mail:

tex

Author Avatar

Transform ruby array to tex table

This has probably been written in many projects, anyways here is the code I wrote up to convert a ruby table / 2-dimensional array / array of arrays to a tex table:
def to_tex(table, user_opts = {})
default_opts = {:center => true, :sep_cols => true, :col_align => ‘l’}
opts = default_opts.merge(user_opts)
lines = […]