From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Belpaire Subject: Re: Testing org-export-as-odt-and-open Date: Mon, 10 Oct 2011 09:13:16 +0200 Message-ID: <4E929B0C.1020901@orange.fr> References: <81ehz4wibd.fsf@gmail.com> <4E91CA9D.30900@orange.fr> <81zkhaj64l.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDA3A-0000dU-Fi for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 03:13:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDA38-0005cg-Bd for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 03:13:24 -0400 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:18176 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDA37-0005cI-SB for emacs-orgmode@gnu.org; Mon, 10 Oct 2011 03:13:22 -0400 In-Reply-To: <81zkhaj64l.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Thanks. This mail replaces my earlier mail. I discarded the git setup and I tried org-mode + org-odt by using ONLY the ELPA tarballs. On 09/10/2011 21:51, Jambunathan K wrote: >> Have you been able to build the ELPA tarball? >> If so, where can I find it? > I have uploaded a new org-odt-20111010.tar here. > > ,----[ C-h v package-archives RET ] > | package-archives is a variable defined in `package.el'. > | Its value is > | (("gnu" . "http://elpa.gnu.org/packages/") > | ("org-odt" . "http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/")) The above gives me the error: "404 - Cannot find file". So, I used: http://repo.or.cz/w/org-mode/org-jambu.git/blob/HEAD:/packages/ As my emacs-version is "GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 (patched)", I'm using package-install-file to install the ELPA tarballs. I downloaded the latest tarball from Org-mode repo. http://orgmode.org/pkg/daily/ i.e.: org-20111009.tar package-install-file "~/.emacs.d/org-20111009.tar" http://repo.or.cz/w/org-mode/org-jambu.git/blob/HEAD:/packages/org-odt-20111010.tar when downloaded gives me: packages_org-odt-20111010.tar mv ~/.emacs.d/packages_org-odt-20111010.tar ~/.emacs.d/org-odt-20111010.tar package-install-file "~/.emacs.d/org-odt-20111010.tar" > The test file is in this directory: > > "~/.emacs.d/elpa/org-odt-20111010/contrib/odt/tests/test.org" > > Let me know if you run in to any issues. > In order to not use nxhtml that is part of EmacsW32, I've set nxhtml-load to nil. This is irrelevant, because setting nxhtml-load to t doesn't change the results. This results in: Loading nxml-mode...done Using schema ~/.emacs.d/elpa/org-odt-20111010/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc When trying the c-c c-e O on test.org, I get the following in *Messages*: Export buffer: Exporting to ODT using org-lparse... Using vacuous schema c:/DOCUME~1/GCVD3476/LOCALS~1/Temp/odt-30312juB/content.xml and c:/Documents and Settings/GCVD3476/Local Settings/Temp/odt-30312juB/content.xml are the same file LaTeX to MathML converter not available. Using verbatim instead. [8 times] org-babel-exp processing... [3 times] Position saved to mark ring, go back with C-c &. executing Org code block... "* Some Appointment SCHEDULED: <2010-11-17 Wed>" org-babel-exp processing... [3 times] LaTeX to MathML converter not available. Using verbatim instead. Exporting... Embedding ./org-mode-unicorn.png as Images/0001.png ... Not a PNG file: `e:/User/home/.emacs.d/elpa/org-odt-20111010/contrib/odt/tests/org-mode-unicorn.png' Embedding ./org-mode-unicorn.png as Images/0002.png ... Not a PNG file: `e:/User/home/.emacs.d/elpa/org-odt-20111010/contrib/odt/tests/org-mode-unicorn.png' Embedding ./org-mode-unicorn.png as Images/0003.png ... Embedding ./org-mode-unicorn.png as Images/0004.png ... Not a PNG file: `e:/User/home/.emacs.d/elpa/org-odt-20111010/contrib/odt/tests/org-mode-unicorn.png' Embedding ./org-mode-unicorn.png as Images/0005.png ... Not a PNG file: `e:/User/home/.emacs.d/elpa/org-odt-20111010/contrib/odt/tests/org-mode-unicorn.png' Found table.el-type table in the source org file. table.el doesn't support ODT backend. Skipping ahead ... [2 times] Using schema ~/.emacs.d/elpa/org-odt-20111010/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc apply: Wrong number of arguments: #[(label category seqno fmt1 fmt2) "„ [label save-match-data-internal fmt2 category seqno fmt1 signal cl-assertion-failed match-data ((byte-code "ÁÂ\"‡" [save-match-data-internal set-match-data evaporate] 3)) ...] 9], 2 Here is the *Backtrace*: Debugger entered--Lisp error: (wrong-number-of-arguments #[(label category seqno fmt1 fmt2) "\204 [label save-match-data-internal fmt2 category seqno fmt1 signal cl-assertion-failed match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-odt-format-tags ("" . "") format-spec 101 110 format "%d"] 9] 2) org-odt-format-label-reference("category-and-value" "%e %n") apply(org-odt-format-label-reference ("category-and-value" "%e %n")) org-odt-fixup-label-references() org-odt-end-export() apply(org-odt-end-export nil) org-lparse-end(EXPORT) org-do-lparse(nil hidden nil nil nil nil) org-lparse("odt" "odt" nil hidden) org-lparse-and-open("odt" "odt" nil) org-export-as-odt-and-open(nil) call-interactively(org-export-as-odt-and-open) org-export(nil) call-interactively(org-export nil nil) What did I do incorrectly? Am I missing some configuration? BTW: when I used org-jambu.git AND nxhtml that is part of EmacsW32, I managed to generate a test.dot file that was misformed at: "" " Please refer to @<text:sequence-ref text:reference-format="category-and-value" text:ref-name="

fig:1024

">

fig:1024

for further information. " I suppose this is due to the schema that comes with nxhtml in EmacsW32.