Class: Deplate::Formatter::LaTeX::Styles::TableOverlay
Overview
Instance Method Summary
collapse
Methods inherited from TableBox
#tabular_vertical_rulers
Methods inherited from TableFormal
#table_args, #table_begin_foot, #table_bottom, #table_end_head, #table_top
#format_table, #table_args, #table_begin_body, #table_begin_foot, #table_begin_head, #table_bottom, #table_caption, #table_caption_text, #table_cols, #table_end_body, #table_end_foot, #table_end_head, #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, #table_top, #tabular_col_justifications, #tabular_col_widths, #tabular_vertical_rulers
Constructor Details
Returns a new instance of TableOverlay.
358
359
360
361
362
363
|
# File 'lib/deplate/mod/latex-styles.rb', line 358
def initialize(deplate)
super
options = []
options << "pdftex" if deplate.options.pdftex
@formatter.add_package("colortbl", *options)
end
|
Instance Method Details
387
388
389
|
# File 'lib/deplate/mod/latex-styles.rb', line 387
def (rv)
%{\\rowcolor[gray]{.9}#{rv}}
end
|
#styled_head_row_color(rv) ⇒ Object
383
384
385
|
# File 'lib/deplate/mod/latex-styles.rb', line 383
def styled_head_row_color(rv)
%{\\rowcolor[gray]{.8}#{rv}}
end
|
#styled_high_cell_color(rv) ⇒ Object
391
392
393
|
# File 'lib/deplate/mod/latex-styles.rb', line 391
def styled_high_cell_color(rv)
%{\\cellcolor[gray]{.9}#{rv}}
end
|
#table_cell(rv, invoker, cell, row) ⇒ Object
375
376
377
378
379
380
381
|
# File 'lib/deplate/mod/latex-styles.rb', line 375
def table_cell(rv, invoker, cell, row)
if cell.high and !row.head and !row.
styled_high_cell_color(rv)
else
rv
end
end
|
370
371
372
373
|
# File 'lib/deplate/mod/latex-styles.rb', line 370
def (rv, invoker, row, nth)
rv[0] = (rv[0])
rv
end
|
#table_head_row(rv, invoker, row, nth) ⇒ Object
365
366
367
368
|
# File 'lib/deplate/mod/latex-styles.rb', line 365
def table_head_row(rv, invoker, row, nth)
rv[0] = styled_head_row_color(rv[0])
rv
end
|