From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug][ox-latex] Captions in equations Date: Mon, 20 Jan 2014 11:41:44 +0100 Message-ID: <87k3dvexzr.fsf@gmx.us> References: <87txd16q0s.fsf@gmx.us> <20140119032333.GF898@smoon> <87sisk835v.fsf@gmx.us> <20140120005147.GI898@smoon> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5CHu-0005lW-OJ for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 05:41:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5CHn-0002vv-D8 for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 05:41:02 -0500 Received: from plane.gmane.org ([80.91.229.3]:55463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5CHn-0002tq-6Q for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 05:40:55 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5CHk-0004iT-0T for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 11:40:52 +0100 Received: from 109.201.154.202 ([109.201.154.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jan 2014 11:40:52 +0100 Received: from rasmus by 109.201.154.202 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jan 2014 11:40:52 +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: emacs-orgmode@gnu.org Hi Vladimir, Vladimir Lomov writes: >>> IMHO, this is wrong approach. >> I don't understand. > As I said, this is IMHO. I just didn't understand that sentence. I was not disputing your opinion. >>> I would consider this example as a special way to generate a matrix >>> when exporting to LaTeX, then CAPTION is useless here. Also, HTML >>> export will give differently looking result. > >> But it shouldn't. It should produce a matrix as well, e.g. via >> MathJax. > > At first, I wanted to write the following: > > And would will be if one doesn't use MathJax? For example, I prefer to > use dvipng to generate PNG images (there are several reasons for > this). So, basically, this is a special case, and an user evidently > knows about this. Hence the "e.g.". > But then I tried to export this example document to HTML with MathJax > and it fails. Consider these two examples: 'ex-tbl.org' and > 'ex-tbl2.org' (attached to the message). After exporting first to html I > get 'ex-tbl.html' without MathJax, the second has MathJax but only for > formula. As I expected, problem occurs only for LaTeX export, due to a > bit weird combination. Sure. HTML currently does not understand "matrix-tables". I'm pretty sure you know the following already: but what Org does, when making math-pngs for HTML, is to generate tex files that are processed with dvipng (as far as I remember). Since a while ago amsmath is a default package in Org so a ox-html solution would also be able to work with png files. The patch that I posted somewhere else isn't tested with pngs yet, but it will be. > I'm not a mathematician but I read many books on mathematics and > theoretical physics (I'm a physicist) and don't remember examples of use > an equation with a caption. Equation enclosed into a frame, yes, I see > and use that, numbered or tagged equations, even placed into a float > (though didn't try yet). I have seen framed boxes some times, and even floats, but never caption. I never attested to the usefulness of equation-captions. Though, I'm sure you would agree that Org should produce valid TeX files. > Again, this was my IMHO. And I can't imagine situation when I would need > a caption for equation, because there are other ways to emphasize an > equation. What I see from this special example is how it is convenient > to create a matrix for "math mode" in Org document. It is indeed a great way to type matrices. Nicholas implemented is a while ago. –Rasmus -- ⠠⠵