Class: ConTeXtSetup::Displaymath

Inherits:
Param show all
Defined in:
lib/tex/context/contextsetup.rb

Instance Method Summary collapse

Methods inherited from Param

#initialize, #opt, #optional?, #sanitize_html

Methods inherited from SetupXML

#initialize, parse_xml, #parse_xml, tag_method

Constructor Details

This class inherits a constructor from ConTeXtSetup::Param

Instance Method Details

#==(other) ⇒ Object



475
476
477
# File 'lib/tex/context/contextsetup.rb', line 475

def ==(other)
  ConTeXtSetup::Displaymath===other
end

#to_html(detail = true, cls = "first") ⇒ Object



465
466
467
468
469
470
471
472
473
474
# File 'lib/tex/context/contextsetup.rb', line 465

def to_html(detail=true,cls="first")
  head=show
  if detail
    tr { 
      td(:class => cls) { head } + td(:class => cls) { "<i>formula</i>" }
    }
  else
    head
  end
end