From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-e-latex: ignoreheading is not working any more. Date: Thu, 10 Jan 2013 19:44:32 +0100 Message-ID: <87bocw3mjz.fsf@gmail.com> References: <8739032640.fsf@yagnesh.org> <87a9ubi134.fsf@gmail.com> <87r4nndrca.fsf@gmail.com> <874niq4c99.fsf@gmail.com> <87fw2axizz.wl%sebhofer@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtQGs-00035F-MW for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 17:06:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtQGq-0006Z3-LS for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 17:06:46 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:53970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtNB4-0005gW-9N for emacs-orgmode@gnu.org; Thu, 10 Jan 2013 13:48:34 -0500 Received: by mail-wi0-f179.google.com with SMTP id o1so541945wic.0 for ; Thu, 10 Jan 2013 10:48:33 -0800 (PST) In-Reply-To: <87fw2axizz.wl%sebhofer@gmail.com> (Sebastian Hofer's message of "Wed, 09 Jan 2013 20:18:40 +0100") 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: Sebastian Hofer Cc: emacs-orgmode@gnu.org Hello, Sebastian Hofer writes: > #+BEGIN_SRC emacs-lisp > (defun my-e-latex-headline (headline contents info) > (if (member "ignoreheading" (org-element-property :tags headline)) contents > (org-e-latex-headline headline contents info))) > #+END_SRC I suggest to use: (org-export-with-backend 'e-latex headline contents info) instead of (org-e-latex-headline headline contents info) to not depend on the name of the translator function used by the e-latex back-end. > #+BEGIN_SRC emacs-lisp > (org-export-define-derived-backend dissertation e-latex > :translate-alist ((template . my-e-latex-headline))) There's a typo here. It should be: :translate-alist ((headline . my-e-latex-headline)) Regards, -- Nicolas Goaziou