Class: Deplate::Formatter::LaTeX::Styles::TableFormal

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

Overview

Displays tables as found in scientific textbooks <TBD> We should also use booktabs.sty here

Direct Known Subclasses

TableBox

Instance Method Summary collapse

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

#format_table, #initialize, #table_begin_body, #table_begin_head, #table_caption, #table_caption_text, #table_cell, #table_cols, #table_end_body, #table_end_foot, #table_foot_row, #table_head_row, #table_high_row, #table_horizontal_ruler, #table_horizontal_ruler_from_to, #table_indented_row, #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_args(rv, *args) ⇒ Object



300
301
302
# File 'lib/deplate/mod/latex-styles.rb', line 300

def table_args(rv, *args)
    rv + %{ rules="groups"}
end

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



316
317
318
# File 'lib/deplate/mod/latex-styles.rb', line 316

def table_begin_foot(rv, invoker, *args)
    [horizontal_ruler(invoker, rv), rv].compact.join("\n")
end

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



304
305
306
# File 'lib/deplate/mod/latex-styles.rb', line 304

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

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



312
313
314
# File 'lib/deplate/mod/latex-styles.rb', line 312

def table_end_head(rv, invoker, *args)
    [rv, horizontal_ruler(invoker, rv)].compact.join("\n")
end

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



308
309
310
# File 'lib/deplate/mod/latex-styles.rb', line 308

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