diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 9e2e7be47..9724b0d87 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1494,7 +1494,10 @@ nil." (pcase-let ((`(,keyword ,value) pair)) (concat keyword (and (> (length value) 0) - (concat "=" value))))) + (concat "=" + (if (string-match-p (rx (any "[]")) value) + (format "{%s}" value) + value)))))) options ","))