I want to be able to generate table of content inside a table. E.g. it should have borders and look like this:
.. tabularcolumns:: |p{10.5cm}|p{1.1cm}|p{1.4cm}|p{1.1cm}|
+----------------------------------------------------+-------+---------+-----+
| | hw1 | hw2 | hw3 |
+====================================================+=======+=========+=====+
| heading 1 | | | |
+----------------------------------------------------+-------+---------+-----+
| heading 2 | | | |
+----------------------------------------------------+-------+---------+-----+
| heading 3 | | | |
+----------------------------------------------------+-------+---------+-----+
I want to auto-generate the table from something like:
.. toctree::
:maxdepth: 2
file 1
file 2
The output is both html and pdf.
Can this be done? Or do I have to use the docutils parser or similar?