# File lib/maruku/output/to_latex.rb, line 259
  def to_latex_header
    header_levels = %w(section subsection subsubsection)
    h = header_levels[self.level - 1] || 'paragraph'

    title = children_to_latex
    if number = section_number
      title = number + title
    end

    if id = self.attributes[:id]
      # drop '#' at the beginning
      id = id[1..-1] if id.start_with? '#'
      %{\\hypertarget{%s}{}\\%s*{{%s}}\\label{%s}\n\n} % [ id, h, title, id ]
    else
      %{\\%s*{%s}\n\n} % [ h, title]
    end
  end