[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [BUG][PATCH] latex export of links in description lists
From: |
Rick Frankel |
Subject: |
[O] [BUG][PATCH] latex export of links in description lists |
Date: |
Thu, 06 Jun 2013 10:14:21 -0400 |
User-agent: |
Roundcube Webmail/0.9.0 |
There is a bug in the processing of description list.
Given the list:
,----
| - not a link :: not a link
| - [[http://link.com][http link]] :: baz
| - [[#href-test][custom_id link]] :: bar
| - [[def list][search link]] :: foo
`----
The latex exporter generates the following output, which fails
latex processing on the `hyperref's.
,----
| \begin{description}
| \item[not a link] not a link
| \item[\href{http://link.com}{http link}] baz
| \item[\hyperref[sec-1]{custom\_id link}] bar
| \item[\hyperref[sec-1]{search link}] foo
| \end{description}
`----
I believe the simplest patch to solve is to wrap the item argument in
braces as follows:
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 41cf1d0..e16c62d 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1612,7 +1612,7 @@ contextual information."
(trans "$\\boxminus$ ")))
(tag (let ((tag (org-element-property :tag item)))
;; Check-boxes must belong to the tag.
- (and tag (format "[%s] "
+ (and tag (format "[{%s}] "
(concat checkbox
(org-export-data tag info)))))))
(concat counter "\\item" (or tag (concat " " checkbox))
--------
rick
- [O] [BUG][PATCH] latex export of links in description lists,
Rick Frankel <=