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: Thu, 09 Jan 2014 11:53:39 +0100 Message-ID: <87iotta0jw.fsf@gmail.com> References: <87ha9gi0o1.fsf@pku.edu.cn> <8761pw6o3e.fsf@gmx.us> <8738kzd9w5.fsf@gmail.com> <20140107211716.GB537@eyeBook> 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]:43854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DEr-0002x8-AT for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 05:53:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1DEm-0004qU-Bg for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 05:53:25 -0500 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:48962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DEm-0004qQ-53 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 05:53:20 -0500 Received: by mail-we0-f181.google.com with SMTP id u56so281942wes.26 for ; Thu, 09 Jan 2014 02:53:19 -0800 (PST) In-Reply-To: <20140107211716.GB537@eyeBook> (Rick Frankel's message of "Tue, 7 Jan 2014 16:17:16 -0500") 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: emacs-orgmode@gnu.org Hello, Rick Frankel writes: > On Tue, Jan 07, 2014 at 05:39:06PM +0100, Nicolas Goaziou wrote: >> Rasmus writes: >>=20 >> > 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 >>=20 >> FWIW, I think it's worth trying. I'm Cc'ing Rick Frankel for his >> opinion. >>=20 > > I have no opinion on this one. Nicolas, if you think this is the > correct approach syntactically, then it works for me. OK. Thank you. Regards, --=20 Nicolas Goaziou