From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Question about the math mode table exporting for latex and html Date: Tue, 07 Jan 2014 17:39:06 +0100 Message-ID: <8738kzd9w5.fsf@gmail.com> References: <87ha9gi0o1.fsf@pku.edu.cn> <8761pw6o3e.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Zg5-0002Zo-Qq for emacs-orgmode@gnu.org; Tue, 07 Jan 2014 11:38:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0Zfz-0003Me-U7 for emacs-orgmode@gnu.org; Tue, 07 Jan 2014 11:38:53 -0500 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:35406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Zfz-0003Ma-NH for emacs-orgmode@gnu.org; Tue, 07 Jan 2014 11:38:47 -0500 Received: by mail-wi0-f172.google.com with SMTP id en1so4386392wid.5 for ; Tue, 07 Jan 2014 08:38:46 -0800 (PST) In-Reply-To: <8761pw6o3e.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 07 Jan 2014 12:14:13 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: Rick Frankel , emacs-orgmode@gnu.org Hello, Rasmus writes: > AFAIK, mathjax supports amsmath matrices, e.g. the third example here=EF= =BB=BF=C2=B9 . > Thus, we'd really just want to insert the output of org-latex-table in > the html-file. > > Perhaps something like the following would be OK? Nicholas? > > #+ATTR_HTML: :mode latex > #+ATTR_LATEX: :mode math :environment pmatrix :math-prefix \mathbf{H}=3D > | \vdots | 0 | \vdots | > | \vdots | H | \vdots | > | \vdots | 0 | \vdots | > > This would tell ox-html.el to transcode the table via ox-latex-tabel > and feed the string via org-html-format-latex (assuming latex-frag is > a string).=20=20 FWIW, I think it's worth trying. I'm Cc'ing Rick Frankel for his opinion. > Of course ox-html could also check out ATTR_LATEX but this > would lead to a spurious solution since LaTeX =E2=89=A0 HTML IMO. I agree. > Nicholas, if you want I can look into this. Certainly. Thank you. Regards, --=20 Nicolas Goaziou