Optional \caption argument for LaTeX export
commitcd05598dcd30f98f3919213752c72f911d9c2489
authorThomas S. Dye <tsd@tsdye.com>
Mon, 9 May 2011 01:11:39 +0000 (9 01:11 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sun, 8 May 2011 20:15:45 +0000 (8 22:15 +0200)
tree1a08db55506e4b1869be44a4fddc3df410ef653f
parent946640d84de1a1cd7333080d0ace826abd9f1f40
Optional \caption argument for LaTeX export

Aloha all,

The attached patch initializes the existing variable shortn, adds it to
two caption situations in addition to the one already coded, and adds
some description to the manual.

With this patch, #+CAPTION: [Short caption]{Long caption.} in the
Org-mode source exports to \caption[Short caption]{Long caption.} in the
LaTeX export, which is, I think, as it should be.

Many thanks to Nick Dokos who made me understand why earlier patches
hadn't shown up on the patchwork server (wrong mime type, evil mail
client).  This one sent with gnus and fingers crossed.

All the best,
Tom

>From 9dc65f7e598dd171ebce9448cd39c4062f7cafff Mon Sep 17 00:00:00 2001
From: Tom Dye <tsd@tsdye.com>
Date: Sun, 8 May 2011 06:56:25 -1000
Subject: [PATCH] optional caption arguments in LaTeX export
doc/org.texi
lisp/org-exp.el
lisp/org-latex.el