725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
|
# File 'lib/review/latexbuilder.rb', line 725
def table(lines, id = nil, caption = nil)
if caption.present?
if @book.config.check_version('2', exception: false)
puts "\\begin{table}[h]%%#{id}"
else
puts "\\begin{table}%%#{id}"
end
end
sepidx, rows = parse_table_rows(lines)
begin
if caption_top?('table') && caption.present?
(id, caption)
end
rescue KeyError
app_error "no such table: #{id}"
end
table_begin(rows.first.size)
table_rows(sepidx, rows)
table_end
if caption.present?
unless caption_top?('table')
(id, caption)
end
puts '\end{table}'
end
blank
end
|