emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [PATCH] Emphasize caption in LaTeX output


From: Thomas S. Dye
Subject: [Orgmode] [PATCH] Emphasize caption in LaTeX output
Date: Sun, 28 Mar 2010 21:15:24 -1000

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 "\\<align=\\([^ \t\n\r,]+\\)" attr)
@@ -1807,6 +1809,7 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER."
                          "file")))
            (coderefp (equal type "coderef"))
(caption (org-find-text-property-in-string 'org-caption raw- path)) + (caption (and caption (org-export-latex-fontify-headline caption))) (attr (or (org-find-text-property-in-string 'org-attributes raw- path) (plist-get org-export-latex-options-plist :latex-image- options)))
            (label (org-find-text-property-in-string 'org-label raw-path))





reply via email to

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