Class: TeXML::TextNode

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

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



175
176
177
178
179
180
181
182
# File 'lib/texml.rb', line 175

def to_tex
  parent = @node.parent
  if parent.name == 'env' && parent['name'] == 'verbatim'
	return @node.to_s
  else
    return TeXML.quote(@node.to_s)
  end
end