Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1zap-0008Tl-42 for pgsql-docs@arkaria.postgresql.org; Wed, 12 Feb 2020 21:30:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1zan-0003u3-Sz for pgsql-docs@arkaria.postgresql.org; Wed, 12 Feb 2020 21:30:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1zan-0003tv-Hw for pgsql-docs@lists.postgresql.org; Wed, 12 Feb 2020 21:30:45 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1zal-0003gJ-01 for pgsql-docs@lists.postgresql.org; Wed, 12 Feb 2020 21:30:44 +0000 Received: by mail-qt1-x843.google.com with SMTP id n17so2809197qtv.2 for ; Wed, 12 Feb 2020 13:30:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=lxDAeHiOVpm+I4aRR2FoykuBAcEPsBEjBVR++40wi/Y=; b=c9JXNSUUuqv5rBJ8EpW+ka0jS/vmM5fqPbeL3ILx4nh07snD1t+tzcbgxmJuJW55ce Q+SkeMJS6yogVzPD/35N86+HsnQj92jDQx+sUSK5Uk4VUupLYnqCQLySHm/6EP2QrvWW zL2U3tEfd0bZZq6REZUcWdjeJp8ioytHWsSVtmMxclsonI+YXLShYSjdkOAdAtt64k8B XV9dPtVoD7KQimtp9PMc/4ibcsIgXnDkbkQe9dsOMgErgH6tu2kJ7b7Ggt7cl0Vn/o7Z ioJwK+U7M4RimFBWhdTfxjq1bcKYfXuQcAE8QyA/R63QREySesHfAlr3tweMRG5if676 A3Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lxDAeHiOVpm+I4aRR2FoykuBAcEPsBEjBVR++40wi/Y=; b=cQW7GEghG4XFhV+wpjaFrPb1P74XLdV8elsD58NZstQDBlc7pwHYB1BpjlMkoFcAI4 9zEeg1+Z5eLULpVYKbWj847R1dU56u4HrRlGVLatLlLVOoTW1x5IBTZr7EJ+WK2V03h9 90RIVzk+By3yCbkP/iNOyfz57LWXSkSYt2EZTw3kbZUzm/lKVxDTyIqud8MYNk8XD2LJ 94KC8iKSbkbvExOhGmn2TAwXLJV1RU+PcuBR2H/tW/O8iQf3Rbd1A6akhK4pfy/tl5tb VGZdKz96yBElwwl8PtbwLMa6uZN3eCFyib5WDmP7/0f5QGBK6KTNGqUKtqp78ZDigm7U PuYA== X-Gm-Message-State: APjAAAWpvqiMuprv7iRvnY/emNFSRsyo1NPHURyVAaw+oJWyYyyPA8M6 qPrN7bA0IWMxlmX+NKpfqcl6NA== X-Google-Smtp-Source: APXvYqzOgwXUGlQ3F4se6zRI7MooJmNITPCa55lDLJlPVrUf2CvG8u+7kQrnBvCmAu6utBZc6ed+og== X-Received: by 2002:aed:2a86:: with SMTP id t6mr8721231qtd.81.1581543041844; Wed, 12 Feb 2020 13:30:41 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id a22sm233574qtd.48.2020.02.12.13.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 13:30:41 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 49CE1300803; Wed, 12 Feb 2020 18:30:39 -0300 (-03) Date: Wed, 12 Feb 2020 18:30:39 -0300 From: Alvaro Herrera To: Tom Lane Cc: Alexander Lakhin , pgsql-docs@lists.postgresql.org Subject: Re: Getting our tables to render better in PDF output Message-ID: <20200212213039.GA12997@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <14006.1581541092@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-12, Tom Lane wrote: > For amusement's sake, attached is a screenshot of what Table 9-33 > looks like in A4 format, with my one-row-per-example patch of > yesterday plus a few manually-added zero-width spaces to break up > the examples. This is the first PDF rendering of that table that > I've seen that I actually like. I like this. The trick of mkaing the first cell take up two or three rows makes this much clearer and sensible than what I had obtained. > I also attached a screenshot of a segment of Table 9-31, to show > what that layout proposal looks like. It's a little busier, but > it does have the advantage that it's clearer how to apply that > format to operator tables. The "returns " notation isn't used > anywhere in SQL for operators, so I am not in love with the idea of > writing the operator tables that way. Yeah, that's a little less obvious. I just noticed that the operators tables show the operator names but not the input datatypes except in the examples. Perhaps we could use a layout with a cell labelled "signature" (namest=col2 nameend=col3) instead of input types + return types and separate them using → which would look like this: date + integer → date > Also worth noting is that in most function tables, and certainly > in the operator tables, we could make the first column narrower. > The same table with the first column half as wide as the others > is depicted in the last screenshot. (For this particular table, > doing that would require breaking some of the longer function > names such as transaction_timestamp. Not sure whether that's > a net win, but we do have the option.) I like making that column narrower. > One issue that I've found is that the toolchain has no idea that > the table rows are in groups, so it's happy to split a table > across pages with a function's description and/or examples on > a new page. No idea if there's any way around that. Fortunately > it's not an issue in HTML, so maybe we don't have to fix it. My vote goes to postponing a solution to this problem :-) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services