[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160305232937.74678dd0@recife.lan>
Date: Sat, 5 Mar 2016 23:29:37 -0300
From: Mauro Carvalho Chehab <mchehab@....samsung.com>
To: Johannes Stezenbach <js@...uxtv.org>
Cc: Jani Nikula <jani.nikula@...el.com>,
Keith Packard <keithp@...thp.com>,
Jonathan Corbet <corbet@....net>,
LKML <linux-kernel@...r.kernel.org>, linux-doc@...r.kernel.org,
Daniel Vetter <daniel.vetter@...ll.ch>,
Hans Verkuil <hverkuil@...all.nl>, linux-media@...r.kernel.org,
Graham Whaley <graham.whaley@...ux.intel.com>
Subject: Re: Kernel docs: muddying the waters a bit
Em Fri, 04 Mar 2016 15:09:09 +0100
Johannes Stezenbach <js@...uxtv.org> escreveu:
> On Fri, Mar 04, 2016 at 09:59:50AM -0300, Mauro Carvalho Chehab wrote:
> >
> > 3) I tried to use a .. cssclass, as Johannes suggested, but
> > I was not able to include the CSS file. I suspect that this is
> > easy to fix, but I want to see if the cssclass will also work for
> > the pdf output as well.
>
> "cssclass" was (I think) a custom role defined in the example,
> unless you also have defined a custom role you can use plain "class".
> I have not looked deeper into the theming and template stuff.
Well, it accepted cssclass for html (well, it didn't find the
templates - so I guess it is just me failing to understand how to tell
sphinx to get the stylesheet), but it rejects it for latexPDF.
>
> > 4) It seems that it can't produce nested tables in pdf:
> >
> > Markup is unsupported in LaTeX:
> > v4l-table-within-table:: nested tables are not yet implemented.
> > Makefile:115: recipe for target 'latexpdf' failed
>
> This:
> http://www.sphinx-doc.org/en/stable/markup/misc.html#tables
>
> suggests you need to add the tabularcolumns directive
> for complex tables.
>
> BTW, as an alternative to the ASCII-art input
> there is also support for CSV and list tables:
> http://docutils.sourceforge.net/docs/ref/rst/directives.html#table
I converted one of the big tables to CSV. At least now it recognized
it as a table. Yet, the table was very badly formated:
https://mchehab.fedorapeople.org/media-kabi-docs-test/rst_tests/packed-rgb.html
This is how this table should look like:
https://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html
Also, as this table has merged cells at the legend. I've no idea how
to tell sphinx to do that on csv format.
The RST files are on this git tree:
https://git.linuxtv.org/mchehab/v4l2-docs-poc.git/
Regards,
Mauro
Powered by blists - more mailing lists