From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Help with new exporter Date: Wed, 10 Jul 2013 21:56:44 +0200 Message-ID: <87ehb6xk77.fsf@gmx.us> References: <28c5d705dc41bc66d5a17e23d5dc9324@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]:50137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux0VW-00078N-Ot for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 15:57:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ux0VV-0008O6-RI for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 15:56:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:53032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux0VV-0008O0-Kt for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 15:56:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ux0VT-0007QB-W2 for emacs-orgmode@gnu.org; Wed, 10 Jul 2013 21:56:56 +0200 Received: from business-213-023-238-209.static.arcor-ip.net ([213.23.238.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Jul 2013 21:56:55 +0200 Received: from rasmus by business-213-023-238-209.static.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Jul 2013 21:56:55 +0200 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, 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 question > \part > Another multi-line question > \end{parts} > \end{questions} 1. You could let * SOMETHING become a section. See "The sectioning structure" (it seems you already tried, though). This would allow you to get around your problem using usual org latex classes. Cf. Robert's solution. 2. Presumably, the best way way to do this is to make a derived back-end, see http://orgmode.org/worg/dev/org-export-reference.html What you first need to think about is how you want your Org files to look. E.g.: * question 1 A paragraph describing how the students should answer the following questions. 1. A multi-line question 2. Another multi-line question? Then you have to define the appropriate functions for your backend. It won't be many since it inherits everything from the LaTeX class. Of ocurse whether this is necessary depends on how much you want to 'specialize' the org layout compared to the 'usual' LaTeX org-layout. –Rasmus -- May the Force be with you