emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Help with new exporter


From: Thomas S. Dye
Subject: Re: [O] Help with new exporter
Date: Thu, 11 Jul 2013 17:00:45 -1000

Hi John,

I think your search string might better be "\[\]", or something along
those lines (perhaps it needs to be "\\[\\]").   

hth,
Tom

John Rakestraw <address@hidden> writes:

> Hi, list --
>
> I understand the value of working on this myself -- what better way to 
> learn? -- but after a few hours of reading the docs and scouring the 
> list, I've reached the point of seeking at least a hint for where to go. 
> (There's much more information higher in this thread, but I'm trying to 
> focus rather narrowly on the problem here to keep the email relatively 
> short.)
>
> I'm trying to export to a pdf, using Phil Hirschhorn's exam.cls. The 
> document class definition I have (thanks, Robert!) gets me almost to 
> where I need to be. However, it leaves me with square brackets at 
> several points in the tex file. I need to delete those brackets.
>
> That is, I need to change "\begin[]{questions}" to 
> "{\begin{questions}".
>
> Following Charles's advice, I'm trying to define and use a filter. 
> However, I know little enough about LaTeX and lisp that I can't figure 
> out why what I have isn't working. At the risk of making it very clear I 
> know even less than nothing, here's what I've worked up:
>
>    (defun jr-org-delete-brackets-from-tex-file
>       (text backend info)
>       (while (re-search-forward "\\[]" nil t)
>       (replace-match ""))
>       text)
>
>     (add-to-list 'org-export-filter-final-output-functions
>               'jr-org-delete-brackets-from-tex-file)
>
> This doesn't work.
>
> Can someone at least give me a hint on what I need to do differently?
>
> Thanks very much.

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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