* html export: row/column dividers in tables
@ 2009-03-31 1:01 Bill White
2009-03-31 4:44 ` Matthew Lundin
0 siblings, 1 reply; 7+ messages in thread
From: Bill White @ 2009-03-31 1:01 UTC (permalink / raw)
To: emacs-orgmode
I recently found a need for visible dividers (or "rules") between the
rows and columns of an org table exported to html. The most recent
discussion of this that I could find on gmane was
http://article.gmane.org/gmane.emacs.orgmode/1709/match=table+rules+html
from 2007, which concluded that such rules weren't supported, so here's
a kludgey workaround I found today:
#+BEGIN_HTML
<pre>
|----+----+----+----|
| a0 | b0 | c0 | d0 |
|----+----+----+----|
| a1 | b1 | c1 | d1 |
|----+----+----+----|
| a2 | b2 | c2 | d2 |
|----+----+----+----|
</pre>
#+END_HTML
It isn't pretty, but it works when you really need visual separation of
rows and columns. Here's what it looks like in real life:
http://members.wolfram.com/billw/VerbatimTables.html
BTW, here's how I got the org-mode code sample onto the webpage:
#+begin_src org
#+BEGIN_HTML
<pre>
|----+----+----+----|
| a0 | b0 | c0 | d0 |
|----+----+----+----|
| a1 | b1 | c1 | d1 |
|----+----+----+----|
| a2 | b2 | c2 | d2 |
|----+----+----+----|
</pre>
#+END_HTML
#+end_src
Cheers -
bw
--
Bill White . billw@wolfram.com . http://members.wolfram.com/billw
"No ma'am, we're musicians."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html export: row/column dividers in tables
2009-03-31 1:01 html export: row/column dividers in tables Bill White
@ 2009-03-31 4:44 ` Matthew Lundin
2009-03-31 14:20 ` Bill White
0 siblings, 1 reply; 7+ messages in thread
From: Matthew Lundin @ 2009-03-31 4:44 UTC (permalink / raw)
To: Bill White; +Cc: emacs-orgmode
Hi Bill,
If I understand your post correctly, I think this section of the manual
will help to accomplish what you are looking for---i.e., the creation of
special vertical lines in tables:
http://orgmode.org/manual/Column-groups.html#Column-groups
Also you change the appearance of tables using css.
Best,
Matt
Bill White <billw@wolfram.com> writes:
> I recently found a need for visible dividers (or "rules") between the
> rows and columns of an org table exported to html. The most recent
> discussion of this that I could find on gmane was
> http://article.gmane.org/gmane.emacs.orgmode/1709/match=table+rules+html
> from 2007, which concluded that such rules weren't supported, so here's
> a kludgey workaround I found today:
>
> #+BEGIN_HTML
> <pre>
> |----+----+----+----|
> | a0 | b0 | c0 | d0 |
> |----+----+----+----|
> | a1 | b1 | c1 | d1 |
> |----+----+----+----|
> | a2 | b2 | c2 | d2 |
> |----+----+----+----|
> </pre>
> #+END_HTML
>
> It isn't pretty, but it works when you really need visual separation of
> rows and columns. Here's what it looks like in real life:
>
> http://members.wolfram.com/billw/VerbatimTables.html
>
> BTW, here's how I got the org-mode code sample onto the webpage:
>
> #+begin_src org
> #+BEGIN_HTML
> <pre>
> |----+----+----+----|
> | a0 | b0 | c0 | d0 |
> |----+----+----+----|
> | a1 | b1 | c1 | d1 |
> |----+----+----+----|
> | a2 | b2 | c2 | d2 |
> |----+----+----+----|
> </pre>
> #+END_HTML
> #+end_src
>
> Cheers -
>
> bw
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html export: row/column dividers in tables
2009-03-31 4:44 ` Matthew Lundin
@ 2009-03-31 14:20 ` Bill White
2009-03-31 14:36 ` Carsten Dominik
0 siblings, 1 reply; 7+ messages in thread
From: Bill White @ 2009-03-31 14:20 UTC (permalink / raw)
To: Matthew Lundin; +Cc: emacs-orgmode
On Mon Mar 30 2009 at 23:44, Matthew Lundin <mdl@imapmail.org> wrote:
> Hi Bill,
>
> If I understand your post correctly, I think this section of the manual
> will help to accomplish what you are looking for---i.e., the creation of
> special vertical lines in tables:
>
> http://orgmode.org/manual/Column-groups.html#Column-groups
Thanks, I'd missed that.
> Also you change the appearance of tables using css.
I'll take a look.
Many thanks -
bw
> Best,
> Matt
>
> Bill White <billw@wolfram.com> writes:
>
>> I recently found a need for visible dividers (or "rules") between the
>> rows and columns of an org table exported to html. The most recent
>> discussion of this that I could find on gmane was
>> http://article.gmane.org/gmane.emacs.orgmode/1709/match=table+rules+html
>> from 2007, which concluded that such rules weren't supported, so here's
>> a kludgey workaround I found today:
>>
>> #+BEGIN_HTML
>> <pre>
>> |----+----+----+----|
>> | a0 | b0 | c0 | d0 |
>> |----+----+----+----|
>> | a1 | b1 | c1 | d1 |
>> |----+----+----+----|
>> | a2 | b2 | c2 | d2 |
>> |----+----+----+----|
>> </pre>
>> #+END_HTML
>>
>> It isn't pretty, but it works when you really need visual separation of
>> rows and columns. Here's what it looks like in real life:
>>
>> http://members.wolfram.com/billw/VerbatimTables.html
>>
>> BTW, here's how I got the org-mode code sample onto the webpage:
>>
>> #+begin_src org
>> #+BEGIN_HTML
>> <pre>
>> |----+----+----+----|
>> | a0 | b0 | c0 | d0 |
>> |----+----+----+----|
>> | a1 | b1 | c1 | d1 |
>> |----+----+----+----|
>> | a2 | b2 | c2 | d2 |
>> |----+----+----+----|
>> </pre>
>> #+END_HTML
>> #+end_src
>>
>> Cheers -
>>
>> bw
>
>
Cheers -
bw
--
Bill White . billw@wolfram.com . http://members.wolfram.com/billw
"No ma'am, we're musicians."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html export: row/column dividers in tables
2009-03-31 14:20 ` Bill White
@ 2009-03-31 14:36 ` Carsten Dominik
2009-03-31 18:12 ` Bill White
0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2009-03-31 14:36 UTC (permalink / raw)
To: Bill White; +Cc: emacs-orgmode
On Mar 31, 2009, at 4:20 PM, Bill White wrote:
> On Mon Mar 30 2009 at 23:44, Matthew Lundin <mdl@imapmail.org> wrote:
>
>> Hi Bill,
>>
>> If I understand your post correctly, I think this section of the
>> manual
>> will help to accomplish what you are looking for---i.e., the
>> creation of
>> special vertical lines in tables:
>>
>> http://orgmode.org/manual/Column-groups.html#Column-groups
>
> Thanks, I'd missed that.
>
>> Also you change the appearance of tables using css.
>
> I'll take a look.
Also, since today, latest git version, you can use
#+ATTR_HTML: border="2" rules="all" frame="all"
before the table to modify the default table tag.
If you always want lines, modify the default table tag
in `org-export-html-table-tag'.
- Carsten
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html export: row/column dividers in tables
2009-03-31 14:36 ` Carsten Dominik
@ 2009-03-31 18:12 ` Bill White
2009-03-31 18:19 ` Carsten Dominik
2009-03-31 18:22 ` Nick Dokos
0 siblings, 2 replies; 7+ messages in thread
From: Bill White @ 2009-03-31 18:12 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
On Tue Mar 31 2009 at 09:36, Carsten Dominik <carsten.dominik@gmail.com> wrote:
> On Mar 31, 2009, at 4:20 PM, Bill White wrote:
>
>> On Mon Mar 30 2009 at 23:44, Matthew Lundin <mdl@imapmail.org> wrote:
>>
>>> Hi Bill,
>>>
>>> If I understand your post correctly, I think this section of the
>>> manual
>>> will help to accomplish what you are looking for---i.e., the
>>> creation of
>>> special vertical lines in tables:
>>>
>>> http://orgmode.org/manual/Column-groups.html#Column-groups
>>
>> Thanks, I'd missed that.
>>
>>> Also you change the appearance of tables using css.
>>
>> I'll take a look.
>
> Also, since today, latest git version, you can use
>
> #+ATTR_HTML: border="2" rules="all" frame="all"
>
> before the table to modify the default table tag.
> If you always want lines, modify the default table tag
> in `org-export-html-table-tag'.
Thank you!
Before I update from git (or whatever the terminology is - I'm a cvs
guy), could I persuade you to apply Nick Dokos' patch to org-exp.el?
His patch is in http://article.gmane.org/gmane.emacs.orgmode/11862, and
the problem it solves is described in my initial message in the thread,
http://thread.gmane.org/gmane.emacs.orgmode/11857. In his patch
message, Nick offers a clear explanation of why the problem happens.
To summarize the problem, I'm prompted to kill a temp buffer when I
html-export an org file that contains these tags:
#+begin_src message
[...]
#+end_src
so when I export the containing project, I have to babysit the process
and answer 'y' to each query about killing the temp buffer. Here's a
full example that triggers the bug:
#+begin_src message
From: Nick Dokos <nicholas.dokos@hp.com>
Subject: Re: [Orgmode] Buffer *temp* modified; kill anyway?
To: Bill White <billw@wolfram.com>
Cc: emacs-orgmode@gnu.org
Date: Wed, 04 Mar 2009 13:38:32 -0500 (from Gnus)
Reply-To: nicholas.dokos@hp.com
X-Sent: 1 hour, 9 minutes, 51 seconds ago
Message-ID: <9344.1236191912@alphaville.usa.hp.com>
#+end_src
(I like to provide fontified email excerpts in my per-project org files
for coworkers who read them on the web.)
Many thanks -
bw
--
Bill White . billw@wolfram.com . http://members.wolfram.com/billw
"No ma'am, we're musicians."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html export: row/column dividers in tables
2009-03-31 18:12 ` Bill White
@ 2009-03-31 18:19 ` Carsten Dominik
2009-03-31 18:22 ` Nick Dokos
1 sibling, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2009-03-31 18:19 UTC (permalink / raw)
To: Bill White; +Cc: emacs-orgmode
Hi Bill,
I did apply Nick's patch on March 5,
commit 6ccc6b46528ad70f2f3267a7e40c70494f5c2192
If you are not comfortable with git, you can always get the
most recent snapshot at
http://orgmode.org/org-snapshot.zip
or
http://orgmode.org/org-snapshot.tar.gz
HTH
- Carsten
On Mar 31, 2009, at 8:12 PM, Bill White wrote:
> On Tue Mar 31 2009 at 09:36, Carsten Dominik <carsten.dominik@gmail.com
> > wrote:
>
>> On Mar 31, 2009, at 4:20 PM, Bill White wrote:
>>
>>> On Mon Mar 30 2009 at 23:44, Matthew Lundin <mdl@imapmail.org>
>>> wrote:
>>>
>>>> Hi Bill,
>>>>
>>>> If I understand your post correctly, I think this section of the
>>>> manual
>>>> will help to accomplish what you are looking for---i.e., the
>>>> creation of
>>>> special vertical lines in tables:
>>>>
>>>> http://orgmode.org/manual/Column-groups.html#Column-groups
>>>
>>> Thanks, I'd missed that.
>>>
>>>> Also you change the appearance of tables using css.
>>>
>>> I'll take a look.
>>
>> Also, since today, latest git version, you can use
>>
>> #+ATTR_HTML: border="2" rules="all" frame="all"
>>
>> before the table to modify the default table tag.
>> If you always want lines, modify the default table tag
>> in `org-export-html-table-tag'.
>
> Thank you!
>
> Before I update from git (or whatever the terminology is - I'm a cvs
> guy), could I persuade you to apply Nick Dokos' patch to org-exp.el?
> His patch is in http://article.gmane.org/gmane.emacs.orgmode/11862,
> and
> the problem it solves is described in my initial message in the
> thread,
> http://thread.gmane.org/gmane.emacs.orgmode/11857. In his patch
> message, Nick offers a clear explanation of why the problem happens.
>
> To summarize the problem, I'm prompted to kill a temp buffer when I
> html-export an org file that contains these tags:
>
> #+begin_src message
> [...]
> #+end_src
>
> so when I export the containing project, I have to babysit the process
> and answer 'y' to each query about killing the temp buffer. Here's a
> full example that triggers the bug:
>
> #+begin_src message
> From: Nick Dokos <nicholas.dokos@hp.com>
> Subject: Re: [Orgmode] Buffer *temp* modified; kill anyway?
> To: Bill White <billw@wolfram.com>
> Cc: emacs-orgmode@gnu.org
> Date: Wed, 04 Mar 2009 13:38:32 -0500 (from Gnus)
> Reply-To: nicholas.dokos@hp.com
> X-Sent: 1 hour, 9 minutes, 51 seconds ago
> Message-ID: <9344.1236191912@alphaville.usa.hp.com>
> #+end_src
>
> (I like to provide fontified email excerpts in my per-project org
> files
> for coworkers who read them on the web.)
>
> Many thanks -
>
> bw
> --
> Bill White . billw@wolfram.com . http://members.wolfram.com/billw
> "No ma'am, we're musicians."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: html export: row/column dividers in tables
2009-03-31 18:12 ` Bill White
2009-03-31 18:19 ` Carsten Dominik
@ 2009-03-31 18:22 ` Nick Dokos
1 sibling, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2009-03-31 18:22 UTC (permalink / raw)
To: Bill White; +Cc: emacs-orgmode
Bill White <billw@wolfram.com> wrote:
>
> Before I update from git (or whatever the terminology is - I'm a cvs
> guy), could I persuade you to apply Nick Dokos' patch to org-exp.el?
> His patch is in http://article.gmane.org/gmane.emacs.orgmode/11862, and
> the problem it solves is described in my initial message in the thread,
> http://thread.gmane.org/gmane.emacs.orgmode/11857. In his patch
> message, Nick offers a clear explanation of why the problem happens.
>
Bill,
Carsten applied the patch on March 5. Here's the description:
commit 6ccc6b46528ad70f2f3267a7e40c70494f5c2192
Author: Carsten Dominik <carsten.dominik@gmail.com>
Date: Thu Mar 5 00:01:50 2009 +0100
Export: Fix problem with exporting message mode src regions
Message-mode assigns auto-safe file names to temporary buffers, in the
draft directory. This causes problems when running message-mode in a
temporary buffer with with-temp-buffer. When the form tries to kill
the buffer, is asks for saving it....
This commit turns off the buffer-modified flag and so avoids the
query.
HTH,
Nick
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-03-31 18:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 1:01 html export: row/column dividers in tables Bill White
2009-03-31 4:44 ` Matthew Lundin
2009-03-31 14:20 ` Bill White
2009-03-31 14:36 ` Carsten Dominik
2009-03-31 18:12 ` Bill White
2009-03-31 18:19 ` Carsten Dominik
2009-03-31 18:22 ` Nick Dokos
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).