Class: Deplate::Formatter::LaTeX::Styles::TableGrid

Inherits:
Deplate::Formatter::LaTeX::Styles show all
Defined in:
lib/deplate/mod/latex-styles.rb

Overview

Displays tables as a grid

Instance Method Summary collapse

Methods inherited from Deplate::Formatter::LaTeX::Styles

#format_table, #initialize, #table_args, #table_begin_body, #table_begin_foot, #table_begin_head, #table_caption, #table_caption_text, #table_cell, #table_cols, #table_end_body, #table_end_foot, #table_end_head, #table_foot_row, #table_head_row, #table_high_row, #table_horizontal_ruler, #table_horizontal_ruler_from_to, #table_longtable_bottom, #table_longtable_top, #table_normal_row, #table_table_bottom, #table_table_top, #table_tabular_bottom, #table_tabular_top, #tabular_col_justifications, #tabular_col_widths

Constructor Details

This class inherits a constructor from Deplate::Formatter::LaTeX::Styles

Instance Method Details

#table_bottom(rv, invoker, *args) ⇒ Object



275
276
277
# File 'lib/deplate/mod/latex-styles.rb', line 275

def table_bottom(rv, invoker, *args)
    [horizontal_ruler(invoker, rv, :bottom => true), rv].join("\n")
end

#table_indented_row(rv, invoker, row, indent, t) ⇒ Object



283
284
285
286
287
288
289
# File 'lib/deplate/mod/latex-styles.rb', line 283

def table_indented_row(rv, invoker, row, indent, t)
    if row.from_bottom == 0
        rv
    else
        [rv, horizontal_ruler(invoker, rv)].join("\n")
    end
end

#table_top(rv, invoker, *args) ⇒ Object



279
280
281
# File 'lib/deplate/mod/latex-styles.rb', line 279

def table_top(rv, invoker, *args)
    [rv, horizontal_ruler(invoker, rv, :top => true)].join("\n")
end

#tabular_vertical_rulers(rv, invoker, *args) ⇒ Object



291
292
293
# File 'lib/deplate/mod/latex-styles.rb', line 291

def tabular_vertical_rulers(rv, invoker, *args)
    [1] * (@formatter.table_row_size(invoker.elt) + 1)
end