Class: Deplate::Formatter::LaTeX::Styles::TableLandscape

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

Overview

Displays tables as a box

Instance Method Summary collapse

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

#format_table, #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_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

#initialize(deplate) ⇒ TableLandscape

Returns a new instance of TableLandscape.



260
261
262
263
# File 'lib/deplate/mod/latex-styles.rb', line 260

def initialize(deplate)
    super
    @formatter.add_package("lscape")
end

Instance Method Details

#table_bottom(rv, invoker, capAbove, rown) ⇒ Object



267
268
269
# File 'lib/deplate/mod/latex-styles.rb', line 267

def table_bottom(rv, invoker, capAbove, rown)
    "#{rv}\\end{landscape}\n"
end

#table_top(rv, invoker, capAbove, rown) ⇒ Object



264
265
266
# File 'lib/deplate/mod/latex-styles.rb', line 264

def table_top(rv, invoker, capAbove, rown)
    "\\begin{landscape}\n#{rv}"
end