From: Guenter M. <mi...@us...> - 2017-04-20 07:56:59
|
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 |