* bug in org-latex.el
@ 2009-08-31 18:22 John Rakestraw
2009-08-31 19:22 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: John Rakestraw @ 2009-08-31 18:22 UTC (permalink / raw)
To: org-mode Mailinglist
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug in org-latex.el
2009-08-31 18:22 bug in org-latex.el John Rakestraw
@ 2009-08-31 19:22 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-08-31 19:22 UTC (permalink / raw)
To: John Rakestraw; +Cc: org-mode Mailinglist
Ooops, I messed up, yes.
Fixed now, thanks. You were close, but not quite right with your patch.
- Carsten
On Aug 31, 2009, at 8:22 PM, John Rakestraw wrote:
> 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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-31 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31 18:22 bug in org-latex.el John Rakestraw
2009-08-31 19:22 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.