From mboxrd@z Thu Jan 1 00:00:00 1970 From: feng shu Subject: [PATCH] (update) Add :caption attribute to #+ATTR_LATEX property Date: Sun, 30 Jun 2013 07:10:14 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e012297501421ef04e05319d1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ut4HY-00005e-IP for emacs-orgmode@gnu.org; Sat, 29 Jun 2013 19:10:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ut4HX-0000o0-Cx for emacs-orgmode@gnu.org; Sat, 29 Jun 2013 19:10:16 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:39581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ut4HX-0000nt-3N for emacs-orgmode@gnu.org; Sat, 29 Jun 2013 19:10:15 -0400 Received: by mail-wi0-f177.google.com with SMTP id ey16so1986534wid.10 for ; Sat, 29 Jun 2013 16:10:14 -0700 (PDT) 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 --089e012297501421ef04e05319d1 Content-Type: multipart/alternative; boundary=089e012297501421ed04e05319cf --089e012297501421ed04e05319cf Content-Type: text/plain; charset=UTF-8 This is the updated patch of "Add :caption attribute to #+ATTR_LATEX property" If possible, please include it to master ------------------------------------------------------------------------------------------------------------------------ This feature is very useful when you export org to latex with custom caption command, for example: #+ATTR_LATEX: :caption \BiTableCaption{caption 1}{caption 2} |---+---| | x | y | |---+---| | 1 | 2 | |---+---| ---------------------------------------------------------------------------------------------------------------------- --089e012297501421ed04e05319cf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is the updated patch of=C2=A0 "Add :caption= attribute to #+ATTR_LATEX property"
If possible, please incl= ude it to master

---------------------------------------------------= ---------------------------------------------------------------------

This feature is very useful when you export org to latex with= custom
caption command, for example:

#+ATTR_LATEX: :caption \BiT= ableCaption{caption 1}{caption 2}
|---+---|
| x | y |
|---+---| | 1 | 2 |
|---+---|

---------------------------------------------= -------------------------------------------------------------------------
--089e012297501421ed04e05319cf-- --089e012297501421ef04e05319d1 Content-Type: application/octet-stream; name="0001-Add-caption-attribute-to-ATTR_LATEX-property.patch" Content-Disposition: attachment; filename="0001-Add-caption-attribute-to-ATTR_LATEX-property.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hijf96h90 RnJvbSBlYjhiNjY1YmExZTI3MTdjNDBiODYwNDhmM2VkYjM0OTViOWM2MjhlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBGZW5nIFNodSA8dHVtYXNodUBnbWFpbC5jb20+CkRhdGU6IFNh dCwgMjkgSnVuIDIwMTMgMjM6MDQ6MDMgKzA4MDAKU3ViamVjdDogW1BBVENIXSBBZGQgYDpjYXB0 aW9uJyBhdHRyaWJ1dGUgdG8gIytBVFRSX0xBVEVYIHByb3BlcnR5CgoqIGxpc3Avb3gtbGF0ZXgu ZWwgKG9yZy1sYXRleC0tY2FwdGlvbi9sYWJlbC1zdHJpbmcpOiBBZGQgYWJpbGl0eSwKICB3aGlj aCBjYW4gYnVpbGQgYSBjYXB0aW9uIHN0cmluZyBmcm9tIGA6Y2FwdGlvbicgYXR0cmlidXRlIG9m ICMrQVRUUl9MQVRFWC4KKG9yZy1sYXRleC0taW5saW5lLWltYWdlKTogVGlueSBjaGFuZ2UuCihv cmctbGF0ZXgtLW9yZy10YWJsZSk6IFRpbnkgY2hhbmdlLgoKVGhpcyBmZWF0dXJlIGlzIHZlcnkg dXNlZnVsIHdoZW4geW91IGV4cG9ydCBvcmcgdG8gbGF0ZXggd2l0aCBjdXN0b20KY2FwdGlvbiB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