emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* copy org-org-output? Based on copy-tex-output
@ 2021-03-18 13:38 Uwe Brauer
  0 siblings, 0 replies; only message in thread
From: Uwe Brauer @ 2021-03-18 13:38 UTC (permalink / raw)
  To: emacs-orgmode


Hi 

The following function, courtesy by Al Haji-Ali, allows me to copy latex
output (basically pdf) to a directory of my choice.

(defun copy-tex-output ()
   (interactive)
   (let* ((default (expand-file-name (TeX-active-master nil)))
          (default-dir (file-name-directory default))
          (default-file (concat (file-name-nondirectory default) "." (TeX-output-extension)))
          (outputfile (expand-file-name (TeX-active-master (TeX-output-extension))))
          (filename (read-file-name "Save as:" default-dir
                     default-file nil default-file)))
     (copy-file outputfile filename t)))

In order to use that for org-export, I need to know whether there is
something like TeX-output-extension for orgmode

Any idea?

regards

Uwe Brauer 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-18 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 13:38 copy org-org-output? Based on copy-tex-output Uwe Brauer

Code repositories for project(s) associated with this 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).