lib/tex/context/contextsetup.rb
# Return HTML representation of the command.
Return HTML representation of the command.
Return HTML representation of the command .
def to_html
      first_line = []
      details    = []
      @arguments.each_with_index do |arg,i|
        cls=@enum[ i % @enum.size]
        opt_or_not_opt = arg.optional? ? span(:class => "optional") { arg.to_html(false) } : arg.to_html(false)
        first_line << span(:class => cls) {  opt_or_not_opt }
        details    << arg.to_html(true, cls)
      end
      table(:class  =>  "cmd", :cellspacing => "4", :cellpadding => "2") {
        tr {  
          td(:colspan => "2", "class" => "cmd") { cmd_name_html(true) + first_line.to_s }  
        } + 
        details.to_s
      }
    end
def to_html first_line = [ ] details = [ ] @arguments . each_with_index do | arg , i | cls = @enum [ i % @enum . size ] opt_or_not_opt = arg . optional? ? span ( :class => "optional" ) { arg . to_html ( false ) } : arg . to_html ( false ) first_line << span ( :class => cls ) { opt_or_not_opt } details << arg . to_html ( true , cls ) end table ( :class => "cmd" , :cellspacing => "4" , :cellpadding => "2" ) { tr { td ( :colspan => "2" , "class" => "cmd" ) { cmd_name_html ( true ) + first_line . to_s } } + details . to_s } end
Return HTML representation of the command.
Return HTML representation of the command .