From: Nick Dokos <nicholas.dokos@hp.com>
To: henry atting <nsmp_01@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: export table html centered
Date: Sat, 15 Aug 2009 15:50:19 -0400 [thread overview]
Message-ID: <15041.1250365819@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from henry atting <nsmp_01@online.de> of "Sat\, 15 Aug 2009 18\:57\:19 +0200." <877hx5ow0g.fsf@online.de>
henry atting <nsmp_01@online.de> wrote:
> That is what I am searching for: Is there a markup rule that puts org
> tables centered on the resulting page when exported as html.
> Seems that #+BEGIN_CENTER – #+END_CENTER does not do this, marking a
> table like that solely leads to an error message:
>
> progn: Args out of range: 84, 906
>
>
Version info: Org-mode version 6.29trans
GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-09 on gamaville.dokosmarshall.org
I don't get an error using #+BEGIN_CENTER/#+END_CENTER, but otoh I also
don't get a centered table: it's meant for centered paragraphs I think.
The align= attribute for a table is deprecated and I don't know what
the currently recommended method is (probably CSS - but I don't know much
about that). But if you don't mind using deprecated attributes, and assuming
you want *every* table centered, then customizing
org-export-table-header-tags
to add
align="center"
should do it. You can also use #+BIND to do it per-file:
,----
| #+BIND: org-export-html-table-tag "<table align=\"center\" border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">"
| | foo | bar |
| |-----+-----|
| | 1 | 2 |
| | 2 | 5 |
| | 3 | 10 |
`----
HTH,
Nick
next prev parent reply other threads:[~2009-08-15 19:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-15 16:57 export table html centered henry atting
2009-08-15 19:50 ` Nick Dokos [this message]
2009-08-16 1:13 ` Nick Dokos
2009-08-16 5:06 ` Carsten Dominik
2009-08-16 10:22 ` henry atting
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=15041.1250365819@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=nsmp_01@online.de \
/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).