Re: [RFC PATCH 0/3] Documentation: switch to pdflatex and fix pdf build

From: Mauro Carvalho Chehab
Date: Fri Aug 19 2016 - 09:22:03 EST


Em Fri, 19 Aug 2016 15:54:37 +0300
Jani Nikula <jani.nikula@xxxxxxxxx> escreveu:

> On Tue, 16 Aug 2016, Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx> wrote:
> > 5) At media docs, some tables will only print ok in landscape.
> >
> > After making the media books build, I think that the best way is to
> > use xelatex instead of pdfdocs. Visually, xelatex output is, IMHO,
> > nice - and it has colors :-)
> >
> > It seems that there's yet another option: lualatex. I didn't try to
> > build with it. So, not sure if its output is better or not, nor if
> > some extra config for it is needed at conf.py.
> >
> > I sent a patch series addressing most of the issues above.
>
> I didn't see the series, but I'm surprised we now have HAVE_PDFLATEX
> that actually checks for 'xelatex'. The commit subject doing the change
> doesn't even mention xelatex, it's just about UTF-8:
>
> commit a682ec4ba10c88231cdbb8bb9823b2cc749d6364
> Author: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>
> Date: Tue Aug 16 13:25:39 2016 -0300
>
> docs-rst: Don't mangle with UTF-8 chars on LaTeX/PDF output
>
> </bikeshedding after the fact>

It was mentioned at patch 0/9:
https://www.mail-archive.com/linux-media@xxxxxxxxxxxxxxx/msg101408.html

I opted to not change the HAVE_PDFLATEX, as the macro that sets the
latex variant on Sphinx latex Makefile is called "PDFLATEX". Also,
we might change it in the future to use some other tool or even add
some logic to allow supporting multiple tools, like we have with
DocBook.

The main goal of XeTeX is to add unicode font support to LaTex,
according to:
https://en.wikipedia.org/wiki/XeTeX

We need that, as media uses a lot of math Unicode symbols inside
the documentation.

--
Thanks,
Mauro