Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Complex Table formatting in restructeredtext

I am trying to generate a complex table with rows and columns spanning multiple cells. Below is a snapshot of my reST code.

reST snapshot

However, the Latex generated PDF output from Sphinx is not representing the format correctly.

output PDF via Latex snapshot

Please let me know what might be wrong in my reST format to correct this issue?

The HTML snapshot, as per comment, is attached below and it is correct.

HTML Snapshot

Thank you!

like image 978
starviscount Avatar asked Feb 25 '26 02:02

starviscount


2 Answers

This is a known bug: the Docutils LaTeX writer fails with (some) komplrc tables. http://docutils.sourceforge.net/docs/user/latex.html#tables

like image 95
Günter Milde Avatar answered Feb 28 '26 04:02

Günter Milde


I have not tried it because I don't want to type that whole table, but rst2pdf should not have a problem processing that.

like image 43
Roberto Alsina Avatar answered Feb 28 '26 04:02

Roberto Alsina