emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Specify the end of a heading even when there's still some content after it
@ 2011-11-24 15:41 Emmanuel Di Pretoro
  2011-12-01  8:42 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Emmanuel Di Pretoro @ 2011-11-24 15:41 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1397 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Specify the end of a heading even when there's still some content after it
  2011-11-24 15:41 Specify the end of a heading even when there's still some content after it Emmanuel Di Pretoro
@ 2011-12-01  8:42 ` Eric S Fraga
  2011-12-01 11:06   ` Tim Burt
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2011-12-01  8:42 UTC (permalink / raw)
  To: Emmanuel Di Pretoro; +Cc: emacs-orgmode

Emmanuel Di Pretoro <edipretoro@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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Specify the end of a heading even when there's still some content after it
  2011-12-01  8:42 ` Eric S Fraga
@ 2011-12-01 11:06   ` Tim Burt
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Burt @ 2011-12-01 11:06 UTC (permalink / raw)
  To: Emmanuel Di Pretoro; +Cc: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Emmanuel Di Pretoro <edipretoro@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-01 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 15:41 Specify the end of a heading even when there's still some content after it Emmanuel Di Pretoro
2011-12-01  8:42 ` Eric S Fraga
2011-12-01 11:06   ` Tim Burt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).