Class: TeXML::SpecNode

Inherits:
Node
  • Object
show all
Defined in:
lib/texml.rb

Constant Summary collapse

SPECIAL_MAP =
{
  'esc'	=> "\\",
  'bg'	=> '{',
  'eg'	=> '}',
  'mshift'	=> '$',		# '
  'align'	=> '&',
  'parm'	=> '#',
  'sup'	=> '^',
  'sub'	=> '_',
  'tilde'	=> '~',
  'comment'	=> '%'
}

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_texObject



166
167
168
169
# File 'lib/texml.rb', line 166

def to_tex
  cat = @node['cat']
  return (SPECIAL_MAP[cat] or '')
end