emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: how to get multi-line author in ODT export?
Date: Thu, 26 Aug 2021 10:50:32 -0400	[thread overview]
Message-ID: <CAJ51ETpHqP-e-ZAhs559kWVgQNKceUB0coeifN7HwLPxMfgR4Q@mail.gmail.com> (raw)
In-Reply-To: <877dg8473k.fsf@ucl.ac.uk>


[-- Attachment #1.1: Type: text/plain, Size: 1765 bytes --]

Does something like this work for you:

#+options: author:nil
#+author: Test author - not shown in export

@@odt:<text:author-name>First author
line</text:author-name><text:line-break/><text:author-name>Second
line</text:author-name>@@

Testing with content

This exports to ODT like this for me:
[image: image.png]

John

-----------------------------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Thu, Aug 26, 2021 at 10:24 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> So, as usual, I answer my own question, sort of.
>
> The problem is that org exports the author text enclosed within a
> special directives, specifically:
>
>  (format "<text:initial-creator>%s</text:initial-creator>" author))
>
> New line directives are not allowed within this declaration, it
> seems.  Removing (manually) the initial-creator directive then works.
>
> So, my question would be: is this text:initial-creator tagging
> necessary?  If not, can we remove it?  The OpenDocument schema is vague
> about whether this is necessary.  If we cannot remove it, i.e if
> initial-creator is required in the document, could it be put in
> separately (as a meta:initial-creator tag) so that the author field can
> be more general?
>
> I am *not* an ODT expert of any sort.  But it is my route to Word
> documents when the need arises (which is luckily seldom).
>
> Anyway, no panic: I can simply manually edit the odt file just before
> the final processing...
>
> Thank you,
> eric
>
> --
> : Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-628-g366444
> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>
>

[-- Attachment #1.2: Type: text/html, Size: 2706 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 13012 bytes --]

  reply	other threads:[~2021-08-26 14:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26 13:43 how to get multi-line author in ODT export? Eric S Fraga
2021-08-26 14:24 ` Eric S Fraga
2021-08-26 14:50   ` John Kitchin [this message]
2021-08-26 15:01     ` Eric S Fraga
2021-08-26 16:05   ` Juan Manuel Macías
2021-08-26 16:54     ` Juan Manuel Macías
2021-08-26 18:34       ` John Kitchin
2021-08-27  1:46         ` Juan Manuel Macías
2021-08-27 12:40       ` Eric S Fraga

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=CAJ51ETpHqP-e-ZAhs559kWVgQNKceUB0coeifN7HwLPxMfgR4Q@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    /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).