emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [BUG] Various problems with org-odt export


From: Jambunathan K
Subject: Re: [O] [BUG] Various problems with org-odt export
Date: Mon, 12 Dec 2011 19:16:09 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (windows-nt)

Christian

> Hi,
>
> Either something's gone wrong with my setup, or there are a number of
> issues to straighten out after org-odt moved to core.
>
> Here's what I have so far (with Org 7.7 pulled this morning, Emacs
> 23.3.1, on a Mac). Issues 1 and 3 look urgent.
>
> 1. The org-export-odt-styles-file variable
>
> still points to
> "~/src/base/org-mode/contrib/odt/styles.xml"
> as the default style template. The defcustom comes with a FIXME note,
> and that has become urgent, as the lack of a default styles file in
> the default place would cause Org-odt export to fail out of the box
> for most users. I'm not sure where this should point, but I assume it
> should not point to anything in contrib any longer.

The default style files have been moved from contrib/odt/styles to
etc/styles.

Make sure that you are loading the right version of org-odt with M-x
locate-library.

Also the following variables:

C-h v org-odt-lib-dir => "~/src/org-mode/lisp/"
C-h v org-odt-styles-dir => "~/src/org-mode/etc/styles/"

The first variable says wherefrom org-odt is loaded.

The second variable -- which was newly introduced a 2-3 days ago --
should tell where the default style files come from.

If you are unable to find the second variable, then it most postively
suggests that it is the old org-odt that is loaded.

> 2. The #+ODT_STYLES_FILE directive
>
> does not seem to work. It's ignored and the value of
> org-export-odt-styles-file is used instead.

May be related to (1). 

Is everything OK when there is *no* ODT_STYLES_FILE and
org-export-odt-styles-file is *reset* to nil?

> 3. Current backend not set to 'odt?
>
> During ODT export, org-export-format-source-code-or-example
> fails while trying to load a file called "org-nil". So apparently
> org-export-current-backend fails to be passed the value 'odt on ODT
> export.
>
> The latter problem could also explain why, trying to export a file
> with verse environments, I got LaTeX mixed in with the ODT XML...

I hope org-odt loads fine...
Does M-x load-library RET org-odt RET report any errors?

> Yours,
> Christian
>
>
>

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]