diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-04-09 09:11:43 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-04-09 09:11:43 -0600 |
commit | 1b40601ebd5de3746ab72d19d3258f815a402066 (patch) | |
tree | 961f802aebda63b97b0fbb0a11386db95b1095d9 | |
parent | ee5a81102ddd016641758af9bedb876c76a552d4 (diff) | |
download | org-mode-1b40601ebd5de3746ab72d19d3258f815a402066.tar.gz |
`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.
-rw-r--r-- | lisp/org-latex.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 3583e17..6eb6fd4 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -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. |