emacs-orgmode
[Top][All Lists]

## Re: [O] Help with new exporter

 From: Robert Klein Subject: Re: [O] Help with new exporter Date: Fri, 12 Jul 2013 13:47:53 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

(sorry, this should've gone to the list the first time)

Hi John,

On the other hand, I don't see any reason why you gt whose square brackets.

I tried different versions of org-mode, and never got *empty* square
brackets.

E.g. I tried with org-mode 8.0.5 release installed in ~/org-8.0.5  (I
did a "make" and "make autoloads" in this directory) and used the
exam.org file as attached and the attached exam.el for configuration.

I started emacs with from the directory exam.org and exam.el are, using
the following command:

emacs -Q -l exam.el exam.org

Exporting to LaTeX file results in the attached exam.tex.

I tried emacs version 23.1 and 24.2.

(For sure, my latex installation doesn't like the \NoKey and
\NumberOfVersions ...)

You could try, if you get can get the same results I do and then work

I've got no other idea at the moment.

Best regards
Robert

On 07/12/2013 01:05 AM, John Rakestraw wrote:
> 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.
> 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)
>
>              '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.
>

--
Robert Klein - Max Planck-Institut für Polymerforschung
Ackermannweg 10
55128 Mainz



exam.el
Description: Text Data

exam.org
Description: Lotus Organizer

exam.tex
Description: Text Data