GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LATEXML::CORE::TOKEN (3)

.ds Aq ’

NAME

"LaTeXML::Core::Token" - representation of a Token: a pair of character and category code (catcode); It extends LaTeXML::Common::Object.

    Exported functions

$catcode = CC_ESCAPE; Constants for the category codes:



  CC_BEGIN, CC_END, CC_MATH, CC_ALIGN, CC_EOL,
  CC_PARAM, CC_SUPER, CC_SUB, CC_IGNORE,
  CC_SPACE, CC_LETTER, CC_OTHER, CC_ACTIVE,
  CC_COMMENT, CC_INVALID, CC_CS, CC_NOTEXPANDED.



[The last 2 are (apparent) extensions, with catcodes 16 and 17, respectively].

$token = Token($string,$cc); Creates a LaTeXML::Core::Token with the given content and catcode. The following shorthand versions are also exported for convenience:



  T_BEGIN, T_END, T_MATH, T_ALIGN, T_PARAM,
  T_SUB, T_SUPER, T_SPACE, T_LETTER($letter),
  T_OTHER($char), T_ACTIVE($char),
  T_COMMENT($comment), T_CS($cs)



@tokens = Explode($string); Returns a list of the tokens corresponding to the characters in $string. All tokens have catcode CC_OTHER, except for spaces which have catcode CC_SPACE.
@tokens = ExplodeText($string); Returns a list of the tokens corresponding to the characters in $string. All (roman) letters have catcode CC_LETTER, all others have catcode CC_OTHER, except for spaces which have catcode CC_SPACE.
UnTeX($object); Converts $object to a string containing TeX that created it (or could have). Note that this is not necessarily the original TeX code; expansions or other substitutions may have taken place.

    Methods

@tokens = $object->unlist; Return a list of the tokens making up this $object.
$string = $object->toString; Return a string representing $object.
$string = $token->getCSName; Return the string or character part of the $token; for the special category codes, returns the standard string (eg. T_BEGIN-getCSName> returns {).
$string = $token->getString; Return the string or character part of the $token.
$code = $token->getCharcode; Return the character code of the character part of the $token, or 256 if it is a control sequence.
$code = $token->getCatcode; Return the catcode of the $token.

CONTENTS

AUTHOR

pBruce Miller <bruce.miller@nist.gov>

COPYRIGHT

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LATEXML::CORE::TOKEN (3) 2014-12-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.