From 10fe0e3aaeed857744819f487d1be7fbe270faf8 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 27 Aug 2025 14:27:42 +0200 Subject: [PATCH] docs: fix authors line exceeding the page Fix that the authors get cut off as they exceed the page in the PDF version. This can currently be seen here: https://downloads.osmocom.org/docs/pysim/master/osmopysim-usermanual.pdf Change-Id: Iacbba6c2f74bf2b9f96057e71bde017a11f703a8 --- docs/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 8455007e..90918787 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,6 +21,14 @@ project = 'osmopysim-usermanual' copyright = '2009-2023 by Sylvain Munaut, Harald Welte, Philipp Maier, Supreeth Herle, Merlin Chlosta' author = 'Sylvain Munaut, Harald Welte, Philipp Maier, Supreeth Herle, Merlin Chlosta' +# PDF: Avoid that the authors list exceeds the page by inserting '\and' +# manually as line break (https://github.com/sphinx-doc/sphinx/issues/6875) +latex_elements = { + "maketitle": + r"""\author{Sylvain Munaut, Harald Welte, Philipp Maier, \and Supreeth Herle, Merlin Chlosta} +\sphinxmaketitle +""" +} # -- General configuration ---------------------------------------------------