* Does html table export require that the top row be treated as a header?
@ 2012-08-24 22:47 John Hendy
2012-08-27 7:37 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: John Hendy @ 2012-08-24 22:47 UTC (permalink / raw)
To: emacs-orgmode
I have a document I will export via pdf and html. My table is like so:
#+attr_latex: align={lp{0.8\textwidth}}
#+attr_html: width="600px"
| *R1* | stuff |
|------+------------------|
| *R2* | more stuff |
|------+------------------|
| *R2* | some third stuff |
I'd like horizontal separators in LaTeX and don't care one way or the
other for html so since there didn't seem to be a way to have them in
one and not the other I inserted them. When I export the html, it
looks as though since I have separators it exports the top row as
class=th instead of tr like a normal row. This bolds and centers it.
Any way to have it treat the top row as a regular row in the presence
of midlines?
Thanks,
John
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Does html table export require that the top row be treated as a header?
2012-08-24 22:47 Does html table export require that the top row be treated as a header? John Hendy
@ 2012-08-27 7:37 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-08-27 7:37 UTC (permalink / raw)
To: John Hendy; +Cc: emacs-orgmode
Hi John,
John Hendy <jw.hendy@gmail.com> writes:
> I have a document I will export via pdf and html. My table is like so:
>
> #+attr_latex: align={lp{0.8\textwidth}}
> #+attr_html: width="600px"
> | *R1* | stuff |
> |------+------------------|
> | *R2* | more stuff |
> |------+------------------|
> | *R2* | some third stuff |
>
> I'd like horizontal separators in LaTeX and don't care one way or the
> other for html so since there didn't seem to be a way to have them in
> one and not the other I inserted them. When I export the html, it
> looks as though since I have separators it exports the top row as
> class=th instead of tr like a normal row. This bolds and centers it.
>
> Any way to have it treat the top row as a regular row in the presence
> of midlines?
#+BIND: org-export-table-header-tags ("<tr>" . "</tr>")
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-27 7:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 22:47 Does html table export require that the top row be treated as a header? John Hendy
2012-08-27 7:37 ` Bastien
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).