On 12.07.2013 11:27, Rasmus wrote:
1. You'd want to check for the backend.
2. To add a two tests use and and check that the correct document
class is being used with string-match.
Untested:
(when (and ;; check that it's a LaTeX backend
(org-export-derived-backend-p backend 'latex)
(string-match "\\documentclass?[.*?]{exam}" (downcase
string)))
(replace-match "" nil nil headline))
Most document will fail the second test and those that don't are
probably the ones you want to target.
–Rasmus
Thanks for this.
--
John Rakestraw