parameters: (self, text)
return_statement: return text
docstring: Convert itex to MathML.
  
          If the itex2mml binary is set, we use it to convert the
          itex to MathML. Otherwise, the text is unprocessed and 
          return as is.
  
          ---
          h1. itex
  
          Textile can automatically convert itex code to MathML(Mathematical Markup Language)
          for you, if you have the itex2MML binary (you can download it
          from the "Movable Type plugin":http://golem.ph.utexas.edu/~distler/blog/files/itexToMML.tar.gz).
  
          Block equations should be enclosed inbetween @\[@ and @\]@:
  
          pre. \[ e^{i\pi} + 1 = 0 \]
  
          Will be translated to:
  
          pre. <math xmlns='http://www.w3.org/1998/Math/MathML' mode='display'>
          <msup><mi>e</mi> <mrow><mi>i</mi>
          <mi>&amp;pi;</mi></mrow></msup>
          <mo>+</mo><mn>1</mn><mo>=</mo><mn>0</mn>
          </math>
  
          Equations can also be displayed inline:
  
          pre. Euler's formula, $e^{i\pi}+1=0$, ...
  
          (Note that if you want to display MathML(Mathematical Markup Language)
          your content must be served as @application/xhtml+xml@, which is not
          accepted by all browsers.)
docstring_summary: Convert itex to MathML.
docstring_tokens: Convert itex to MathML .
function: def itex(self, text):
          """Convert itex to MathML.
  
          If the itex2mml binary is set, we use it to convert the
          itex to MathML. Otherwise, the text is unprocessed and 
          return as is.
  
          ---
          h1. itex
  
          Textile can automatically convert itex code to MathML(Mathematical Markup Language)
          for you, if you have the itex2MML binary (you can download it
          from the "Movable Type plugin":http://golem.ph.utexas.edu/~distler/blog/files/itexToMML.tar.gz).
  
          Block equations should be enclosed inbetween @\[@ and @\]@:
  
          pre. \[ e^{i\pi} + 1 = 0 \]
  
          Will be translated to:
  
          pre. <math xmlns='http://www.w3.org/1998/Math/MathML' mode='display'>
          <msup><mi>e</mi> <mrow><mi>i</mi>
          <mi>&amp;pi;</mi></mrow></msup>
          <mo>+</mo><mn>1</mn><mo>=</mo><mn>0</mn>
          </math>
  
          Equations can also be displayed inline:
  
          pre. Euler's formula, $e^{i\pi}+1=0$, ...
  
          (Note that if you want to display MathML(Mathematical Markup Language)
          your content must be served as @application/xhtml+xml@, which is not
          accepted by all browsers.)
          """
          if itex2mml:
              try:
                  text = os.popen("echo '%s' | %s" % (text, itex2mml)).read()
              except:
                  pass
  
          return text
function_tokens: def itex ( self , text ) : if itex2mml : try : text = os . popen ( "echo '%s' | %s" % ( text , itex2mml ) ) . read ( ) except : pass return text