ox-latex: Do not add optional section name when section is unnumbered

* lisp/ox-latex.el (org-latex-headline): Do not add optional section
  name when section is unnumbered.
This commit is contained in:
Nicolas Goaziou 2013-02-25 11:03:56 +01:00
parent f26547e320
commit 309ccd9649
1 changed files with 1 additions and 1 deletions

View File

@ -1482,7 +1482,7 @@ holding contextual information."
(org-export-data
(org-export-get-optional-title headline info) info)
(and (eq (plist-get info :with-tags) t) tags))))
(if (and opt-title (string-match "\\`\\\\\\(.*?\\){" section-fmt))
(if (and opt-title (string-match "\\`\\\\\\(.*?\\)[^*]{" section-fmt))
(format (replace-match "\\1[%s]" nil nil section-fmt 1)
;; Replace square brackets with parenthesis
;; since square brackets are not supported in