You have to use the tabularcolumns directive, which can take a ton of latex
commands for formatting of columns, such as:
.. tabularcolumns:: |>{\RaggedRight}p{\dimexpr 0.3\linewidth-2\tabcolsep}
|>{\RaggedRight}p{\dimexpr 0.45\linewidth-2\tabcolsep}
|>{\RaggedRight}p{\dimexpr 0.25\linewidth-2\tabcolsep}|
This will create columns that are 30%, 45%, 25%, all left aligned with
vertical lines between cells.
--Peter
On Wednesday, January 10, 2018 at 2:17:59 PM UTC-8, Erin Kelly wrote:
>
> Apparently in 1.6.1 the default table alignment changed from left to
> center. I want all my tables to align left.
>
> The change documentation says I can use Docutils :align: option but that
> only works if I'm using a .. table:: tag
> I'm using this style of tables:
> +------------+------------+-----------+
> | Header 1 | Header 2 | Header 3 |
> +============+============+===========+
> | body row 1 | column 2 | column 3 |
> +------------+------------+-----------+
>
> I tried throwing the table tag above this kind of table but it didn't
> understand that.
>
> Is there something I can put in the latex preamble to reset the default to
> align left?
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.