# File lib/maruku/output/to_latex.rb, line 422
        def to_latex_table
                align = self.align
                num_columns = align.size

                head = @children.slice(0, num_columns)
                rows = []
                i = num_columns
                while i<@children.size
                        rows << @children.slice(i, num_columns)
                        i+=num_columns
                end
                
                h = {:center=>'c',:left=>'l',:right=>'r'}
                align_string = align.map{|a| h[a]}.join('|')
                
                s = "\\begin{tabular}{#{align_string}}\n"
                        
                        s += array_to_latex(head, '&') + "\\\\" +"\n"
                        
                        s += "\\hline \n"
                        
                        rows.each do |row|
                                s += array_to_latex(row, '&') + "\\\\" +"\n"
                        end
                        
                s += "\\end{tabular}"
                
                # puts table in its own paragraph
                s += "\n\n"
                
                s
        end