Open eloi29 opened 9 years ago
That workaround did not work for me. I instead had to copy the file to the location in /etc. Note the install instructions don't say if there is a way to install the backend for all users rather than to ~/.asciidoc. I copied the whole directory and got a message that there were two odt backends. removing the odt backend from ~/.asciidoc resolved this.
I believe mine was the same issue. I installed the asciidoc-odf backend as instructed by the README:
$ asciidoc --backend install odt-backend.zip
Subsequently, using the "odt" backend, I would received a "missing theme" warning:
$ asciidoc -b odt doc.adoc
asciidoc: WARNING: doc.adoc: line 1: include file not found:
/etc/asciidoc/backends/odt/asciidoc.odt.styles
And, most important, the resulting .fodt was largely unstyled.
I resolved this via the odt.conf
under ~/.asciidoc/backends/odt/
.
For whatever reason, the first "intrinsic attributes" listed here that I tried didn't evaluate. So, though the optimal change would seem to be to use the backend-confdir
attribute, instead I ended up building the correct path via the user-dir
attribute. The diff:
$ diff odt.conf odt.conf.bak
743c743
< include1::{theme%}{backend-confdir={user-dir}/backends/{backend}}/asciidoc.odt.styles[]
---
> include1::{theme%}{backenddir={asciidoc-confdir}/backends/{backend}}/asciidoc.odt.styles[]
Hi,
I tried to use ascii doc ODT backend.
Here are my issues:
1) Generating my own tarball, I miss asciidoc.ott file. Did I miss a step to generate it ?
2) When trying to generate odt file with your example input file, I see a backend path issue:
Wrong path is set : '/etc/asciidoc/backends' instead of '~/.asciidoc/backends/odt/asciidoc.ott'
I have a workaround doing :
Did I miss again something ? Thanks,
Eloi