Class: Deplate::Formatter::LaTeX::Styles::TableDense08

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

Overview

Denser tables

Constant Summary collapse

@@dense08baselinestretch =
false

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) ⇒ TableDense08

Returns a new instance of TableDense08.



242
243
244
245
246
247
248
# File 'lib/deplate/mod/latex-styles.rb', line 242

def initialize(deplate)
    super
    # unless @@dense08baselinestretch
    #     @formatter.output_at(:pre, :body_beg, "\\newcommand{\\origBaseLineStretch}{}")
    #     @@dense08baselinestretch = true
    # end
end

Instance Method Details

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



252
253
254
# File 'lib/deplate/mod/latex-styles.rb', line 252

def table_bottom(rv, invoker, capAbove, rown)
    "#{rv}\\setlength{\\tabcolsep}{1.25\\tabcolsep}\n\\renewcommand{\\arraystretch}{1.0}\n"
end

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

unless @@dense08baselinestretch

@formatter.output_at(:pre, :body_beg, "\\newcommand{\\origBaseLineStretch}{}")
@@dense08baselinestretch = true

end



249
250
251
# File 'lib/deplate/mod/latex-styles.rb', line 249

def table_top(rv, invoker, capAbove, rown)
    "\\renewcommand{\\arraystretch}{0.8}\n\\setlength{\\tabcolsep}{0.8\\tabcolsep}\n#{rv}"
end