* Is it possible to export Org properties as ODT user defined fields?
@ 2014-09-22 23:27 Kevin D. Robbins
2014-09-27 21:23 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Kevin D. Robbins @ 2014-09-22 23:27 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
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?
Best Regards,
Kevin
[-- Attachment #2: Type: text/html, Size: 830 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is it possible to export Org properties as ODT user defined fields?
2014-09-22 23:27 Is it possible to export Org properties as ODT user defined fields? Kevin D. Robbins
@ 2014-09-27 21:23 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-09-27 21:23 UTC (permalink / raw)
To: Kevin D. Robbins; +Cc: emacs-orgmode
Hello,
"Kevin D. Robbins" <krobbins@alumni.princeton.edu> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-27 21:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 23:27 Is it possible to export Org properties as ODT user defined fields? Kevin D. Robbins
2014-09-27 21:23 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.