From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Rakestraw Subject: question about export to latex Date: Wed, 25 Nov 2009 16:37:32 -0500 Message-ID: <20091125163732.14606fbf@johnrakestraw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDPXB-0007g2-JS for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 16:36:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDPX6-0007YJ-Ga for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 16:36:20 -0500 Received: from [199.232.76.173] (port=58467 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDPX6-0007Y7-7l for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 16:36:16 -0500 Received: from relay03.pair.com ([209.68.5.17]:1441) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NDPX6-0003AQ-0s for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 16:36:16 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi -- I'm trying to construct an org-export-latex-class to use with Philip Hirschhorn's exam.cls (http://www-math.mit.edu/~psh/#ExamCls). The basic structure required in the tex file is this: \begin{questions} \question Here's question 1. \begin{parts} \part Here's part a of question 1. \part Here's part b of question 1. \end{parts} \question Here's question 2. \end{questions} My question is how do I write the class to account for the opening and closing of the question/part environments and also designate each individual question/part element. I'm now working with this: **** ("\\begin{questions}" "\\end{questions}" "\\begin{questions}" \\ "\\end{questions}") ("\\question" . "\\question*") ("\\begin{parts}" "\\end{parts}" "\\begin{parts}" \\ "\\end{parts}") ("\\part" . "\\part*")) **** but that (a) seems inelegant and (b) introduces a problematic blank line in the resulting tex file that messes up the numbering scheme in the resulting pdf. I'd appreciate any advice and/or pointers to help on this one. Thanks. -- John Rakestraw