From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: Help with new exporter Date: Thu, 11 Jul 2013 07:22:45 +0200 Message-ID: <51DE4125.7050608@mpip-mainz.mpg.de> References: <28c5d705dc41bc66d5a17e23d5dc9324@johnrakestraw.com> <51DDB809.8050001@mpip-mainz.mpg.de> <37de0540be0008c1748751bae1f6c044@johnrakestraw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux9LV-0004zV-Fd for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 01:23:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ux9LU-0001nQ-7J for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 01:23:13 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:25764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux9LT-0001nD-Tn for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 01:23:12 -0400 Received: from [10.20.2.71] (port=33714 helo=vmmail1.mpip-mainz.mpg.de) by gate1.mpip-mainz.mpg.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Ux9LQ-0005lS-1Z for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 07:23:08 +0200 Received: from pckr143.mpip-mainz.mpg.de ([10.20.70.83]) by vmmail1.mpip-mainz.mpg.de with esmtp (Exim 4.72) (envelope-from ) id 1Ux9L3-0001SU-Ok for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 07:22:45 +0200 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 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 #+OPTIONS: line (without the quotes) 2. Use the following class definition: #+begin_src emacs-lisp (setq org-latex-classes '(("exam" "\\documentclass[12pt]{exam} % BEGIN exam Defaults [NO-DEFAULT-PACKAGES] [PACKAGES] \\usepackage{palatino} \\extrawidth{.5in} \\extraheadheight{-.75in} \\extrafootheight[-3in]{-.75in} \\pagestyle{headandfoot} \\NoKey \\NumberOfVersions{1} \\renewcommand\\thequestion{\\Roman{question}} \\renewcommand\\thepartno{\\arabic{partno}} \\renewcommand\\partlabel{\\thepartno.} % END exam Defaults " ("\\begin{questions} %% %s" "\\end{questions}") ("\\question %% %s" . "\\question* %% %s") ("\\begin{parts} %% %s" "\\end{parts}") ("\\part %% %s" . "\\part* %% %s")))) #+end_src As you can see, I still have the %s (now without the curly braces) but as a LaTeX comment after %... About the labels, well, I'd just leave them; as long as you don't reference them they shouldn't disturb anything. If you still get those square brackets; I use org-mode from the git repository, as of yesterday or the day before. Are you using org-mode 8.0.2 or earlier? I think this gets fixed by Aaron Ecay's patch from May 02/03. If you don't want to use the git version, download version 8.0.5 from orgmode.org. Does this work for you? Best regards Robert On 07/10/2013 10:46 PM, 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 > -- Robert Klein - Max Planck-Institut für Polymerforschung Ackermannweg 10 55128 Mainz