View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Joel Berger > Text-AsciiTeX-0.05 > Text::AsciiTeX::Syntax


Annotate this POD

View/Report Bugs


Text::AsciiTeX::Syntax - A description of the syntax accepted by Text::AsciiTeX



A fraction of a and b.


A superscript. One can also omit the braces. In this case the first character following ^ will be superscripted.


A subscript. Works just like the superscript (well, not exactly of course).


A n-th root of a, the argument [n] is optional. Without it it produces the square root of a.


Expands to a sigma


Expands to the product mark (pi).


Expands to the integral mark.


A closed path integral.

\left( , \right)

Expands to braces which adept to the height of their content. Available left braces are: ([{| The correspondingright braces are: )]}| All brace types can be opened by \left. or closed by <\right.>, producing a single right or left brace, respectively.


Expands to an arrow (~>), May look ugly depending on your fonts.


Expands to an arrow (->).


Expands to a limit, i.e. \limit{x \to 0}.


Draws a line above expression X


Draws a line under expression X


Left ceiling symbol


Right ceiling symbol


Left floor symbol


Right floor symbol


Insert a line break.


Escapes the character a. Useful for inserting characters like ^, and _ in your equation.

array environment
 \begin{array}[pos]{column alignments}
   a00 & a01 & ... a0n \\
   a10 & a11 & ... a1n \\
   ... & ... & ... ... \\
   am0 & am1 & ... amn

Makes an array. The optional argument pos sets the alignment of the array to t (top), b (bottom) or c (center). The column alignments consist of one character per column, l (left), c (center), or r (right). Currently asciiTeX does not support vertical or horizontal lines, e.g. the column- alignment specification {|c|} will lead to errors. Note, that the string \begin{array} must not contain spaces. Cells of the array may contain formulas and sub-arrays.


You can pass any of these examples to render to see what it does.


 \lfloorx\rfloor = x -\frac{1}{2} + \sum_{k=1}^{\infty}
 \frac{sin(2 Pi k x)}{pi k}

 x_{11} & x_{12} & x_{13}\\
 x_{21} & x_{22} & x_{23}\\
 x_{31} & x_{32} & x_{33}

 x_{11} & x_{12} & x_{13}\\
 x_{21} & x_{22} & x_{23}\\
 x_{31} & x_{32} & x_{33}

 \int_0^W \frac{np}{n+p}dx = \int_0^W \frac{n_0}{exp \left( 
 \frac{E_0(x-x_0)}{kT} \right)+exp \left( -\frac{E_0(x-x_0)}{kT}\right)}
 dx=\frac{n_0kT}{E_0} \left[ arctan \left( exp 
 \frac{n_0kT}{E_0} pi

 f(x) = \left{\begin{array}{lr} 
 \frac{1}{x+1} +12 & \-12<x<0\\
   & \\ 13-x & x<\-12, x>0

 a = \frac{1}{\sqrt{2} + 
 \frac{1}{\sqrt{2} + 
 \frac{1}{\sqrt{2} + 
 \frac{1}{\sqrt{2} + ...


This document is a direct port from the documenation of asciiTeX program written by Bart Pieters. See

syntax highlighting: