emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug][ox-latex] Captions in equations
@ 2014-01-18 19:36 Rasmus
  2014-01-19  3:23 ` Vladimir Lomov
  2014-01-19  9:36 ` Nicolas Goaziou
  0 siblings, 2 replies; 11+ messages in thread
From: Rasmus @ 2014-01-18 19:36 UTC (permalink / raw)
  To: emacs-orgmode

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.

–Rasmus

-- 
⠠⠵

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-01-25 22:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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