[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: |
Thu, 11 Jul 2013 19:05:15 -0400 |
User-agent: |
RoundCube Webmail/0.8.1 |
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:
--8<---------------cut here---------------start------------->8---
(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)
--8<---------------cut here---------------end--------------->8---
This doesn't work.
Can someone at least give me a hint on what I need to do differently?
Thanks very much.
--
John Rakestraw
Re: [O] Help with new exporter, Rasmus, 2013/07/10
- Re: [O] Help with new exporter, Robert Klein, 2013/07/12
- Re: [O] Help with new exporter, Nick Dokos, 2013/07/12
- Re: [O] Help with new exporter, Rasmus, 2013/07/12
- Re: [O] Help with new exporter, Nick Dokos, 2013/07/12
- Re: [O] Help with new exporter, John Rakestraw, 2013/07/12
- Re: [O] Help with new exporter, Rasmus, 2013/07/12
- Re: [O] Help with new exporter, John Rakestraw, 2013/07/12
- Re: [O] Help with new exporter, Nick Dokos, 2013/07/12