* org-odt on Windows 7
@ 2011-07-09 7:47 sebastian.titz
2011-07-09 13:50 ` Bastien
2011-07-22 14:41 ` [PATCH 2/2] org-odt: Check for zip early during export (was Re: org-odt on Windows 7) Jambunathan K
0 siblings, 2 replies; 7+ messages in thread
From: sebastian.titz @ 2011-07-09 7:47 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I tried the new org-odt exporter in org-mode 7.6 running emacs 23.3
on Windows 7 with (org-export-as-odt). It stops before generating an
output with the error message: Searching for program: no such file or
directory, zip. I guess it is caused by not having a command line
version of zip in Windows.
Is there a way to use org-odt under windows?
Best,
Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-odt on Windows 7
2011-07-09 7:47 org-odt on Windows 7 sebastian.titz
@ 2011-07-09 13:50 ` Bastien
2011-07-09 14:49 ` Sebastian
2011-07-22 14:41 ` [PATCH 2/2] org-odt: Check for zip early during export (was Re: org-odt on Windows 7) Jambunathan K
1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2011-07-09 13:50 UTC (permalink / raw)
To: sebastian.titz; +Cc: emacs-orgmode
Ciao Sebastian,
sebastian.titz@unina.it writes:
> I tried the new org-odt exporter in org-mode 7.6 running emacs 23.3
> on Windows 7 with (org-export-as-odt). It stops before generating an
> output with the error message: Searching for program: no such file or
> directory, zip. I guess it is caused by not having a command line version
> of zip in Windows.
>
> Is there a way to use org-odt under windows?
Perhaps you can first try to get a command line version of zip
under Windows 7?
If you manage to get this, the ODT exporter will need to set a
variable to let the user define the patch for this executable.
But I'm not using Windows, so I can help more about the details.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-odt on Windows 7
2011-07-09 13:50 ` Bastien
@ 2011-07-09 14:49 ` Sebastian
2011-07-09 15:26 ` Sebastien Vauban
2011-07-09 15:45 ` Bastien
0 siblings, 2 replies; 7+ messages in thread
From: Sebastian @ 2011-07-09 14:49 UTC (permalink / raw)
To: emacs-orgmode
Bastien <bzg <at> altern.org> writes:
>
> Ciao Sebastian,
>
> sebastian.titz <at> unina.it writes:
> > Is there a way to use org-odt under windows?
>
> Perhaps you can first try to get a command line version of zip
> under Windows 7?
>
> If you manage to get this, the ODT exporter will need to set a
> variable to let the user define the patch for this executable.
>
> But I'm not using Windows, so I can help more about the details.
>
> HTH,
>
I found a solution.
Info-zip (http://en.wikipedia.org/wiki/Info-ZIP) did the
trick for me. No patches needed.
I just added the binary to the PATH and it worked.
org-odt is great. I can really see myself using it for shorter tasks.
Thank you
for adding it to orgmode.
Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-odt on Windows 7
2011-07-09 14:49 ` Sebastian
@ 2011-07-09 15:26 ` Sebastien Vauban
2011-07-09 15:45 ` Bastien
1 sibling, 0 replies; 7+ messages in thread
From: Sebastien Vauban @ 2011-07-09 15:26 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Sebastian and all,
Sebastian wrote:
> I found a solution.
> Info-zip (http://en.wikipedia.org/wiki/Info-ZIP) did the
> trick for me. No patches needed.
> I just added the binary to the PATH and it worked.
Other solution: install the zip package from Cygwin. Tested, works.
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-odt on Windows 7
2011-07-09 14:49 ` Sebastian
2011-07-09 15:26 ` Sebastien Vauban
@ 2011-07-09 15:45 ` Bastien
1 sibling, 0 replies; 7+ messages in thread
From: Bastien @ 2011-07-09 15:45 UTC (permalink / raw)
To: Sebastian; +Cc: emacs-orgmode
Sebastian <sebastian.titz@unina.it> writes:
> I found a solution.
> Info-zip (http://en.wikipedia.org/wiki/Info-ZIP) did the
> trick for me. No patches needed.
> I just added the binary to the PATH and it worked.
Thanks for sharing this solution!
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] org-odt: Check for zip early during export (was Re: org-odt on Windows 7)
2011-07-09 7:47 org-odt on Windows 7 sebastian.titz
2011-07-09 13:50 ` Bastien
@ 2011-07-22 14:41 ` Jambunathan K
2011-07-22 15:49 ` Bastien
1 sibling, 1 reply; 7+ messages in thread
From: Jambunathan K @ 2011-07-22 14:41 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 444 bytes --]
sebastian.titz@unina.it writes:
> Hello,
>
> I tried the new org-odt exporter in org-mode 7.6 running emacs 23.3
> on Windows 7 with (org-export-as-odt). It stops before generating an
> output with the error message: Searching for program: no such file or
> directory, zip. I guess it is caused by not having a command line
> version of zip in Windows.
The simple patch below tries to check for availability of zip very early
in the export.
[-- Attachment #2: 0002-org-odt-Check-for-zip-early-during-export.patch --]
[-- Type: text/plain, Size: 1103 bytes --]
From 043a85d0826eb9a6a1e28792b8a701c74ff18623 Mon Sep 17 00:00:00 2001
From: Jambunathan K <kjambunathan@gmail.com>
Date: Fri, 22 Jul 2011 16:54:40 +0530
Subject: [PATCH 2/2] org-odt: Check for zip early during export
* contrib/lisp/org-odt.el (org-odt-init-outfile): Abort export
if zip utility is not available.
---
contrib/lisp/org-odt.el | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index c1c5b7f..b7e5a70 100644
--- a/contrib/lisp/org-odt.el
+++ b/contrib/lisp/org-odt.el
@@ -1226,6 +1226,10 @@ MAY-INLINE-P allows inlining it as an image."
(apply 'org-lparse-format-tags tag text prefix suffix args)))
(defun org-odt-init-outfile (filename)
+ (unless (executable-find "zip")
+ ;; Not at all OSes ship with zip by default
+ (error "Executable \"zip\" needed for creating OpenDocument files. Aborting."))
+
(let* ((outdir (make-temp-file org-export-odt-tmpdir-prefix t))
(mimetype-file (expand-file-name "mimetype" outdir))
(content-file (expand-file-name "content.xml" outdir))
--
1.7.2.3
[-- Attachment #3: Type: text/plain, Size: 87 bytes --]
>
> Is there a way to use org-odt under windows?
>
> Best,
>
> Sebastian
>
>
>
--
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] org-odt: Check for zip early during export (was Re: org-odt on Windows 7)
2011-07-22 14:41 ` [PATCH 2/2] org-odt: Check for zip early during export (was Re: org-odt on Windows 7) Jambunathan K
@ 2011-07-22 15:49 ` Bastien
0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2011-07-22 15:49 UTC (permalink / raw)
To: Jambunathan K; +Cc: emacs-orgmode
Jambunathan K <kjambunathan@gmail.com> writes:
>> I tried the new org-odt exporter in org-mode 7.6 running emacs 23.3
>> on Windows 7 with (org-export-as-odt). It stops before generating an
>> output with the error message: Searching for program: no such file or
>> directory, zip. I guess it is caused by not having a command line
>> version of zip in Windows.
>
> The simple patch below tries to check for availability of zip very early
> in the export.
Applied, thanks!
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-07-22 15:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-09 7:47 org-odt on Windows 7 sebastian.titz
2011-07-09 13:50 ` Bastien
2011-07-09 14:49 ` Sebastian
2011-07-09 15:26 ` Sebastien Vauban
2011-07-09 15:45 ` Bastien
2011-07-22 14:41 ` [PATCH 2/2] org-odt: Check for zip early during export (was Re: org-odt on Windows 7) Jambunathan K
2011-07-22 15:49 ` Bastien
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).