emacs-orgmode
[Top][All Lists]

## Re: [O] Help with new exporter

 From: John Rakestraw Subject: Re: [O] Help with new exporter Date: Wed, 10 Jul 2013 16:46:14 -0400 User-agent: RoundCube Webmail/0.8.1

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