800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
|
# File 'lib/review/latexbuilder.rb', line 800
def table_begin(ncols)
if @latex_tsize
@tsize = @latex_tsize
end
if @tsize
if /\A[\d., ]+\Z/.match?(@tsize)
@cellwidth = @tsize.split(/\s*,\s*/)
@cellwidth.collect! { |i| "p{#{i}mm}" }
puts macro('begin', 'reviewtable', '|' + @cellwidth.join('|') + '|')
else
@cellwidth = separate_tsize(@tsize)
puts macro('begin', 'reviewtable', @tsize)
end
else
puts macro('begin', 'reviewtable', (['|'] * (ncols + 1)).join('l'))
@cellwidth = ['l'] * ncols
end
puts '\\hline'
end
|