From: John Rakestraw <lists@johnrakestraw.com>
To: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: bug in org-latex.el
Date: Mon, 31 Aug 2009 14:22:20 -0400 [thread overview]
Message-ID: <20090831142220.5142942b@johnrakestraw.com> (raw)
Hi, List --
I'm reluctant to post this to the list, because I know next to nothing
about lisp. But here goes.
I'm writing in org and exporting to pdf via C-C C-E d. The exporter was
stumbling over a URL in the text, with the error message indicating
that "org-export-latex-protect-special" is void. I made two small
changes in org-export.el; now the export works and the URL is indeed
clickable in the pdf. See the patch below.
Of course, I could well have broken something....
Org-mode version 6.29trans (release_6.29c.110.gca19.dirty)
GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu
--John
***
--- org-latex.el 2009-08-31 11:58:39.576924147 -0400
+++ org-latex.el_new 2009-08-31 12:00:12.642986362 -0400
@@ -1572,7 +1572,7 @@
(insert (format "\\hyperref[%s]{%s}"
(org-remove-initial-hash
(org-solidify-link-text raw-path))
- (org-export-latex-protect-special
desc))))
+ (org-export-latex-protect-string desc))))
(path
(when (org-at-table-p)
;; There is a strange problem when we have a link in a
table, @@ -1581,7 +1581,7 @@
(setq path (org-export-latex-protect-amp path)
desc (org-export-latex-protect-amp desc)))
(insert (format "\\href{%s}{%s}" path
- (org-export-latex-protect-special
desc))))
+ (org-export-latex-protect-string desc))))
(t (insert "\\texttt{" desc "}")))))))
(defun org-export-latex-protect-amp (s)
***
--
John Rakestraw
next reply other threads:[~2009-08-31 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 18:22 John Rakestraw [this message]
2009-08-31 19:22 ` bug in org-latex.el Carsten Dominik
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=20090831142220.5142942b@johnrakestraw.com \
--to=lists@johnrakestraw.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).