all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Hofer <sebhofer@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Sebastian Hofer <sebhofer@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: org-e-latex: ignoreheading is not working any more.
Date: Wed, 09 Jan 2013 20:18:40 +0100	[thread overview]
Message-ID: <87fw2axizz.wl%sebhofer@gmail.com> (raw)
In-Reply-To: <874niq4c99.fsf@gmail.com>

At Wed, 09 Jan 2013 16:17:06 +0100,
Nicolas Goaziou wrote:
> 
> Hello,
> 
> Sebastian Hofer <sebhofer@gmail.com> 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

  reply	other threads:[~2013-01-09 20:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20 23:43 org-e-latex: ignoreheading is not working any more Yagnesh Raghava Yakkala
2012-11-21 12:37 ` Myles English
2012-11-21 13:21   ` Nicolas Goaziou
2012-11-21 15:15     ` Myles English
2013-01-08 15:40     ` Sebastian Hofer
2013-01-09 15:17       ` Nicolas Goaziou
2013-01-09 19:18         ` Sebastian Hofer [this message]
2013-01-10 18:44           ` Nicolas Goaziou
2013-01-10 19:04             ` Sebastian Hofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fw2axizz.wl%sebhofer@gmail.com \
    --to=sebhofer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.