emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tables in HTML export
@ 2018-12-07  1:29 Vikas Rawal
  2018-12-07 13:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Vikas Rawal @ 2018-12-07  1:29 UTC (permalink / raw)
  To: org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

How does org identify which table rows should be exported with header tags?
It seems rows above a horizontal line are automatically converted using
<th> tags. Is there a way of controlling this?

My specific use case is that I have a multi-row table header created in an
R code block. I do not have a way of creating a horizontal line, and
without that the header is not being recognised as the header in html
export.

Would be grateful for any pointers.

Vikas

[-- Attachment #2: Type: text/html, Size: 592 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tables in HTML export
  2018-12-07  1:29 Tables in HTML export Vikas Rawal
@ 2018-12-07 13:44 ` Nicolas Goaziou
  2018-12-08  0:09   ` Vikas Rawal
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2018-12-07 13:44 UTC (permalink / raw)
  To: Vikas Rawal; +Cc: org-mode mailing list

Hello,

Vikas Rawal <vikaslists@agrarianresearch.org> writes:

> How does org identify which table rows should be exported with header tags?
> It seems rows above a horizontal line are automatically converted using
> <th> tags. Is there a way of controlling this?

All rows above the first separator (or the second one if ) are
considered to be part of the header.

> My specific use case is that I have a multi-row table header created in an
> R code block. I do not have a way of creating a horizontal line, and
> without that the header is not being recognised as the header in html
> export.

See `org-html-table-row-open-tag', probably.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tables in HTML export
  2018-12-07 13:44 ` Nicolas Goaziou
@ 2018-12-08  0:09   ` Vikas Rawal
  0 siblings, 0 replies; 3+ messages in thread
From: Vikas Rawal @ 2018-12-08  0:09 UTC (permalink / raw)
  To: org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

> My specific use case is that I have a multi-row table header created in an
> > R code block. I do not have a way of creating a horizontal line, and
> > without that the header is not being recognised as the header in html
> > export.
>

I defined the following macro.

#+MACRO: hlmacro (eval (org-table-insert-hline))

Then, inserting {{{hlmacro}}} in a table cell (I can do that in a table
generated by a code block) results in insertion of an hline below the cell
at the beginning of export. The header is then correctly identified.

Thanks,

Vikas

[-- Attachment #2: Type: text/html, Size: 1095 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-08  0:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07  1:29 Tables in HTML export Vikas Rawal
2018-12-07 13:44 ` Nicolas Goaziou
2018-12-08  0:09   ` Vikas Rawal

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