From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Help with new exporter Date: Fri, 12 Jul 2013 11:28:55 -0400 Message-ID: <871u734x1k.fsf@gmail.com> 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 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxfHV-0003sR-Bl for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxfHS-0001Pu-Iv for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:29:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:43418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxfHS-0001PX-Ap for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 11:29:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UxfHP-00028y-E5 for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 17:29:07 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jul 2013 17:29:07 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jul 2013 17:29:07 +0200 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 John Rakestraw writes: > 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: > > (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) > > 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. ;-) > You underestimate my pessimism :-) I had no doubt that you can get rid of specific artifacts using specific filters like this - you could after all, run a sed script on the latex output and get rid of this stuff - it wouldn't be an org-only solution, but that's OK in my book. I hope you are ultimately successful in producing exams that look exactly like you want them, using these mechanisms. But I have my doubts - you have won a battle, but the war is still raging afaict. OTOH, if you prove me wrong, I would be delighted! -- Nick