From mboxrd@z Thu Jan 1 00:00:00 1970 From: mohamed Subject: Re: Bibtex export Date: Thu, 20 Dec 2012 10:08:30 +0000 (UTC) Message-ID: References: , <8738z3i9t8.fsf@bzg.ath.cx>, <87ehimmczh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tld3d-0007Sn-9Y for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 05:08:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tld3Y-0001VY-2k for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 05:08:53 -0500 Received: from plane.gmane.org ([80.91.229.3]:36868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tld3X-0001VH-SM for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 05:08:48 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tld3f-0000Z1-Sa for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 11:08:56 +0100 Received: from 192.196.142.26 ([192.196.142.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Dec 2012 11:08:55 +0100 Received: from mohamed.hibti by 192.196.142.26 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Dec 2012 11:08:55 +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: emacs-orgmode@gnu.org Myles, Thank you for this answer. I tried it with ------------------------------- (add-to-list 'org-export-preprocess-hook 'my-export-delete-headlines-tagged-noheading) ------------------------------- But I got some errors when exporting ----------------------------------------------------------------- Exporting to LaTeX... run-hooks: Wrong number of arguments: (lambda (backend) (dolist (hl (nreverse (org-element-map (org-element-parse-buffer (quote headline)) (quote headline) (quote identity)))) (when (member "noheading" (org-element-property :tags hl)) (goto-char (org-element-property :begin hl)) (delete-region (point) (progn (forward-line) (point)))))), 0 (my-export-delete-headlines-tagged-noheading) ----------------------------------------------------------------- I guess I have to use it in another way. My knowledge of lisp programming is very limited. Regards, Mohamed