Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1276354pxj; Sat, 29 May 2021 08:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOtl/WX3z0xk73LdNSt4goGAwdy7Mcn7IGDScqBZIUO4msybV1IPw9sGuzBcqYJom2RvqC X-Received: by 2002:a05:6e02:11ab:: with SMTP id 11mr11129554ilj.263.1622301632971; Sat, 29 May 2021 08:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622301632; cv=none; d=google.com; s=arc-20160816; b=KGeSnSSyYcuQBGvSfXev2EBw2vpKcMXKNM5JHsTH3VVTL3LMrZJCMk1RuDh9uaBJSj uWB+DO16mrIspsqEjSC6qOz6qvidLhmHoXBfjan8MJHFbSMwtGH8IlzZSY+ZFCbW8zBh 4GiWu7vKme1L55uW+Qq80fZmFQyZYqQuM7oBTUqcZak1W6qsweuoqWi1T/aE6tJPmdcM O+IG+3+/eCwFZtz3alFANicSP00BwGqaIbL0dgyqS5491ecg+UDs/qr3KfeijsNGJOMT jUNpoumxIpsogup3NHk7GtSCxMBFVNTcwHAbRwhBL6IVxRnkK7eWGpISmAtzgoxd7RZi fDxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=Vnafq7RVp7VAT1/+Lx872/XLk4/H3v8bYUHr0j7OeBM=; b=NUSwl6lw8DQPSVx8Zw77kKZQGnXMo5R77k9euMrDFBSMKXZkipkz+Qd0Dp6fQPpslZ NAFtoEKBfPUgxMoYlJEd/KDQYVVmTTqa0g2wH9ZKV9jrMIrnQvvd67wyueMhJ5qLsrAF W8QOnKApNy/JB4rTLHfuSEEKa8C49tTEAGnP8PSUEeu+VojX/LO14cN+wMJf8Z5Ir8V9 wgpCLCTjqmBUs9TXypgVnQKLcN1F0U0WSjEulwlXDgGFnWp8Fk5SjGudOgYJTQDCej9e b7QxedaVzvHVm26Ld65lMlbElCsNP5bnLuGPLTCB3qgYlcRnxJV1Af+1D1S3KlByJgGi rNqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I2X5qQq6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si8318433ilo.119.2021.05.29.08.20.07; Sat, 29 May 2021 08:20:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I2X5qQq6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229789AbhE2PU4 (ORCPT + 99 others); Sat, 29 May 2021 11:20:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbhE2PU4 (ORCPT ); Sat, 29 May 2021 11:20:56 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FB5C061574; Sat, 29 May 2021 08:19:18 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id g18so5550509pfr.2; Sat, 29 May 2021 08:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Vnafq7RVp7VAT1/+Lx872/XLk4/H3v8bYUHr0j7OeBM=; b=I2X5qQq6ZF0GMTTHJ9NIicNH9snA7WkUEKAe+Gmc7b9b8jZ2TSSRTWqtBceuAX4TRz yb8QcT3+opS2X7XiTT5Qdd+fe8Bzp+I55KhSN9tWIN7N+s5SkPYVzi72G87tip+jmlSs qsh5dsANxKVzvqOfdNKv5Fxsb4YQzgx920pO+/aJjg7OkEYOr3cyoKdSA+k2Y/SqSBpi QHwqoI4fgbkJiHXfOOqWJw2EcbzBIjf+MJWP/DaRDkQCfTGazsUa9P9is/Y26dTvbfFW SZxLhdhanKFfpBHw2DbKbtfYChx1kdoYklfT0O9HGFAhP/LeTbIW2NToXMwj653B2DsS mcag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=Vnafq7RVp7VAT1/+Lx872/XLk4/H3v8bYUHr0j7OeBM=; b=QVSzdin55pcJaaAAaguVLbAo0+kbuEvsEhVCh/fqETCi/rS1LHtdCmDBOkyNSmxIt5 AOdOOotEHDZVB2qCekVDjY50XGtiNub6SM50CbcOoGdqC68I0K+pOS9x3Hv/i12yZzzq vpK+xGgovEZ+2fn1xAdDCgx3K8olha4FDaOuWfXn6rVwefkmRnR42h5naUast8JTfLRN RDEnLXezhf+pT8qtpE4Uh3hZnbFvvvcoJZvd0Mhy5C0ctVNT3Yhn4RO2QemAac2cRAvJ p12gUkeHPBp83jyJkxZGIcwkINppWdzjwThjq8WZqgmlJEN9uYVYJ/hjks+SunCDXUY8 qyXg== X-Gm-Message-State: AOAM531kdreyds0hk88tRBWCSHazG59LjPVxamIBqNmkkv/YDqU3DVF5 BgxJCFlItPdPGCn5TCVY+lk= X-Received: by 2002:aa7:8809:0:b029:2de:3b94:487e with SMTP id c9-20020aa788090000b02902de3b94487emr9031300pfo.33.1622301558399; Sat, 29 May 2021 08:19:18 -0700 (PDT) Received: from [192.168.11.2] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id h26sm7096180pfk.19.2021.05.29.08.19.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 May 2021 08:19:18 -0700 (PDT) To: Jonathan Corbet , Mauro Carvalho Chehab Cc: "Wu X.C." , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Akira Yokosawa From: Akira Yokosawa Subject: [PATCH] docs: pdfdocs: Prevent column squeezing by tabulary Message-ID: <277d68fa-c96a-0ccb-6ce0-4d314851d9fe@gmail.com> Date: Sun, 30 May 2021 00:19:14 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Setting a reasonable width to \tymin prevents column squeezing by tabulary. Width of 20em works well in almost all the tables still in the ascii-art format. Excerpt from tabulary package documentation at [1]: To stop very narrow columns being too 'squeezed' by this process any columns that are narrower than \tymin are set to their natural width. [1]: https://mirrors.ctan.org/macros/latex/contrib/tabulary/tabulary.pdf Note: Sphinx has its own default value of \tymin set in sphinxlatextables.sty (Sphinx 4.0.2) and sphinxmulticell.sty (Sphinx 2.4.4) as follows: \setlength{\tymin}{3\fontcharwd\font`0 } , which is not sufficient for kernel-doc. Tested against Sphinx versions 2.4.4 and 4.0.2. Signed-off-by: Akira Yokosawa --- Hi all, This is another attempt to improve pdfdocs output. As far as I see, I don't see any obvious regression by this change. The effect of this change can be seen in (not limited to) the MODULE_LICENSE section in process.pdf (pages 10 and 11). I'd like to know this change looks reasonable to you. Any feedback is welcome! Thanks, Akira -- Documentation/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/conf.py b/Documentation/conf.py index 25aa00c707b0..a05225056e08 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -353,6 +353,8 @@ latex_elements = { # Additional stuff for the LaTeX preamble. 'preamble': ''' + % Prevent column squeezing of tabulary. + \\setlength{\\tymin}{20em} % Use some font with UTF-8 support with XeLaTeX \\usepackage{fontspec} \\setsansfont{DejaVu Sans} -- 2.17.1