# File lib/maruku/output/to_latex.rb, line 532
  def array_to_latex(array, join_char='')
    e = []
    array.each do |c|
      if c.kind_of?(String)
        e << string_to_latex(c)
      else method = c.kind_of?(Maruku::MDElement) ? "to_latex_#{c.node_type}" : "to_latex"
        next unless c.respond_to?(method)

        h =  c.send(method)

        unless h
          raise "Nil latex for #{c.inspect} created with method #{method}"
        end

        if h.kind_of? Array
          e.concat h
        else
          e << h
        end
      end
    end
    e.join(join_char)
  end