forked from mirrors/org-mode
`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:
parent
ee5a81102d
commit
1b40601ebd
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue