From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Tables in HTML export Date: Sat, 8 Dec 2018 05:39:34 +0530 Message-ID: References: <87in058n9h.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e55ddb057c778c09" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVQBs-0007TU-7W for emacs-orgmode@gnu.org; Fri, 07 Dec 2018 19:09:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVQBr-0007ZR-JR for emacs-orgmode@gnu.org; Fri, 07 Dec 2018 19:09:52 -0500 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:34333) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVQBr-0007Z3-A6 for emacs-orgmode@gnu.org; Fri, 07 Dec 2018 19:09:51 -0500 Received: by mail-oi1-x229.google.com with SMTP id h25so4826187oig.1 for ; Fri, 07 Dec 2018 16:09:51 -0800 (PST) In-Reply-To: <87in058n9h.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode mailing list --000000000000e55ddb057c778c09 Content-Type: text/plain; charset="UTF-8" > 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 --000000000000e55ddb057c778c09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



> My specific use case is that I have a multi-row table header created i= n 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<= br> > export.

I defined the following ma= cro.

#+MACRO: hlmacro (eval (org-table-insert-hlin= e))

Then, inserting {{{hlmacro}}} in a table cell (I can do th= at in a table generated by a code block) results in insertion of an hline b= elow the cell at the beginning of export. The header is then correctly iden= tified.

Thanks,

Vikas


=C2=A0
--000000000000e55ddb057c778c09--