From: Vladimir Lomov <lomov.vl@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [bug][ox-latex] Captions in equations
Date: Mon, 20 Jan 2014 09:51:47 +0900 [thread overview]
Message-ID: <20140120005147.GI898@smoon> (raw)
In-Reply-To: <87sisk835v.fsf@gmx.us>
[-- Attachment #1: Type: text/plain, Size: 2173 bytes --]
Hello,
** Rasmus [2014-01-19 15:19:40 +0100]:
> Vladimir Lomov <lomov.vl@gmail.com> writes:
>> Hello,
>> ** Rasmus [2014-01-18 20:36:35 +0100]:
>>> Hi,
>>> This example produces invalid LaTeX code:
>>> #+CAPTION: test
>>> #+ATTR_LATEX: :mode math :environment pmatrix
>>> | \alpha | \beta | \gamma |
>>> Namely,
>>> \begin{equation}
>>> \caption{test text}
>>> \mathbf{H}=\begin{pmatrix}
>>> \vdots & 0 & \vdots \\
>>> \vdots & H & \vdots \\
>>> \vdots & 0 & \vdots \\
>>> \end{pmatrix}.
>>> \end{equation}
[...]
>> IMHO, this is wrong approach.
> I don't understand.
As I said, this is IMHO.
>> 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.
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.
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).
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.
> –Rasmus
---
WBR, Vladimir Lomov
--
Monotheism is a gift from the gods.
[-- Attachment #2: ex-tbl.org --]
[-- Type: application/vnd.lotus-organizer, Size: 149 bytes --]
[-- Attachment #3: ex-tbl2.org --]
[-- Type: application/vnd.lotus-organizer, Size: 229 bytes --]
[-- Attachment #4: ex-tbl.html --]
[-- Type: text/html, Size: 5550 bytes --]
[-- Attachment #5: ex-tbl2.html --]
[-- Type: text/html, Size: 7150 bytes --]
next prev parent reply other threads:[~2014-01-20 0:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-18 19:36 [bug][ox-latex] Captions in equations Rasmus
2014-01-19 3:23 ` Vladimir Lomov
2014-01-19 14:19 ` Rasmus
2014-01-20 0:51 ` Vladimir Lomov [this message]
2014-01-20 10:41 ` Rasmus
2014-01-19 9:36 ` Nicolas Goaziou
2014-01-19 14:14 ` Rasmus
2014-01-19 19:41 ` Nicolas Goaziou
2014-01-20 10:13 ` Rasmus
2014-01-25 14:35 ` Rasmus
2014-01-25 22:30 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140120005147.GI898@smoon \
--to=lomov.vl@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).