Class: TeXML::CmdNode
Instance Method Summary collapse
Methods inherited from Node
#childrenValue, create, #initialize
Constructor Details
This class inherits a constructor from TeXML::Node
Instance Method Details
#to_tex ⇒ Object
90 91 92 93 94 95 |
# File 'lib/texml.rb', line 90 def to_tex name = @node['name'] nl_before = (@node['nl1'] == '1') ? "\n" : '' nl_after = (@node['nl2'] == '1') ? "\n" : '' return nl_before + "\\#{name}" + childrenValue('opt') + childrenValue('parm') + ' ' + nl_after end |