TPML Reference Page

START (on the ClickPad)

 

List of TPML Tags:


Mathematics

thm (theorem)
example
remark
corollary
proof
lemma
definition
proposition
notation

Referencing

label
ref
cite

Display Environments

display
xmth
bordermatrix
blockquote

Fractype, within display environments

choose
int
prod
sum
frac
sumtype

For resizing a symbol

symbol

Spacing and linebreaks

cr
p
nbsp
quad
skip

Table rows and cells

row
_
_r
_l

Subscripts and superscripts

sup
sub
hisup

Sectioning, paragraphing

section
subsection
subsubsection
paragraph
subparagraph

Font styles

bf
em
it
tt

List environments, list elements

itemize
enumerate
li
item
itemitem
dlist
ditem

Bibliographic

thebibliography
bibitem

Miscellaneous

abstract
appendix
footnote
idx
aref
comment

 

START   

Sets up the TPML file, the root element is <tpwm>.

Fill in the title of the page in the <title> element. This automatically generates a heading in the body as well.
Optionally you can include, before the <body> tag, a <style> element with css style markup.

The following tags do not appear on the ClickPad. They are useful for mathematics writing:

thm
theorem
example
remark
corollary
proof
lemma
definition
proposition
notation
thebibliography
abstract
appendix

Also not appearing on the ClickPad are:

idx
aref
comment
footnote

You can use <aref id="">[content]</aref>as an equivalent to <a href="">[content]</a>.
You have <appendix> and for bibliographic references, the <thebibliography> environment. Included is <footnote>, but it is not really implemented in this system. The <comment> element is for documentation purposes, it is invisible when rendered in the browser. Finally, there is <idx> that provides an anchor linking to a generic "index.html" page.

In general, HTML markup sails right through. So you can convert an HTML document to a TPML document in order to add particular TPML markup to it. You can convert back to HTML in the Editor using the ClickPad or the menu Run/Compile (keyboard shortcut F4).

Back to Top

 

label   

Use for making a "name" reference internal to a page.

Back to Top

 

ref   

For referring to an internal reference marked by a <label> element.

Back to Top

 

cite   

Has effectively the same meaning as "ref". Use for references to bibliography items .

Back to Top

 

display   

This sets up a centered table. Useful for presenting formulas.
Follow the opening <display> tag by a <row> element.

Back to Top

 

xmth   

This is a one-rowed floating table. Use one <xmth> element to enclose both text and inline formulas.
This automatically creates a <row> element.

Roughly like TeX's $..$ environment. However, you do not need to use it for symbols, only when you need alignment, as in "fractype" environments (sum, frac, etc.), and you generally include the entire line/lines including ordinary text, using table cells such as <_>..</_> to keep things aligned.

Back to Top

 

bordermatrix   

This is like <display> where the table has borders. So the cells are marked off with lines.

Back to Top

 

blockquote   

The standard HTML markup.

Back to Top

 

bibitem   

For bibliography items within a <thebibliography> element. Refer to the "id" attribute with a <cite> element.

Back to Top

 

choose   

Binomial coefficient construction.
E.g., <choose><uu>5</uu><ll>3</ll></choose> yields ( 5
3
) .
"uu" stands for upper limit, "ll" for lower limit as in a summation.

"Fractype" - it automatically puts in cell element <td> and corresponding </td> in an xmth or display environment.

Back to Top

 

int   

Integration. E.g.,
<int><ll>a</ll><uu>b</uu>f(x) dx </int>.
"uu" stands for upper limit, "ll" for lower limit.

"Fractype" - it automatically puts in cell element <td> and corresponding </td> in an xmth or display environment.

Back to Top

 

prod   

Product. E.g., <prod><ll>j=1</ll><uu>50</uu>(f(j)+g(j))</prod>.
"uu" stands for upper limit, "ll" for lower limit.

"Fractype" - it automatically puts in cell element <td> and corresponding </td> in an xmth or display environment.

Back to Top

 

sum   

Sum. E.g., <sum><ll>j&geq;0</ll><uu></uu>(f(j)+g(j))</sum>.
"uu" stands for upper limit, "ll" for lower limit.

