[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Help with new exporter

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.


     (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.


Thanks for this.

John Rakestraw

reply via email to

[Prev in Thread] Current Thread [Next in Thread]