Method: MaRuKu::Out::Latex#to_latex_div

Defined in:
lib/maruku/output/to_latex.rb

#to_latex_divObject



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
# File 'lib/maruku/output/to_latex.rb', line 521

def to_latex_div
	type = self.attributes[:class]
	id = self.attributes[:id]
	case type
	  when /^un_(\w*)/
               	s = "\\begin{u#{$1}}"
#			s += "[#{@children[0].send('children_to_latex')}]"
		@children.delete_at(0)
               	s += "\n" + children_to_latex
               	s += "\\end{u#{$1}}\n"
	  when /^num_(\w*)/
                       s = "\\begin{#{$1}}"
#			s += "[#{@children[0].send('children_to_latex')}]"
		@children.delete_at(0)
		s += "\n\\label{#{id}}\\hypertarget{#{id}}{}\n"
                       s += children_to_latex
                       s += "\\end{#{$1}}\n"
                 when /^proof/
                       s = "\\begin{proof}"
                       @children.delete_at(0)
                       s += "\n" + children_to_latex
                       s += "\\end{proof}\n"
	  else
		s = children_to_latex
	end
               s
end