Re: Question about restructured text tables

Guenter Milde <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2017-04-19, Suzanne Hillman wrote:

...

> I'm trying to figure out the best way to create basically a thumbnail grid
> using restructured text. My website is mostly in restructured text at this
> point, and I'd rather not have to make one of my pages plain HTML (or use
> the raw html directive).

> I took a look at the two ways to create tables (here:
> http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#tables),
> and as far as I can tell, there is no way to tell restructured text that it
> doesn't need to be as wide as the widest text within it.

The `table directive`__ may be your friend.
Ther you can specify the column widths and (with a current Docutils) also
set the column width to "auto" (let the backend decide).

For your use case, also the `list table`__ may be an option.

Günter

__ http://docutils.sourceforge.net/docs/ref/rst/directives.html#table
__ http://docutils.sourceforge.net/docs/ref/rst/directives.html#list-table


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.