From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Rakestraw Subject: Re: Help with new exporter Date: Wed, 10 Jul 2013 17:04:25 -0400 Message-ID: <599bcde2bd8f113f37a6ea4af1c72016@johnrakestraw.com> References: <28c5d705dc41bc66d5a17e23d5dc9324@johnrakestraw.com> <51DDB809.8050001@mpip-mainz.mpg.de> <37de0540be0008c1748751bae1f6c044@johnrakestraw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux1Yo-0005xt-Vg for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 17:04:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ux1Yn-0003xW-Qs for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 17:04:26 -0400 Received: from www5.webmail.pair.com ([66.39.3.83]:50171) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Ux1Yn-0003xQ-Ks for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 17:04:25 -0400 In-Reply-To: <37de0540be0008c1748751bae1f6c044@johnrakestraw.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 then call it in the publishing routine? --John On 10.07.2013 16:46, John Rakestraw wrote: > 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 section and tells students how many > terms to > identify. > \begin{parts} > \part > term 1 > \vspace*{\fill} > \part > term 2 > \vspace*{\fill} > \part > term 3 > \vspace*{\fill} > \part > term 4 > \vspace*{\fill} > \part > term 5 > \vspace*{\fill} > \part > term 6 > \vspace*{\fill} > \part > term 7 > \vspace*{\fill} > \part > term 7 > \vspace*{\fill} > \part > term 8 > \end{parts} > \end{questions} > --8<---------------cut here---------------end--------------->8--- > > However, if I use the org-latex-class definition that you suggested, > this is what I get: > > --8<---------------cut here---------------start------------->8--- > \begin[]{questions}{} > \label{sec-1} > \question[]{} > \label{sec-1-1} > A paragraph here describes this section and tells students how many > terms to > identify. > \begin[]{parts}{} > \label{sec-1-1-1} > \part[]{} > \label{sec-1-1-1-1} > term 1 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-2} > term 2 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-3} > term 3 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-4} > term 4 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-5} > term 5 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-6} > term 6 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-7} > term 7 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-8} > term 8 > \vspace*{\fill} > > \part[]{} > \label{sec-1-1-1-9} > term 9 > \newpage > \fillwithdottedlines{\fill} > \newpage > \end{parts} > > --8<---------------cut here---------------end--------------->8--- > > > The additional lines in the tex file add numbers and oddly formatted > text to the pdf. The numbering scheme is also off -- these lines in > the class definition: > > \renewcommand\thequestion{\Roman{question}} > \renewcommand\thepartno{\arabic{partno}} > \renewcommand\partlabel{\thepartno.} > > are supposed to have to have the question-level headings numbered > with Roman numerals and the part-level headings numbered with Arabic > numbers. But for some reason that numbering scheme isn't imposed. > > Perhaps I need either just to write in latex or to work with what > Rasmus is suggesting; I've not had time yet to digest his > suggestions. > I'm floating on the edge of my knowledge here.... > > Thanks again. > > --John -- John Rakestraw