[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 0.9.9.5-dev1; 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
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
- [O] Bibtex export, mohamed, 2012/12/17
- Re: [O] Bibtex export, Bastien, 2012/12/18
- Re: [O] Bibtex export, mohamed, 2012/12/18
- Re: [O] Bibtex export,
Myles English <=
- Re: [O] Bibtex export, mohamed, 2012/12/20
- Re: [O] Bibtex export, Myles English, 2012/12/20
- Re: [O] Bibtex export, Mohamed HIBTI, 2012/12/20
- Re: [O] Bibtex export, Bastien, 2012/12/20
- Re: [O] Bibtex export, Myles English, 2012/12/20
- Re: [O] Bibtex export, Mohamed HIBTI, 2012/12/20