WOLFRAM

is an option for the low-level function GridBox that specifies how entries in each column should be aligned.

Details

  • The following settings can be given:
  • Centercentered (default)
    Leftleft justified (aligned on left edge)
    Rightright justified (aligned on right edge)
    "."aligned at decimal points
    "c"aligned at the first occurrence of the character c
    {pos1,pos2,}separate settings for each column in the grid
  • Lists of settings are used cyclically if there are more columns in the grid than elements in the list.
  • With the setting ColumnAlignments->"c" a column will be right justified if the character c appears nowhere in it.
  • You can insert invisible \[AlignmentMarker] characters in the entries in a grid to specify how these entries should be aligned.

Examples

Basic Examples  (1)Summary of the most common use cases

Align entries right in the first column, and align them left in the second column:

Wolfram Research (1996), ColumnAlignments, Wolfram Language function, https://reference.wolfram.com/language/ref/ColumnAlignments.html.
Wolfram Research (1996), ColumnAlignments, Wolfram Language function, https://reference.wolfram.com/language/ref/ColumnAlignments.html.

Text

Wolfram Research (1996), ColumnAlignments, Wolfram Language function, https://reference.wolfram.com/language/ref/ColumnAlignments.html.

Wolfram Research (1996), ColumnAlignments, Wolfram Language function, https://reference.wolfram.com/language/ref/ColumnAlignments.html.

CMS

Wolfram Language. 1996. "ColumnAlignments." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColumnAlignments.html.

Wolfram Language. 1996. "ColumnAlignments." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColumnAlignments.html.

APA

Wolfram Language. (1996). ColumnAlignments. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColumnAlignments.html

Wolfram Language. (1996). ColumnAlignments. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColumnAlignments.html

BibTeX

@misc{reference.wolfram_2025_columnalignments, author="Wolfram Research", title="{ColumnAlignments}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ColumnAlignments.html}", note=[Accessed: 26-March-2025 ]}

@misc{reference.wolfram_2025_columnalignments, author="Wolfram Research", title="{ColumnAlignments}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ColumnAlignments.html}", note=[Accessed: 26-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_columnalignments, organization={Wolfram Research}, title={ColumnAlignments}, year={1996}, url={https://reference.wolfram.com/language/ref/ColumnAlignments.html}, note=[Accessed: 26-March-2025 ]}

@online{reference.wolfram_2025_columnalignments, organization={Wolfram Research}, title={ColumnAlignments}, year={1996}, url={https://reference.wolfram.com/language/ref/ColumnAlignments.html}, note=[Accessed: 26-March-2025 ]}