diff options
author | Suvayu Ali <fatkasuvayu+linux@gmail.com> | 2015-06-16 21:04:21 +0200 |
---|---|---|
committer | Rasmus <rasmus@gmx.us> | 2015-06-16 21:30:41 +0200 |
commit | 2cddb905a452e7c4d394cc697c9f5e12e2abc4b1 (patch) | |
tree | ddcc0cb5c58b61f16ef28da3f5fc3c5d3a74f46c | |
parent | aea374680c5f376026031d3ffb639e1f0b217d6c (diff) | |
download | org-mode-2cddb905a452e7c4d394cc697c9f5e12e2abc4b1.tar.gz |
ox-beamer: Wrap labels in braces
* ox-beamer.el (org-beamer--get-label): Wrap labels in braces.
The colon in the label name causes an argument parsing problem, for
more see <http://tex.stackexchange.com/q/250640/4416>.
-rw-r--r-- | lisp/ox-beamer.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index dafadb3..3119bd4 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -337,7 +337,7 @@ function assumes HEADLINE will be treated as a frame." (if (and (stringp opt) (string-match "\\(?:^\\|,\\)label=\\(.*?\\)\\(?:$\\|,\\)" opt)) (match-string 1 opt) - (concat "sec:" (org-export-get-reference headline info))))) + (format "{sec:%s}" (org-export-get-reference headline info))))) (defun org-beamer--frame-level (headline info) "Return frame level in subtree containing HEADLINE. |