[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is it possible to export Org properties as ODT user defined fiel
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Is it possible to export Org properties as ODT user defined fields? |
Date: |
Sat, 27 Sep 2014 23:23:43 +0200 |
Hello,
"Kevin D. Robbins" <address@hidden> writes:
> I would like to export some Org document properties as ODT user defined
> fields for use in ODT templates. For example, it would be great if
> something like
>
> #+ODT_FIELD: FOO:17 BAR:"Hello, world!"
>
> in the Org document exported the following user defined fields in the
> content.xml.
>
> <text:user-field-decls>
> <text:user-field-decl office:value-type="float" office:value="17"
> text:name="FOO"/>
> <text:user-field-decl office:value-type="string"
> office:string-value="Hello, world!" text:name="BAR"/>
> </text:user-field-decls>
>
> Is this currently possible?
You can generate this using macros (for simple cases) or Babel. In both
cases, you need to generate an export block containing the desired
output:
#+begin_odt
<text:user-field-decls>
...
</text:user-field-decls>
#+end_odt
See manual for more information.
Regards,
--
Nicolas Goaziou