"Fractype" - it automatically puts in cell element <td> and corresponding </td> in an xmth or display environment.

Back to Top

 

li   

As in HTML. Use in itemize (ul) or enumerate (ol) environments. Same as <item>.

Back to Top

 

frac   

Fraction. <numer> and <denom> elements contain the numerator and denominator respectively. Without a 'width' attribute, the size and placement of numerator and denominator will be done automatically. For more control, set the width attribute to be roughly 10 times the number of symbols in the longer of the numerator or denominator. Adjust accordingly to an appropriate integer value.

"Fractype" - it automatically puts in cell element <td> and corresponding </td> in an xmth or display environment.

Back to Top

 

sumtype   

For setting up a symbol with lower and upper limit(s), e.g. a union or limit. Set the sizes of the limits with the "limsize" attribute, the size of the symbol by the "symsize" attribute. E.g.,
<sumtype limsize="+0"><ll>n > 0<ll><uu></uu><symbol symsize="3"> ∪</symbol> α<sub>n</sub> </sumtype>

"Fractype" - it automatically puts in cell element <td> and corresponding </td> in an xmth or display environment.

Back to Top

 

symbol   

For controlling the size of symbols. Set the "symsize" attribute accordingly.

Back to Top

 

p   

As in HTML. Use for a full line skip. Similar to TeX's \bigskip.

Back to Top

 

nbsp   

As in HTML. Use for a horizontal skip. Equivalents are &sp; and &space; .

Back to Top

 

_   

In xmth or display environments, effectively the same as a center-aligned table cell. Use within an xmth or row element to make table cells for alignments.

Back to Top

 

_r   

In xmth or display environments, a table cell with right alignment similar to using an \hfill in TeX. It fills the left side of the cell with two nbsp's.

Back to Top

 

_l   

In xmth or display environments, a table cell with left alignment similar to an \hfill in TeX. It fills the right side of the cell with two nbsp's.

Back to Top

 

row   

Same as <tr> in HTML. Use for rows in a display environment.

Back to Top

 

cr   

Effectively <br/>.

Back to Top

 

quad   

Effectively three nbsp's. Also, available is <qquad/> for the equivalent of five nbsp's.

Back to Top

 

skip   

Use for a large vertical break. Effectively <p/>&nbsp;<br/>.

Back to Top

 

sup   

For superscripts.

Back to Top

 

sub   

For subscripts.

Back to Top

 

hisup   

For a "high" superscript, e.g. after an expression enclosed with large parens or after a large symbol (such as a symsize of 3).

Back to Top

 

section   

Main section. Use the id attribute for the title.
Yields an <h2> heading.

Back to Top

 

subsection   

Next smaller paragraph component than section.
The id attribute yields an <h3> heading.

Back to Top

 

subsubsection   

Next smaller paragraph component than subsection.
The id attribute yields an <h4> heading.

Back to Top

 

paragraph   

Next smaller paragraph component than subsubsection.
The id attribute yields an <h5> heading.

Back to Top

 

subparagraph   

Next smaller paragraph component than paragraph.
The id attribute yields an <h6> heading.

Back to Top

 

item   

Same as HTML's <li>. Use in itemize (ul) or enumerate (ol) environments as in TeX/LaTeX.

Back to Top

 

bf   

As in (La)TeX. Same as HTML's <b>.

Back to Top

 

em   

As in (La)TeX. Same as HTML. Use <sl> as an equivalent here.

Back to Top

 

it   

As in (La)TeX. Same as HTML's <i>.

Back to Top

 

tt   

As in (La)TeX. Same as HTML. Use <sf> as an equivalent here.

Back to Top

 

itemitem   

An indented item. Effectively a linebreak followed by three nbsp's.
Include as content inside <item>.

Back to Top

 

itemize   

As in LaTeX. HTML's <ul>.

Back to Top

 

enumerate   

As in LaTeX. HTML's <ol>.

Back to Top

 

dlist   

Description list as in LaTeX. Or HTML's <dl>.

Back to Top

 

ditem   

Item in a dlist environment. HTML's <dt>. You can nest <dterm>'s (HTML's <dd>'s) inside ditems.

Back to Top