Hi,
Personally, I prefer to use an extension for this case.
I believe the following code help you. You can use this code with appending
them to your conf.py.
```
from docutils import nodes
from sphinx.transforms import SphinxTransform
class AdjustTableAlign(SphinxTransform):
default_priority = 500
def apply(self):
if
self.app.builder.name != 'latex':
return
for node in self.document.traverse(nodes.table):
node.attributes.setdefault('align', 'left')
def setup(app):
app.add_post_transform(AdjustTableAlign)
```
I know the python code is a bit harder to understand and to maintain it.
But this does not touch the LaTeX macros directly, so this way is a
bit robuster than
writing LaTeX macros.
Thanks,
Takeshi KOMIYA
2018-01-11 4:59 GMT+09:00 'Erin Kelly' via sphinx-users
<
sphinx...@googlegroups.com>:
> --
> 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
sphinx-users...@googlegroups.com.
> To post to this group, send email to
sphinx...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/sphinx-users.
> For more options, visit
https://groups.google.com/d/optout.