emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Belpaire <eric.belpaire@orange.fr>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Testing org-export-as-odt-and-open
Date: Mon, 10 Oct 2011 09:13:16 +0200	[thread overview]
Message-ID: <4E929B0C.1020901@orange.fr> (raw)
In-Reply-To: <81zkhaj64l.fsf@gmail.com>

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) "\b„
[label save-match-data-internal fmt2 category seqno fmt1 signal 
cl-assertion-failed match-data ((byte-code "Á\bÂ\"‡" 
[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
<skipping some garbage>
[label save-match-data-internal fmt2 category seqno fmt1 signal 
cl-assertion-failed match-data ((byte-code "\301\b\302\"\207" 
[save-match-data-internal set-match-data evaporate] 3)) 
org-odt-format-tags ("<text:sequence-ref text:reference-format=\"%s\" 
text:ref-name=\"%s\">" . "</text:sequence-ref>") 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: 
"</div></text:sequence-ref>"

" Please refer to @&lt;text:sequence-ref 
text:reference-format="category-and-value" text:ref-name="<div 
class="figure">
<p><img src="1024" alt="fig:1024" width="300" height="300" /></p>
</div>"&gt;<div class="figure">
<p><img src="1024" alt="fig:1024" width="300" height="300" /></p>
</div></text:sequence-ref> for further information.
"

I suppose this is due to the schema that comes with nxhtml in EmacsW32.

  reply	other threads:[~2011-10-10  7:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-24 22:41 Testing org-export-as-odt-and-open Eric Belpaire
2011-09-25 19:08 ` Jambunathan K
2011-09-26 22:13   ` Eric Belpaire
2011-10-09 16:23   ` Eric Belpaire
2011-10-09 19:51     ` Jambunathan K
2011-10-10  7:13       ` Eric Belpaire [this message]
2011-10-10 11:54         ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E929B0C.1020901@orange.fr \
    --to=eric.belpaire@orange.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).