From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: [PATCH] Emphasize caption in LaTeX output Date: Sun, 28 Mar 2010 21:15:24 -1000 Message-ID: <07153095-27E3-4F3B-B751-6650C0E389C3@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw9CC-0002xc-1h for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 03:15:36 -0400 Received: from [140.186.70.92] (port=35391 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw9C8-0002wx-Je for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 03:15:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw9C6-0003nA-JB for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 03:15:31 -0400 Received: from outbound-mail-360.bluehost.com ([66.147.249.254]:55130) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nw9C6-0003ma-2X for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 03:15:30 -0400 Received: from cpe-24-161-159-72.hawaii.res.rr.com ([24.161.159.72] helo=[192.168.1.2]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1Nw9C2-0007ZA-Ua for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 01:15:27 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode list Hi Carsten, This appears to emphasize org-mode markup in LaTeX export of caption strings, caveat emptor. All the best, Tom ----------------- Modified lisp/org-latex.el diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 2ba6e31..03517d5 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1,4 +1,4 @@ -;;; org-latex.el --- LaTeX exporter for org-mode +;; org-latex.el --- LaTeX exporter for org-mode ;; ;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. ;; @@ -1573,6 +1573,7 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER." (progn (setq caption (org-find-text-property-in-string 'org-caption raw-table) + caption (and caption (org-export-latex-fontify- headline caption)) attr (org-find-text-property-in-string 'org-attributes raw-table) label (org-find-text-property-in-string @@ -1671,6 +1672,7 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER." (setq line (buffer-substring (point-at-bol) (point-at-eol)) label (org-get-text-property-any 0 'org-label line) caption (org-get-text-property-any 0 'org-caption line) + caption (and caption (org-export-latex-fontify-headline caption )) attr (org-get-text-property-any 0 'org-attributes line) align (and attr (stringp attr) (string-match "\\