Hi Roger, `tabularcolumns` only supported by `latex` writer (HTML and other writer skip tabularcolumns). If you would like to change the layout of HTML, possibly you could solve using Table-related-directives and custom CSS.
ex, .. list-table:: :class: layout1 ... and create custom css with ".layout1 td:nth-of-type(2) {text-align: right;}" (however, this method works only by the browser corresponding to css3). best regards. -- Takayuki SHIMIZUKAWA Sphinx-users.jp & PyConJP Organizers 2012/6/4 Roger Binns <rog...@rogerbinns.com>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I've been trying to use tabularcolumns to get some columns right justified. > > .. tabularcolumns:: |l|r|r| > > +------------------+------+---+ > |United States |22,358|19%| > +------------------+------+---+ > |Spain |6,975 |5% | > +------------------+------+---+ > |Mexico |6,955 |5% | > +------------------+------+---+ > > However the 'r' specifier has no effect on the HTML output so all columns > end up left justified. I tried indenting the table but that gives: Error > in "tabularcolumns" directive: no content permitted. > > Another example that shows it doesn't work is at: > > > http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html#the-tabularcolumns-directive > > If you use a DOM inspector on the example you can see that all columns are > left justified. > > How do I get tabularcolumns to actually work? > > Roger > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > > iEYEARECAAYFAk/Lsg0ACgkQmOOfHg372QSyrwCglK1RzT3lfJ69x2963y7zwmYz > 7awAoNPqDaEbVL4FHLVL+wu5Q10TJCrt > =AcNp > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-dev" group. > To post to this group, send email to sphinx-dev@googlegroups.com. > To unsubscribe from this group, send email to > sphinx-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sphinx-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.