emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Emphasize caption in LaTeX output
@ 2010-03-29  7:15 Thomas S. Dye
  0 siblings, 0 replies; only message in thread
From: Thomas S. Dye @ 2010-03-29  7:15 UTC (permalink / raw)
  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 "\\<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))

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-29  7:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29  7:15 [PATCH] Emphasize caption in LaTeX output Thomas S. Dye

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