emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Leo Butler <leo.butler@umanitoba.ca>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: table format during html export
Date: Tue, 15 Feb 2022 22:16:27 +0000	[thread overview]
Message-ID: <87a6er22tg.fsf@posteo.net> (raw)
In-Reply-To: <87zgmrq2jv.fsf@t14.reltub.ca> (Leo Butler's message of "Tue, 15 Feb 2022 14:48:20 -0600")

Hi Leo,

Leo Butler writes:

> Hello,
> I have some tables like
> | a | b |
> | c | d |
> I would like to have this export (in html) to something like
> | a  b |
> | c  d |
> i.e., add a vertical bar on the extreme left and right.
> I have searched the org manual and online and I can't find a
> solution.
> TIA,
> Leo

You can modify the attributes for a certain table, for example like this:

#+ATTR_HTML: :border 2 :cellspacing 0 :cellpadding 6 :rules none :frame vsides
| a | b |
| c | d |

For all tables, you can apply a value to
`org-html-table-default-attributes', locally or globally:

#+begin_src emacs-lisp
(setq org-html-table-default-attributes
  '(:border "2" :cellspacing "0" :cellpadding "6" :rules "none" :frame "vsides"))

Best regards,

Juan Manuel 

  reply	other threads:[~2022-02-15 22:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-15 20:48 table format during html export Leo Butler
2022-02-15 22:16 ` Juan Manuel Macías [this message]
2022-02-16 15:57   ` Leo Butler

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:

  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=87a6er22tg.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=leo.butler@umanitoba.ca \


* 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


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