Alignment#
Functions#
Three alignment functions are supported:
=HALIGN(VALUE; HORIZONTAL)sets horizontal alignment.=VALIGN(VALUE; VERTICAL)sets vertical alignment.=ALIGN(VALUE; HORIZONTAL; VERTICAL)sets both horizontal and vertical alignment.
Functions Fields#
VALUEis displayed in the rendered cell.HORIZONTALis the horizontal alignment.VERTICALis the vertical alignment.
HORIZONTAL Function Field Values#
leftorl(default)centerorcrightorrjustifyorj
VERTICAL Function Field Values#
toportmiddleorm(default)bottomorb
Pipe Modifier#
=VALUE | ALIGN(HORIZONTAL,VERTICAL)
Pipe Modifier Example#
=B4 | ALIGN(c; m)displays the contents of cellB4centered and middle-aligned.
Pipe Modifier Shortcut Usage#
=VALUE | #=VALUE | ##
Pipe Modifier Shortcut Values#
LleftCcenterRrightJjustifyTtopMmiddleBbottom
Pipe Modifier Shortcut Standalone Values#
LEFTCENTERRIGHTJUSTIFYTOPMIDDLEBOTTOM
Pipe Modifier Shortcut Examples#
=B4 | CMdisplays the contents of cellB4center and middle.=B4 | LTdisplays the contents of cellB4left and top.=B4 | RBdisplays the contents of cellB4right and bottom.=B4 | LEFTdisplay the content justified left.
Rendered Classes#
Rendered class will use the full names.
sphinx-tabular-halign-centersphinx-tabular-valign-middle
Example 1 - Horizontal Alignment#
Left Align |
Center Align |
Right Align |
The cat in the hat is back. |
Where did little miss Molly go? |
Sunrise and sunset are two sides of the same sphere. |
Example 1 - Code#
.. rcsv-table::
=Left Align | ALIGN(left;middle), =Center Align | CM, =Right Align | ALIGN(r;m)
The cat in the hat is back.,Where did little miss Molly go?, Sunrise and sunset are two sides of the same sphere.
Example 2 - Vertical Alignment#
Middle Align |
Row1 |
Row2 |
|
Row3 |
.. rcsv-table::
=Middle Align | LM, Row1
^,Row2
^,Row3