Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753834AbdFSKas (ORCPT ); Mon, 19 Jun 2017 06:30:48 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:43941 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751090AbdFSKar (ORCPT ); Mon, 19 Jun 2017 06:30:47 -0400 Date: Mon, 19 Jun 2017 07:30:38 -0300 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jim Davis , Daniel Vetter Subject: Re: [PATCH 2/5] Docs: Remove redundant geometry package inclusion Message-ID: <20170619073038.666a0eba@vento.lan> In-Reply-To: <20170618234630.19964-3-corbet@lwn.net> References: <20170618234630.19964-1-corbet@lwn.net> <20170618234630.19964-3-corbet@lwn.net> Organization: Samsung X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1847 Lines: 55 Em Sun, 18 Jun 2017 17:46:27 -0600 Jonathan Corbet escreveu: > Commit 85c21e5c3ee7 (docs-rst: better adjust margins and font size) added a > \usepackage{geometry} that conflicts with another inclusion deep within the > dependencies somewhere, causing the the PDF build to fail with a > "conflicting parameters" error. Just remove it for now until we can figure > out a better way. > > Fixes: 85c21e5c3ee74fb75d690c57f7066bae7e2dca55 > Cc: Mauro Carvalho Chehab > Signed-off-by: Jonathan Corbet > --- > Documentation/conf.py | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/Documentation/conf.py b/Documentation/conf.py > index 93827bc1620f..3d4e89330044 100644 > --- a/Documentation/conf.py > +++ b/Documentation/conf.py > @@ -271,8 +271,6 @@ latex_elements = { > > # Additional stuff for the LaTeX preamble. > 'preamble': ''' > - % Adjust margins > - \\usepackage[margin=0.5in, top=1in, bottom=1in]{geometry} > \\usepackage{ifthen} This patch has a bad side effect: with it, the tables with this tag: .. tabularcolumns:: become too big, violating the right margin. If Sphinx 1.5.x or 1.6.x replaced geometry package with something else, then I guess we'll need to add some hack at conf.py for it to adjust it based on the Sphinx version. Btw, in order to build latex output here with Sphinx 1.6.x, I had to install this package: texlive-fncychap.noarch Perhaps the change is somehow related to it. Btw, the current documentation at: http://www.sphinx-doc.org/en/stable/latex.html added a new option for version 1.5.3 and upper, to setup the geometry, using 'sphinxsetup'. As described there: 'sphinxsetup': 'hmargin={2in,1.5in}, vmargin={1.5in,2in}, marginpar=1in', I'll play with it and see if I can use it on such versions. Thanks, Mauro