From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Hofer Subject: Re: org-e-latex: ignoreheading is not working any more. Date: Wed, 09 Jan 2013 20:18:40 +0100 Message-ID: <87fw2axizz.wl%sebhofer@gmail.com> References: <8739032640.fsf@yagnesh.org> <87a9ubi134.fsf@gmail.com> <87r4nndrca.fsf@gmail.com> <874niq4c99.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt2dg-00008J-8C for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 15:52:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tt2dd-0003nJ-6e for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 15:52:43 -0500 Received: from mail-ea0-f180.google.com ([209.85.215.180]:61429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt1Ai-00066v-CV for emacs-orgmode@gnu.org; Wed, 09 Jan 2013 14:18:44 -0500 Received: by mail-ea0-f180.google.com with SMTP id f13so766434eai.25 for ; Wed, 09 Jan 2013 11:18:43 -0800 (PST) In-Reply-To: <874niq4c99.fsf@gmail.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: Nicolas Goaziou Cc: Sebastian Hofer , emacs-orgmode@gnu.org At Wed, 09 Jan 2013 16:17:06 +0100, Nicolas Goaziou wrote: > > Hello, > > Sebastian Hofer writes: > > > Using said code-snippet I get following error: > > > > funcall: Wrong number of arguments: (lambda (headline contents info) > > (if (member "ignoreheading" (org-element-property :tags headline)) > > contents (org-e-latex-headline headline contents info))), 2 > > Would you mind pasting again the code you're using? I have lost the > track of the thread. Sorry, it was stupid not to do it in the first place (I posted from gmane.com and it complained about too much quoted text). Anyway, here is the code I was talking about (from http://article.gmane.org/gmane.emacs.orgmode/55972): #+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 #+BEGIN_SRC emacs-lisp (org-export-define-derived-backend dissertation e-latex :translate-alist ((template . my-e-latex-headline))) (defun org-dissertation-export-to-pdf (&optional subtreep visible-only body-only ext-plist pub-dir) (interactive) (org-e-latex-compile (let ((outfile (org-export-output-file-name ".tex" subtreep pub-dir))) (org-export-to-file 'dissertation outfile subtreep visible-only body-only ext-plist)))) #+END_SRC > > > Does this have to do with this next comment, or is this unrelated? > > > >> Also, the hook will now be called with an argument: the back-end used as > >> a symbol. > >> > >> Otherwise, the thread is still valid. > > > > If yes I couldn't figure out which hook you were talking about. Could > > you give a few more details please? > > I was talking about `org-export-before-processing-hook' or > `org-export-before-parsing-hook', but it should be unrelated to the > problem at hand. > Thanks for your help! Sebastian