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:05:28 -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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxeub-0002AX-L4 for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxeuW-0001hU-R1 for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:05:33 -0400 Received: from www3.webmail.pair.com ([66.39.3.34]:58369) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UxeuW-0001gw-Lg for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:05:28 -0400 In-Reply-To: <87ehb34ye5.fsf@gmail.com> 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 Success! Thanks to all for your help. I really do appreciate your time. I cannot figure out why I'm getting the brackets that no one else is getting (Rasmus -- my problem is that they're there and I don't want them), but I now have a filter that will take them out: --8<---------------cut here---------------start------------->8--- (defun jr-org-delete-brackets-from-tex-file (text backend info) (replace-regexp-in-string "\\[\\]" "" text)) (add-to-list 'org-export-filter-final-output-functions 'jr-org-delete-brackets-from-tex-file) --8<---------------cut here---------------end--------------->8--- Now to explore how to implement this only when I'm using the exam document class, perhaps by using a derived backend. (It may be that it won't cause any problems with other classes, but it seems sloppy to have it working all the time, no?) Thanks to Robert for the detailed and careful responses, to Charles for suggesting the filters, and to Rasmus for the example that helped me straighten me out at the end. And I can't resist an aside to Nick -- I've really appreciated both the tone and the content of your detailed contributions to this list over the years. I find it difficult to believe that you're more pessimistic than I am, but I take some odd pleasure in making something work that you thought wouldn't work. ;-) --John -- John Rakestraw