emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug][ox-latex] Captions in equations


From: Rasmus
Subject: Re: [O] [bug][ox-latex] Captions in equations
Date: Sun, 19 Jan 2014 15:19:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Vladimir Lomov <address@hidden> 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}
>
>> But an equation cannot have a caption.
>
>> I'm not sure what the desired behavior is.  (i) To silently drop the
>> caption, (ii) to wrap the equation in some sort of float and give it a
>> caption; or (iii) to print the text sans the \caption{·}.
>
>> (iii) can be archived with math-prefix.  (ii) is a bit weird, but
>> could be archived relatively easy, but it's not really what one would
>> expect; it's consistent with how captions work for tables (turned into
>> a float when a caption is present).  (i) is also a bit weird, but
>> seems the most reasonable to me.
>
>> Since I don't know what the correct behavior is, I don't have a patch
>> right now.
>
> IMHO, this is wrong approach. 

I don't understand.

> 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.

–Rasmus


-- 
Summon the Mothership!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]