From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: LaTeX export - customize own class Date: Tue, 29 Sep 2009 05:02:26 +0200 Message-ID: <81B98B42-372E-4CB9-B430-10DDE96A994E@gmail.com> References: <87my4fyvvy.fsf@online.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsSz6-0002gO-77 for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:02:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsSz1-0002gB-Or for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:02:35 -0400 Received: from [199.232.76.173] (port=60679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsSz1-0002g8-IF for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:02:31 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:33705) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsSz1-00026g-2Q for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:02:31 -0400 Received: by ewy4 with SMTP id 4so3107371ewy.31 for ; Mon, 28 Sep 2009 20:02:30 -0700 (PDT) In-Reply-To: <87my4fyvvy.fsf@online.de> 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: henry atting Cc: emacs-orgmode@gnu.org On Sep 28, 2009, at 4:41 PM, henry atting wrote: > I am trying to customize the orgmode export to the LaTeX class `play` > A first level heading will then become the LaTeX \speaker{}, the text > under this heading will become the text the speaker says. No problem > so > far, but some questions remain: > > - How can I prevent the export function from creating a titlepage > and a > table of contents? #+TITLE: with no title specified will turn off the title. #+OPTIONS: toc:nil will turn off the table of contents. > - Most important: Every header is provided with a label. How can I > supress this? You cannot, really. However, I have just added a new hook, org-export-latex-final-hook. You could use it to test if the class is "play", and if yes, run through the buffer and remove all labels. > - Finally, is it possible to automatically insert something *after* > \begin{document}, something like \begin..\end{play}? You could also use the hook to do this. HTH - Carsten