From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23198 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Mixed zero and non-zero table column widths Date: Tue, 06 Aug 2019 10:31:13 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="82327"; mail-complaints-to="usenet@blaine.gmane.org" To: BPJ , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB3XSU3VAKGQE6EBEBUI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 06 19:31:28 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hv3J2-000LIE-E1 for gtp-pandoc-discuss@m.gmane.org; Tue, 06 Aug 2019 19:31:28 +0200 Original-Received: by mail-oi1-f189.google.com with SMTP id 189sf35471772oii.18 for ; Tue, 06 Aug 2019 10:31:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565112687; cv=pass; d=google.com; s=arc-20160816; b=JoJ+nVLHlneVNltPnIlS7b1F+BmeG2ZuJ0hA+fHAEoGGGdmbECSBv7Ye4ECNbUt3EQ Se9B9/w0Ieg8VX4yDfhGgcfECtUTUCSoCjDEiAennNLn27zjPaeF04aVgqU7Vmj5Qp3q YYOHmI3yNEl3k8OGFDgDiP3DfVrA62dcdNFXUoKBS3yc/wPsmp7in8QrOzpYTLc1i1dM ZIvB0W2/Bp+CksPoM5bnvhulJJoIDpD+LNwD9SbEYmHr02Ewg4Uc7e5hhFmMP43RQBxC BdeNIERITxYBnfYU15L6h3r4XQ5PdOfjS6sORw4bWttwpHH/fTkdDW7FxHoOANqx6yxq yZlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=LKWL+Fzy5cCKJ6t2j0GwPbXYmsMOGn3uI2HbVLz9Xkk=; b=YGrdLYZwW9zo6Q1ijmpmHkdD1x86P6n0NNVsvdcI17kmpV7VrkVtbJ17epUPrxx2zu WZpdJyn2cVaJxHS7YlFDIpToprrR4Dj54FagmHqT3P19dLRt7HX9RYOgeicYdHecE570 Ox18Tf4wxa1yvhcwcrBa4/g0X+VOmkCxhLcVqQDdy3K6a9Zsho5dS4vRoWZfh5ImpFim 4Z2pOO1a6vlKLo+HrTud3IL7v9ostyLmYmqZLQk9x4AVcWZZBg6mRlzgDeP/0Ds+v0dM hyBO/hTA9X1GSqOqx0ycsph3gHeSGDLEZpTcU+ECdFWqAxNu5AbuUCgKXaSQT4OFD4le rqPw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=h9tfVic+; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=LKWL+Fzy5cCKJ6t2j0GwPbXYmsMOGn3uI2HbVLz9Xkk=; b=Nz7iGKDuJsPJSoNNc7gwW2iotNU9OFjfrRWG7wuqRX4m520nmoMtssE2ByTPZ7/ntI NIIfSnnuBV6Y7xSi55ezFNTxJBsU/gxXlURH1g+n2oU8+bQzvo9Il1VIVAGQTUp+ZpBC 8xU12vU/VlxiKyDF570uQ97DBOQiximbq84GNAIbX5Q2+X1spHY6bqzJBGMmRPNIoX/m lV9OjBcJsdnVB11u/6IhdEnkyzrYmqY8O+eDnj3Q9NiRvnn5H3tltPABVzN0gqcZU1Wa omidJnq4cBb1fSqQ75h4vm2snrXoVeMoYcjkOD8Cf2ylW+eYCEDfP9Ke7TB1cYnF5w9/ jNdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=LKWL+Fzy5cCKJ6t2j0GwPbXYmsMOGn3uI2HbVLz9Xkk=; b=Eu69L5vfV12ZfHwjXYTZDhc42H8iy4jHP1CeewWFHtkDGPQXjlkDmK0eMksWSLGD00 44IdTFhE6M9kJjge0JlMaKQOBmcAj3PCnMpHb21d3Omd8pA3GHdtL+qlb6cd+j70WCKe SsVIP+4YIMRAISuRpDfkHoyeb1arNQDiIUoFXJrQ+AkYox4TOAU/zINSu+c+s9wF2NOQ ie1qdyXP4zeG/F4rEWyKsp1X35xgWnKAw5C+LT450uRnIYnlELaZkju8CE0Cz9WzQTLj /GuTU7Hguyl7kHylnK8LY9gHnJwABJMJZ5rzAI79Vc6drruWv+k9pv0C+R4RAwYSBpyq tcbQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUpEZ+Ca657Upohj1sJj5DuUPGyjBk1BgNAOepxnwfldlfPCXNl JhYdkPk8q+E3PkRLItmI2nI= X-Google-Smtp-Source: APXvYqx4gSgWqZhv0GqHB/VhXsVJZL+PkyqF8Q2CEE8JvfStfzyyrSuj34b064EIMfMWsvUSeJbhiw== X-Received: by 2002:aca:b485:: with SMTP id d127mr2685120oif.34.1565112687024; Tue, 06 Aug 2019 10:31:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:2083:: with SMTP id y3ls1254038otq.3.gmail; Tue, 06 Aug 2019 10:31:26 -0700 (PDT) X-Received: by 2002:a9d:6e8a:: with SMTP id a10mr4396286otr.295.1565112686100; Tue, 06 Aug 2019 10:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565112686; cv=none; d=google.com; s=arc-20160816; b=clC7S1hktzJ6wAzaUE5Xg5DX8H1jQRBl41iCB9t+pUXcSTiQHOA1QME/hAKKC8DJ95 KS6+U7VLLApZpuEVCJtxLCtyquMySwukO9/cw2JRwHprWAiUJOBMfQR3BxNCHMSaUa6l bYJM8qx49ROrfj9Jjc5hrmFvd0Vn4AfnuppTLxkNTjZvWZlRuuHMHFcp9NdbXo3oTAF9 sDJBQbFcXm9vO/EHqAk0Uxxf9oCxZxXdgsRwxhIx47Hls5TN2bV+qOa83nefZxXkV5zG BVqQjyIKPka2/64uTBqE5zivVIcvp/DNrUw1KqLFyHqIUAn4dzpi0si0eV30SRlfmG7n Ujug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=NM1JWCfJk+BlQEr+R21b2aa1bYv6NIghqFOKY1b8Gbk=; b=Wx1Bx3nKkwFvdnsxkUmE7ENzD2jgiJQji6hmXidmOtyF6/+iRg/9bTeny9h0E1oVc9 l+nFJtSCD3MeXlEBUOcacRgZBG54Gqi0Wx3IAwwuXsklG3UWyuVVzNuW0JZ2/6sZKyoB JmgmzzUtWacYrZ+NBcPKUKjzPkOS2bdvKy9GhCiQl09IA3zQl+Jx0LfleAwBhQcUVSH7 4gj2VjPLNjo30A0bwWG1NEPVQUnaol2zOKL8RSPLhk2ia8YR6NOdyv/jN/hpG1GyVp2N yOVCJrjEpp9FwzMUfR5NTjzT6GuDkDueyg2Gd/SSrozenoTskXdq+OMDEDG+BXqfPB93 C9YQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=h9tfVic+; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com. [2607:f8b0:4864:20::634]) by gmr-mx.google.com with ESMTPS id i20si4866937otf.0.2019.08.06.10.31.26 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 10:31:26 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) client-ip=2607:f8b0:4864:20::634; Original-Received: by mail-pl1-x634.google.com with SMTP id b7so38193685pls.6 for ; Tue, 06 Aug 2019 10:31:26 -0700 (PDT) X-Received: by 2002:a17:902:7088:: with SMTP id z8mr4207243plk.26.1565112685708; Tue, 06 Aug 2019 10:31:25 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id s66sm93162963pfs.8.2019.08.06.10.31.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 10:31:24 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 0D286A18E; Tue, 6 Aug 2019 13:31:14 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=h9tfVic+; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23198 Archived-At: Yes, that's right; it's implemented in pandoc. The auto-width thing only works when the table cells are "simple" (containing no block elements that need to wrap), and all the widths must be 0. (I'm actually not sure what happens when only some are; the types allow that but they really shouldn't.) BPJ writes: > I'm trying to build tables programmatically in a filter. > > It seems as if all column widths are specified as 0.0 Pandoc will calculate > optimal column widths based on the length of cell contents and the > available space. Is this correct? > > It also seems that if a column width is an explicit non-zero float Pandoc > will set the width of that column as specified so that the width of the > column is the available space multiplied by the specified float, such that > if the float is e.g. 0.4 the width of the column is 40% of the available > width and if the sum of the specified widths is greater than 1 the table > will be wider than the available width. Is this correct? > > Is the above behavior, assuming I have understood it correctly, implemented > in Pandoc or in LaTeX? > > What happens, specifically to the columns for which a zero value is > specified, if some of the specified column widths are zero and some are > non-zero? I guess that the available space if any remains after subtracting > the non-zero widths is distributed among the zero-width columns, or do they > become truly zero-width? > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhC5C0Jneasd5rBrB28Xn2cOviw%2BqNOfxQo3GT68M1sxuw%40mail.gmail.com.