[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bibtex export

From: Myles English
Subject: Re: [O] Bibtex export
Date: Wed, 19 Dec 2012 12:40:34 +0000
User-agent: mu4e; emacs 24.2.1

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

#+begin_src emacs-lisp
(defun my-export-delete-headlines-tagged-noheading (backend)
  (dolist (hl (nreverse (org-element-map (org-element-parse-buffer 'headline)
    (when (member "noheading" (org-element-property :tags hl))
      (goto-char (org-element-property :begin hl))
      (delete-region (point) (progn (forward-line) (point))))))

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


> Regards,
> Mohamed

reply via email to

[Prev in Thread] Current Thread [Next in Thread]