Re: [O] Specify the end of a heading even when there's still some content after it
Emmanuel Di Pretoro edipret...@gmail.com writes: Hi, Is there a way to ask to org-mode to add something before the \end{document} of a LaTeX export? The only thing that comes to mind would be to see if you can play with ,[ C-h v org-export-latex-final-hook RET ] | org-export-latex-final-hook is a variable defined in `org-latex.el'. | Its value is | ( ... ) | | | This variable is potentially risky when used as a file local variable. | | Documentation: | Hook run in the finalized LaTeX buffer. | | [back] ` and fix up the latex created to insert what you need at the right place? HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1 : using Org-mode version 7.7 (release_7.7.615.g02c26)
Re: [O] Specify the end of a heading even when there's still some content after it
Eric S Fraga e.fr...@ucl.ac.uk writes: Emmanuel Di Pretoro edipret...@gmail.com writes: Hi, Is there a way to ask to org-mode to add something before the \end{document} of a LaTeX export? LaTeX has the command \AtEndDocument{content} which defers processing of content until \end{document} is reached. Might this suit your need? Tim The only thing that comes to mind would be to see if you can play with ,[ C-h v org-export-latex-final-hook RET ] | org-export-latex-final-hook is a variable defined in `org-latex.el'. | Its value is | ( ... ) | | | This variable is potentially risky when used as a file local variable. | | Documentation: | Hook run in the finalized LaTeX buffer. | | [back] ` and fix up the latex created to insert what you need at the right place? HTH, eric -- Tim Burt www.rketburt.org It is healthful to every sane man to utter the art within him; -- GK Chesterton
[O] Specify the end of a heading even when there's still some content after it
Hi, Is there a way to ask to org-mode to add something before the \end{document} of a LaTeX export? I've set up a specific org-export-latex-class to use the limap package (a specific LaTeX package to produce Information Mapping-style document) and I would like to add a \printbibliography at the end of this document. If I use the following : #+begin_src org * References \printbibliography #+end_src The LaTeX export produce the folliowing : #+begin_src latex \begin{Map}{References} \printbibliography \end{Map} #+end_src Which is normal from the point of vue of org-mode. Unfortunately, \printbibliography doesn't play well with the limap package. So my solution is to end my LaTeX file by #+begin_src latex \section{References} \printbibliography #+end_src When I add these lines in my org file, these are integrated into the last heading. So, is there a way to tell org-mode that the last heading is finished, and that these two lines must be inserted before the \end{document}? Thanks in advance, Emmanuel Di Pretoro