`org-export-as-latex' set the body-only option when called with a simple prefix arg

This can be useful for exporting a small active region (often a
  table) to latex for pasting into an existing latex buffer.
This commit is contained in:
Eric Schulte 2010-04-09 09:11:43 -06:00
parent ee5a81102d
commit 1b40601ebd
1 changed files with 1 additions and 0 deletions

View File

@ -584,6 +584,7 @@ simply return the content of \begin{document}...\end{document},
without even the \begin{document} and \end{document} commands.
when PUB-DIR is set, use this as the publishing directory."
(interactive "P")
(when (and (not body-only) (listp arg)) (setq body-only t))
(run-hooks 'org-export-first-hook)
;; Make sure we have a file name when we need it.