emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mark Barton <mbarton98@gmail.com>
To: jman <emacs-orgmode@city17.xyz>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Exporting tables with cell borders to Latex/PDF
Date: Fri, 18 Oct 2024 16:37:45 -0700	[thread overview]
Message-ID: <7B398819-4668-4DA8-9369-17CF43A414EC@gmail.com> (raw)
In-Reply-To: <87jze5drn8.fsf@city17.xyz>

[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]



> On Oct 18, 2024, at 2:31 PM, 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=$1^2::$3=$1^3::$4=$1^4::$5=sqrt($1)::$6=sqrt(sqrt(($1)))
> 
> 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

[-- Attachment #2: Type: text/html, Size: 2424 bytes --]

  reply	other threads:[~2024-10-18 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18 21:31 Exporting tables with cell borders to Latex/PDF jman
2024-10-18 23:37 ` Mark Barton [this message]
2024-10-19 12:25   ` jman
2024-10-21  9:13     ` Rens Oliemans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7B398819-4668-4DA8-9369-17CF43A414EC@gmail.com \
    --to=mbarton98@gmail.com \
    --cc=emacs-orgmode@city17.xyz \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).