From: "Cook, Malcolm" <MEC@stowers.org>
To: 'Michael Brand' <michael.ch.brand@gmail.com>,
'David Arroyo Menendez' <davidam@gnu.org>
Cc: 'Org Mode' <emacs-orgmode@gnu.org>
Subject: Re: sortable columns in html tables
Date: Tue, 30 Sep 2014 19:35:17 +0000 [thread overview]
Message-ID: <D4772401B9D976478C0895769BE3E7920F1FF371@MBSRV02.sgc.loc> (raw)
In-Reply-To: <CALn3zohOyie+QDJFribCrHNsAiSq7oGkj2jFx6BQBXxwoXh1XQ@mail.gmail.com>
Hi,
The syntax for much of this has changed since that post.
Instead of
#+style:
you will want
#+HTML_HEAD:
And, attaching a class to an exported html table is handled differently too.
Instead of
#+attr_html: class="sortable"
you want
#+attr_html: :class "sortable"
Such declarations also work for exported tables if placed between code blocks that export tables and the result tables (i.e. immediately after the `#+end_src`)
Also, if you want ALL tables to have a class of sortable, you _can_ eval the following
(plist-put org-html-table-default-attributes :class "sortable")
i.e. by putting it in your emacs init.el
Or, on a per-buffer basis, which is probably better, you can put this in your .org file
#+BIND: org-html-table-default-attributes (:border "2" :cellspacing "0" :cellpadding "6" :rules "groups" :frame "hsides" :class "sortable")
By the way, I don't use sortable, I use dataTable, but the method for getting the class attribute on the html table is the same.
~malcolm_cook
>-----Original Message-----
>From: emacs-orgmode-bounces+mec=stowers.org@gnu.org [mailto:emacs-orgmode-bounces+mec=stowers.org@gnu.org] On
>Behalf Of Michael Brand
>Sent: Tuesday, September 30, 2014 1:12 PM
>To: David Arroyo Menendez
>Cc: Org Mode
>Subject: Re: [O] sortable columns in html tables
>
>Hi David
>
>On Tue, Sep 30, 2014 at 1:44 AM, David Arroyo Menendez <davidam@gnu.org> wrote:
>> How can I make sortable columns in tables? I would be useful to edit or
>> export to html.
>>
>> Some experiences?
>>
>> Thanks!
>
>As I understand you this pointer might be of interest:
>http://lists.gnu.org/archive/html/emacs-orgmode/2012-11/msg00809.html
>
>Michael
prev parent reply other threads:[~2014-09-30 19:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 23:44 sortable columns in html tables David Arroyo Menendez
2014-09-30 18:11 ` Michael Brand
2014-09-30 19:35 ` Cook, Malcolm [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D4772401B9D976478C0895769BE3E7920F1FF371@MBSRV02.sgc.loc \
--to=mec@stowers.org \
--cc=davidam@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=michael.ch.brand@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.