Prev Next latexnumber

Latex Numbers

Syntax
Description
     Latex Integer
     Latex Real

Syntax
$latex Number $$

Description
Display in Latex mode the numeric value specified by Number where Number is either a Latex integer or a Latex real (as defined below).

Latex Integer
A Latex integer is a sequence of decimal digits (0 through 9) possibly preceded by a minus sign. For example, in the input
 
     $latex 123 and -123$$
123 and -123 are a Latex integers. The input above would have the following output:
     
@(@ 123 and -123 @)@
Latex Real
A Latex real can be a Latex integer followed by a decimal point followed by any number of decimal digits (possibly zero decimal digits). For example, in the input
 
     $latex 123. and 123.0$$
123. and 123.0 are a Latex reals. The input above would have the following output:
     
@(@ 123. and 123.0 @)@
A Latex real can be a decimal point possibly preceded by a minus sign and followed by any number of decimal digits (at one decimal digit). For example, in the input
 
     $latex .123 and -.123$$
.123 and -.123 are Latex reals. The input above would have the following output:
     
@(@ .123 and -.123 @)@
Input File: omh/latex/latexnumber.omh