Browse Source

org-beamer.el: Also recognize \lstinline and \verb as commands that make a frame fragile.

* org-beamer.el (org-beamer-fragile-re): Also recognize
\lstinline and \verb as commands that make a frame fragile.

Thanks to Christoph LANGE for this patch.
Bastien Guerry 13 năm trước cách đây
mục cha
commit
0c6722d79a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org-beamer.el

+ 1 - 1
lisp/org-beamer.el

@@ -399,7 +399,7 @@ the value will be inserted right after the documentclass statement."
       (insert org-beamer-header-extra)
       (or (bolp) (insert "\n"))))))
 
-(defcustom org-beamer-fragile-re "^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}"
+(defcustom org-beamer-fragile-re "\\\\\\(verb\\|lstinline\\)\\|^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}"
   "If this regexp matches in a frame, the frame is marked as fragile."
   :group 'org-beamer
   :type 'regexp)