Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Formatting Functions  /
ColumnForm

  • ColumnForm[ , , ... ] prints as a column with above , etc.
  • ColumnForm[ list , horiz ] specifies the horizontal alignment of each element.
  • ColumnForm[ list , horiz , vert ] also specifies the vertical alignment of the whole column.
  • Possible horizontal alignments are:
  • Possible vertical alignments are:
  • The first argument of ColumnForm can have any head, not necessarily List.
  • ColumnForm acts as a "wrapper", which affects printing, but not evaluation.
  • See the Mathematica book: Section 2.7.6Section 2.8.7.
  • See also: TableForm, MatrixForm, SequenceForm, GridBox.

    Further Examples

    These examples give the list of numbers as a column justified in different ways.

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.