Class: Deplate::Formatter::LaTeX::Styles::TableList

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

Overview

List

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, #tabular_vertical_rulers

Constructor Details

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

Instance Method Details

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



323
324
325
# File 'lib/deplate/mod/latex-styles.rb', line 323

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

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



331
332
333
334
335
336
337
# File 'lib/deplate/mod/latex-styles.rb', line 331

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



327
328
329
# File 'lib/deplate/mod/latex-styles.rb', line 327

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