From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Bibtex export Date: Wed, 19 Dec 2012 12:40:34 +0000 Message-ID: <87ehimmczh.fsf@gmail.com> References: , <8738z3i9t8.fsf@bzg.ath.cx>, Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlIwY-0007gi-LI for emacs-orgmode@gnu.org; Wed, 19 Dec 2012 07:40:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlIwU-0006Df-8i for emacs-orgmode@gnu.org; Wed, 19 Dec 2012 07:40:14 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:34930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlIwU-0006CN-3D for emacs-orgmode@gnu.org; Wed, 19 Dec 2012 07:40:10 -0500 Received: by mail-wi0-f177.google.com with SMTP id hm2so1172749wib.4 for ; Wed, 19 Dec 2012 04:40:09 -0800 (PST) In-reply-to: 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: mohamed Cc: emacs-orgmode@gnu.org Hi Mohamed, mohamed writes: > Usually I write > --------------------------- > * Section a > > ... > * Bibliograpy :noheading: > > \clearpage > \bibliographystyle{acm} > \bibliography{biblio.bib} > If you use this function then the Bibliography heading won't be duplicated: #+begin_src emacs-lisp (defun my-export-delete-headlines-tagged-noheading (backend) (dolist (hl (nreverse (org-element-map (org-element-parse-buffer 'headline) 'headline 'identity))) (when (member "noheading" (org-element-property :tags hl)) (goto-char (org-element-property :begin hl)) (delete-region (point) (progn (forward-line) (point)))))) #+end_src You need to be a bit careful because the Bibliography section will then inherit any properties from the section above so if you then do: * Section a :noexport: then both that section and the Bibliography section would not be exported. Myles > Regards, > Mohamed