emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting tables with cell borders to Latex/PDF
@ 2024-10-18 21:31 jman
  2024-10-18 23:37 ` Mark Barton
  0 siblings, 1 reply; 2+ messages in thread
From: jman @ 2024-10-18 21:31 UTC (permalink / raw)
  To: Emacs Orgmode


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-18 23:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18 21:31 Exporting tables with cell borders to Latex/PDF jman
2024-10-18 23:37 ` Mark Barton

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).