From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YH7tGojxEmcMCAEAqHPOHw:P1 (envelope-from ) for ; Fri, 18 Oct 2024 23:38:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YH7tGojxEmcMCAEAqHPOHw (envelope-from ) for ; Sat, 19 Oct 2024 01:38:48 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=J5pX3Cz0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729294728; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hT7ZEf+qu12wbePuXDz4SWdSKGMe9qEGB52FM3p+Cms=; b=HhA+W9q66w1rMO2vKYC6XbOAt0rgGwINy10tbBwFEN7/l7W3OUS+vx+F6k0uOfjqIq/uCE jZXrIgTqkTHCO4UeQX1x/F2UgGmJWxmGmUWbKmtgo27zmn/CeEyvII61/aolwdXmQe+TCl xtC4iAS9EACsicdyEpyr7871GqaTSkPPV6VLGKmuCgYpc8R6PryOCzKvqKoQVy9nvlqOSZ 5ZmEynBadMRZ3RTqpjt74kghAaXSZvLyGneppzANVZFhHAqMFIHufZvloyXPRikjKuyLDQ mgEgUv00KgCuMagPAS1N1N4wwfPeLX4BxzFtduk/slIiAgCwW+zBM1XAvPMzxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=J5pX3Cz0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729294728; a=rsa-sha256; cv=none; b=NIi1zPD6DUr8tV371/X1LtDCDjrJugqsPVDLQg0ySeRci2tteDx5oW9fi18KW9r+wcsCzR hPtHBJrt7G/MPlNb8wWFy+Fo3JiBjaA3CDd22dnxEfbamGpjwERJhdhn3f1puGi7RzGib5 NUyO1tJnEWFwydC0xNiZl4YqR4egnU7qqV20cDztSYvzL9u6Acad0KEn/Zmr21qYZP2GDE CeH2Oq8sfKs790pyyojWhIpsjchmU4zb7EPAU1K+0dJM3kORJCna/w6dinrRcNZGxCNMDn YT0njhv22GvfOH3PFvn/wZU4qC+1YcBvmXsjsAovTvwV1WQJLg38EDfNRfNs2g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F304A831E2 for ; Sat, 19 Oct 2024 01:38:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1wXl-0007YP-CX; Fri, 18 Oct 2024 19:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1wXi-0007Y8-N9 for emacs-orgmode@gnu.org; Fri, 18 Oct 2024 19:38:03 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1wXf-0003Zk-Ec for emacs-orgmode@gnu.org; Fri, 18 Oct 2024 19:38:01 -0400 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-71e49ef3bb9so1979292b3a.1 for ; Fri, 18 Oct 2024 16:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729294677; x=1729899477; darn=gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=hT7ZEf+qu12wbePuXDz4SWdSKGMe9qEGB52FM3p+Cms=; b=J5pX3Cz0DPlGIZ6zVu8tBpEOJotwIOIvOXhRbmo4lyXUvEjbMKzJO5xkNZnTAc+A1w c5Gk33j91GuXI0IO2PBwCQyNze9NF3wC0yFzSqLXnjzoAQmkqkJqkiS1g+QmZlmagc1s dP+Q05lHfvdq/XHRWya2BT1WmIdm3sdkXDfjWT3K2SfDYvRV53WC7HWwADHab4SIW/ig g3gw6C0xKnu4RVQ+ZoMRqLeBlhCoDAxf5pUXy35uprf816OFX6dWiR3KJWEZGYqcUsQw rL6+YzTZ7L8w5NNWrmBD2gF/ttyQFuu17JQddUfA9GIrzZC2H11n0C1zoyc/Q3LBh7Ak mf8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729294677; x=1729899477; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hT7ZEf+qu12wbePuXDz4SWdSKGMe9qEGB52FM3p+Cms=; b=kQHp367duFS2K8j3V5LC1DWtxJR2kdxwP3tOfzwZwWJS+p9wp9eOwp0oWlzO9Sz9iA 0UiyMBkVtjHM8YPyxHVIn3gJXzqNoZkOY5OUqxWzk6jj4a8Dlhuc9azhgHlnz3CeUlD/ Of96q/p0Qv4uA738MmCgriDOzc8fybHqT4RN4bOD773RKEk0j1zbv6JwsVFPwUd/BaD8 66KI4uvwZkL0EqD++I2/oeyzVb1qWRiAHXfiskWiF4DlAKHEt2+VSQbW+JW1bkd0Dh0n LQo9uhozL4xbt8esd16/U11QbKZIBq41P56REk7c5nM52yYFC3D7DykXqaKYTXcRfRgJ akVg== X-Gm-Message-State: AOJu0YzeaTgBObNYKOCn6urto/hpU6fkGt8cRdC5AywwJd622lEZBVJd hLxbMDskOJeOo3kkRY7m+iFNv0YhIJ506NgLthZDz1bfsV3IkkscTIbrxw== X-Google-Smtp-Source: AGHT+IESedhiJnMpGKzbfBYellNUtnPJVRIF3P9uDzJhuXc4feAI6H+uDZK+ifO1e0wMXtdKdhr+8w== X-Received: by 2002:a05:6a00:1d15:b0:71e:591d:cb4c with SMTP id d2e1a72fcca58-71e8fd43bc5mr16168420b3a.1.1729294677365; Fri, 18 Oct 2024 16:37:57 -0700 (PDT) Received: from smtpclient.apple ([2603:8001:7a00:1a0:c53a:e824:f16e:db80]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea33febe2sm2039973b3a.110.2024.10.18.16.37.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2024 16:37:56 -0700 (PDT) From: Mark Barton Message-Id: <7B398819-4668-4DA8-9369-17CF43A414EC@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_C30CE224-B188-4309-A541-3A5DFB1AC85F" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: Exporting tables with cell borders to Latex/PDF Date: Fri, 18 Oct 2024 16:37:45 -0700 In-Reply-To: <87jze5drn8.fsf@city17.xyz> Cc: Org Mode List To: jman References: <87jze5drn8.fsf@city17.xyz> X-Mailer: Apple Mail (2.3776.700.51.11.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=mbarton98@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.07 X-Spam-Score: -1.07 X-Migadu-Queue-Id: F304A831E2 X-TUID: mU+XeePDrUrj --Apple-Mail=_C30CE224-B188-4309-A541-3A5DFB1AC85F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 18, 2024, at 2:31=E2=80=AFPM, jman = wrote: >=20 >=20 > Hello, >=20 > When export to Latex/PDF I'd like /all/ table cells to have borders, = so also vertical column > separators. > After looking around a bit, I learned about column groups: > https://orgmode.org/manual/Column-Groups.html >=20 > I think the only way to accomplish what I want is the following trick, = adding a "cosmetic" column > just to be able to have a border at the beginning of the table: >=20 > |---+---+-----+-----+-----+---------+------------| > | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) | > |---+---+-----+-----+-----+---------+------------| > | / | < | < | < | < | < | <> | > | | 1 | 1 | 1 | 1 | 1 | 1 | > | | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 | > | | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 | > |---+---+-----+-----+-----+---------+------------| > #+TBLFM: $2=3D$1^2::$3=3D$1^3::$4=3D$1^4::$5=3Dsqrt($1)::$6=3Dsqrt(sqrt(= ($1))) >=20 > Am I missing a better solution? >=20 > Thanks >=20 >=20 Here is an example of using the #+ATTR_LaTeX: line to pass parameters to = the LaTeX process that creates the pdf. #+ATTR_LaTeX: :environment tabular :align |l|l|l| |-----+-----+-------| | one | two | three | |-----+-----+-------| | 1 | 2 | 3 | |-----+-----+-------| Mark= --Apple-Mail=_C30CE224-B188-4309-A541-3A5DFB1AC85F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Oct 18, 2024, at 2:31=E2=80=AFPM, jman = <emacs-orgmode@city17.xyz> wrote:


Hello,

When = export to Latex/PDF I'd like /all/ table cells to have borders, so also = vertical column
separators.
After looking around a bit, I learned = about column = groups:
https://orgmode.org/manual/Column-Groups.html

I think = the only way to accomplish what I want is the following trick, adding a = "cosmetic" column
just to be able to have a border at the beginning = of the = table:

|---+---+-----+-----+-----+---------+------------|
| =   | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) = |
|---+---+-----+-----+-----+---------+------------|
| / | < | =   < |   < |   < | =       < | =         <> |
| =   | 1 |   1 |   1 |   1 | =       1 | =          1 |
| =   | 2 |   4 |   8 |  16 | =  1.4142 |     1.1892 |
|   | 3 | =   9 |  27 |  81 |  1.7321 | =     1.3161 = |
|---+---+-----+-----+-----+---------+------------|
#+TBLFM: = $2=3D$1^2::$3=3D$1^3::$4=3D$1^4::$5=3Dsqrt($1)::$6=3Dsqrt(sqrt(($1)))
<= br>Am I missing a better = solution?

Thanks



Here is an example of using the #+ATTR_LaTeX: line to pass parameters = to the LaTeX process that creates the = pdf.

#+ATTR_LaTeX: :environment tabular :align = |l|l|l|
|-----+-----+-------|
| = one | two | three |
|-----+-----+-------|
| =   1 |   2 |     3 |
|-----+-----+-------|

Mark
= --Apple-Mail=_C30CE224-B188-4309-A541-3A5DFB1AC85F--