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



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

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

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



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

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

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



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

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

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



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

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

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



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

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