|
From: | John Rakestraw |
Subject: | Re: [O] Help with new exporter |
Date: | Fri, 12 Jul 2013 11:47:12 -0400 |
User-agent: | RoundCube Webmail/0.8.1 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |