Re: [O] Help with new exporter

2013-07-12 Thread Nick Dokos
John Rakestraw writes: > On Fri, 12 Jul 2013, Nick Dokos wrote: >> 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

Re: [O] Help with new exporter

2013-07-12 Thread John Rakestraw
On Fri, 12 Jul 2013, Nick Dokos wrote: 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

Re: [O] Help with new exporter

2013-07-12 Thread John Rakestraw
On 12.07.2013 11:27, Rasmus wrote: 1. You'd want to check for the backend. 2. To add a two tests use and and check that the correct document class is being used with string-match. Untested: (when (and ;; check that it's a LaTeX backend (org-export-derived-backend-

Re: [O] Help with new exporter

2013-07-12 Thread Nick Dokos
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

Re: [O] Help with new exporter

2013-07-12 Thread Rasmus
John Rakestraw writes: > 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: My apology. > (defun jr-org-delete-brackets-from-tex-file >

Re: [O] Help with new exporter

2013-07-12 Thread John Rakestraw
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: --8<---cut here--

Re: [O] Help with new exporter

2013-07-12 Thread Nick Dokos
Rasmus writes: > Nick. Robert, > > Disclaimer: I didn't follow this thread closely. . . > > Nick Dokos writes: > >>> (sorry, this should've gone to the list the first time) >>> >>> Hi John, >>> >>> sorry, I can't help you with the filters. >>> >>> On the other hand, I don't see any reason why

Re: [O] Help with new exporter

2013-07-12 Thread Rasmus
Nick. Robert, Disclaimer: I didn't follow this thread closely. . . Nick Dokos writes: >> (sorry, this should've gone to the list the first time) >> >> Hi John, >> >> sorry, I can't help you with the filters. >> >> On the other hand, I don't see any reason why you gt whose square brackets. >>

Re: [O] Help with new exporter

2013-07-12 Thread Nick Dokos
Robert Klein writes: > (sorry, this should've gone to the list the first time) > > Hi John, > > sorry, I can't help you with the filters. > > 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 > brac

Re: [O] Help with new exporter

2013-07-12 Thread Robert Klein
(sorry, this should've gone to the list the first time) Hi John, sorry, I can't help you with the filters. 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

Re: [O] Help with new exporter

2013-07-11 Thread Thomas S. Dye
Hi John, I think your search string might better be "\[\]", or something along those lines (perhaps it needs to be "\\[\\]"). hth, Tom John Rakestraw writes: > Hi, list -- > > I understand the value of working on this myself -- what better way to > learn? -- but after a few hours of readin

Re: [O] Help with new exporter

2013-07-11 Thread John Rakestraw
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

Re: [O] Help with new exporter

2013-07-11 Thread John Rakestraw
Hi, Robert -- This gets me still closer. Using the revised class definition, I get exactly what I need except that I'm still left with square brackets in tex file. That is, I want this: \begin{questions} or \begin{parts} but instead I get this: \begin[]{questions} or \begin[]{parts} (Those

Re: [O] Help with new exporter

2013-07-10 Thread Robert Klein
Hi John, I don't think I had those square brackets, yesterday, but see at the end about them. Anyway, I thought of something which gives me a result I'd say is Ok for me: 1. Change the .org files as follows - add a space to empty headings (as written yesterday) - add "texht:nil" to the #+

Re: [O] Help with new exporter

2013-07-10 Thread Charles Berry
John Rakestraw johnrakestraw.com> writes: > > Apologies for responding to myself, but I realized after writing the > message below that if I use sed to remove the lines with the word > "label" and all of the empty brackets (i.e., =[]= and ={}= ) in the tex > file, then I'm very, very close to

Re: [O] Help with new exporter

2013-07-10 Thread John Rakestraw
Apologies for responding to myself, but I realized after writing the message below that if I use sed to remove the lines with the word "label" and all of the empty brackets (i.e., =[]= and ={}= ) in the tex file, then I'm very, very close to what I need. I assume I could write a function and th

Re: [O] Help with new exporter

2013-07-10 Thread John Rakestraw
Hi, Robert -- Thanks very much for your work on this. I'm now *much* closer than I was. However, I'm not there yet. Here's a snippet of the tex file that I need: --8<---cut here---start->8--- \begin{questions} \question A paragraph here describes this secti

Re: [O] Help with new exporter

2013-07-10 Thread Rasmus
Hi John, Sorry, I meant to email this to the list . . . > My problem is that I can't get the exporter to produce chunks like > this: > > \begin{questions} > \question > A paragraph describing how the students should answer the following > questions. > \begin{parts} > \part > A multi-line quest

Re: [O] Help with new exporter

2013-07-10 Thread Robert Klein
Hi John. thank you for the example org file. I made two kinds of changes, one in the org-latex-classes definition and one in the .org-file itself: I changed the class definition for org-latex-classes to #+begin_src emacs-lisp ("exam" "\\documentclass[12pt]{exam} % BEGIN exam D

Re: [O] Help with new exporter

2013-07-10 Thread John Rakestraw
Hi, Robert -- would you mind posting an example of the org file, too? It would be easier for me to wrap my thoughts about this.. (The gurus probably don't it...) Sure. (I should have included it earlier; I was worried that my message was already too long.) Here's one that worked with the ol

Re: [O] Help with new exporter

2013-07-10 Thread Robert Klein
Hi John, would you mind posting an example of the org file, too? It would be easier for me to wrap my thoughts about this.. (The gurus probably don't it...) Thanks a lot Robert On 07/10/2013 06:32 PM, John Rakestraw wrote: > Greetings, list -- > > I've been using Philip Hirschhorn's exam doc

[O] Help with new exporter

2013-07-10 Thread John Rakestraw
Greetings, list -- I've been using Philip Hirschhorn's exam documentclass (http://www-math.mit.edu/~psh/#ExamCls) for several years to produce my exams. I've been writing the exams in org-mode and using the exporter to produce the pdf. I've recently moved to org 8.0. (I like it!) I've success