Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Depending on what you are trying to accomplish by changing the table format. For instance if you want to define row colors and change the tables accordingly across the document you can use both the xcolor package and redefine how tabular handles that at the point of definition by changing the tabular environment.</p> <p>So in the preamble you would do</p> <pre><code>\usepackage[table]{xcolor} \definecolor{foo}{RGB}{236,137,29} \definecolor{bar}{RGB}{232,108,31} \let\newtabular\tabular \let\newendtabular\endtabular \renewenvironment{tabular}{\rowcolors{2}{foo}{bar}\newtabular}{\newendtabular} </code></pre> <p>This will overwrite the default tabular environment and apply the foo and bar row colors throughout the document, starting at the second row.</p> <p>For having more directives related to tables. You should take a look at <a href="https://github.com/jterrace/sphinxtr/tree/master/extensions" rel="nofollow noreferrer">sphinxtr</a></p> <p>Jeff Terrace has some great extensions included, but the two main ones to use are <a href="https://bitbucket.org/arjones6/sphinx-numfig/wiki/Home" rel="nofollow noreferrer">numfig</a> and <a href="https://github.com/jterrace/sphinxtr/blob/master/extensions/figtable.py" rel="nofollow noreferrer">figtable</a>. You can wrap a csv table into figtable.</p> <pre><code>.. figtable:: :label: my-csv-label :caption: My CSV Table :nofig: .. csv-table:: :file: data/foo.csv :header-rows: 1 </code></pre> <p>Changing the standard table format with the caption below instead of above. Then you also have the added benefit of being able to directly link to that table by using :num:.</p> <pre><code>:num:`Table #my-csv-label` </code></pre> <p>It will automatically number accordingly, without referencing the label name. You can also use</p> <pre><code>.. figtable:: :spec: {r l r l} </code></pre> <p>To better define how you want your table to appear.</p> <p><img src="https://i.stack.imgur.com/D5g2n.png" alt="table"></p> <p><img src="https://i.stack.imgur.com/2f6YN.png" alt="table2"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload