Nicolas Goaziou <n.goaz...@gmail.com> writes: > You need to use a regexp to find out what class is used: > > (let ((beamer-class-p > (and (stringp header) > (org-string-match-p > "^[ \t]*\\\\documentclass\\(?:\\[.*\\]\\)?{beamer}[ \t]*$" > (nth 1 (assoc (plist-get info :latex-class) > org-latex-classes)))))))
I meant: (let* ((header (nth 1 (assoc (plist-get info :latex-class) org-latex-classes))) (beamer-class-p (and (stringp header) (org-string-match-p "^[ \t]*\\\\documentclass\\(?:\\[.*\\]\\)?{beamer}[ \t]*$" header)))))