From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Question about the math mode table exporting for latex and html Date: Tue, 7 Jan 2014 16:17:16 -0500 Message-ID: <20140107211716.GB537@eyeBook> References: <87ha9gi0o1.fsf@pku.edu.cn> <8761pw6o3e.fsf@gmx.us> <8738kzd9w5.fsf@gmail.com> 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]:54139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0e1e-0000j5-Fh for emacs-orgmode@gnu.org; Tue, 07 Jan 2014 16:17:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0e1Y-0000sh-45 for emacs-orgmode@gnu.org; Tue, 07 Jan 2014 16:17:26 -0500 Received: from mail.rickster.com ([204.62.15.78]:53916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0e1X-0000rP-Tq for emacs-orgmode@gnu.org; Tue, 07 Jan 2014 16:17:20 -0500 Content-Disposition: inline In-Reply-To: <8738kzd9w5.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Rasmus 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 i= n > > 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. >=20 I have no opinion on this one. Nicolas, if you think this is the correct approach syntactically, then it works for me. rick