From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Rakestraw Subject: Re: Help with new exporter Date: Fri, 12 Jul 2013 11:47:12 -0400 Message-ID: References: <51DFEC7B.7050504@mpip-mainz.mpg.de> <51DFECE9.6010209@mpip-mainz.mpg.de> <87ip0f520a.fsf@gmail.com> <871u73eujy.fsf@gmx.us> <87ehb34ye5.fsf@gmail.com> <87wqovdcif.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxfZ0-0008Cq-1N for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:47:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxfYv-0007sH-D7 for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:47:17 -0400 Received: from www6.webmail.pair.com ([66.39.3.84]:59713) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UxfYv-0007sC-86 for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:47:13 -0400 In-Reply-To: <87wqovdcif.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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