emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: [PATCH] Emphasize caption in LaTeX output
Date: Sun, 28 Mar 2010 21:15:24 -1000	[thread overview]
Message-ID: <07153095-27E3-4F3B-B751-6650C0E389C3@tsdye.com> (raw)

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	other threads:[~2010-03-29  7:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=07153095-27E3-4F3B-B751-6650C0E389C3@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).