HTMLFormat

HTMLFormat[expr]
formats an expression into HTML such that numbers and powers use superscript notation

DetailsDetails

  • The HTML functions are contained in a package, MSP`HTML`, which is loaded as part of the webMathematica layout.
  • HTMLFormat provides some useful formatting functions into HTML. It is suitable for formatting small expressions such as numbers as shown below.
  • HTMLFormat is less suitable for formatting large expressions, since everything will come out in InputForm.
  • For larger expressions it is recommended to use one of the versions of the formatting function MSPFormat to gain a result in an image format or MathML.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

You can demonstrate how the function works by installing and loading the package:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

It is less suitable for formatting large expressions, since everything will come out in InputForm.

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=