linux/Documentation/media
Mauro Carvalho Chehab cd6d9ffffc docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+
commit e2a91f4f42 upstream.

PDF build on Kernel 4.9-rc? returns an error with Sphinx 1.3.x
and Sphinx 1.4.x, when trying to solve some cross-references.

The solution is to redefine the \DURole macro.

However, this is redefined too late. Move such redefinition to
LaTeX preamble and bind it to just the Sphinx versions where the
error is known to be present.

Tested by building the documentation on interactive mode:
	make PDFLATEX=xelatex -C Documentation/output/./latex

Fixes: e61a39baf7 ("[media] index.rst: Fix LaTeX error in interactive mode on Sphinx 1.4.x")
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-01-12 11:39:32 +01:00
..
dvb-drivers [media] doc-rst: Fix license for the media books 2016-07-23 08:03:24 -03:00
kapi [media] get rid of a number of problems at the cross references 2016-09-22 10:00:23 -03:00
media_api_files [media] docs-rst: re-generate typical_media_device.pdf 2016-08-22 10:06:06 -03:00
uapi Linux 4.8 2016-10-05 16:43:53 -03:00
v4l-drivers [media] v4l-drivers/fourcc.rst: fix typo 2016-09-19 12:54:07 -03:00
audio.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
ca.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
cec.h.rst.exceptions [media] docs-rst: fix cec bad cross-references 2016-09-09 09:54:21 -03:00
conf.py doc-rst: define PDF's of the media folder 2016-09-01 08:49:33 -06:00
conf_nitpick.py [media] conf_nitpick.py: ignore C domain data used on vb2 2016-09-09 10:18:07 -03:00
dmx.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
frontend.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
index.rst docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+ 2017-01-12 11:39:32 +01:00
intro.rst [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
lirc.h.rst.exceptions [media] doc-rst: Fix LIRC_GET_FEATURES references 2016-07-11 11:47:39 -03:00
Makefile Documentation/sphinx: build the media intermediate rst files for all outputs 2016-08-12 15:24:25 -06:00
media.h.rst.exceptions [media] doc-rst: add media.h header to media contrller 2016-07-09 09:49:05 -03:00
media_kapi.rst [media] docs-rst: move cec kAPI documentation to the media book 2016-08-22 10:26:17 -03:00
media_uapi.rst [media] doc-rst: better organize the media books 2016-07-23 08:03:24 -03:00
net.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
video.h.rst.exceptions [media] docs-rst exceptions: use C domain references for DVB headers 2016-09-09 09:45:24 -03:00
videodev2.h.rst.exceptions [media] videodev2.h.rst.exceptions: fix warnings 2016-09-19 14:34:42 -03:00