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