Discussion:
[Docutils-develop] [docutils:feature-requests] #48 Add :align: option to the table directives (table, csv-table and list-table)
Takeshi KOMIYA
2016-02-22 03:41:47 UTC
Permalink
---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** open
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Mon Feb 22, 2016 03:41 AM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Günter Milde
2016-02-26 20:19:24 UTC
Permalink
You can pass the align-... class value to any object via the "class" directive. Styling with CSS should then be easy.


---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** open
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Mon Feb 22, 2016 03:41 AM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Takeshi KOMIYA
2016-03-04 02:38:24 UTC
Permalink
Using CSS is fine, but we have to prepare CSS to align tables to center always.
I think aligning tables are common feature (mainly centering).
At the same time, it is useful for LaTeX and other writers too.
My patch including the fix for LaTeX's.
The class directive does not effect these writers I believe.

Are there any chance to add the option?


---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** open
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Fri Feb 26, 2016 08:19 PM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Andrea Cassioli
2016-03-07 11:22:18 UTC
Permalink
Hi,
just to elaborate a bit on the issue:

1. Despite using CSS is an easy fix, for more general uses it might be not that simple. As Takeshi said, if the target format is Latex one may need to have some information to decide the table alignement.

2. In terms of readability an explicit mention to the table alignement is a plus.

3. Such an option would also make figure and table behave in a more similar way.




---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** open
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Fri Mar 04, 2016 02:38 AM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Günter Milde
2016-05-27 10:36:01 UTC
Permalink
I agree that this as an addition that nicely fits in.
For a complete patch, we would need test cases and a documentation update.


---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** open
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Mon Mar 07, 2016 11:22 AM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Takeshi KOMIYA
2016-05-28 03:16:09 UTC
Permalink
I'm grad to hear that. I updated the patch including testcases and documentation.
Could you review this please?


Attachments:

- [align-20160528.patch](https://sourceforge.net/p/docutils/feature-requests/_discuss/thread/e21f906b/31c6/attachment/align-20160528.patch) (10.6 kB; application/octet-stream)


---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** open
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Fri May 27, 2016 10:36 AM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Günter Milde
2016-07-26 18:17:02 UTC
Permalink
- **status**: open --> pending
- **Comment**:

Thanks for the update. I completed support for list tables, added some more tests and adapted the documentation.
Committed in 7952. Please test.

Still missing is an update of the Docutils DTD http://docutils.sourceforge.net/docs/ref/docutils.dtd adding the align option to tables.



---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** pending
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Sat May 28, 2016 03:16 AM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Günter Milde
2017-02-04 20:39:50 UTC
Permalink
- **status**: pending --> closed-fixed
- **Comment**:

The change is now complete. Please reopen if there are problems.
Thank you for the suggestion and patch.



---

** [feature-requests:#48] Add :align: option to the table directives (table, csv-table and list-table)**

**Status:** closed-fixed
**Group:** Default
**Created:** Mon Feb 22, 2016 03:41 AM UTC by Takeshi KOMIYA
**Last Updated:** Tue Jul 26, 2016 06:17 PM UTC
**Owner:** nobody
**Attachments:**

- [align.patch](https://sourceforge.net/p/docutils/feature-requests/48/attachment/align.patch) (6.9 kB; application/octet-stream)


The rst2html command puts the tables to left of pages.
It would be nice if we are able to align these to arbitrary position.

Here's patch for the table directives take :align: option like figure directive.


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Loading...