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