From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id I4HGDRhEKGFb+QAAgWs5BA (envelope-from ) for ; Fri, 27 Aug 2021 03:47:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YKuWCBhEKGFaPgAAbx9fmQ (envelope-from ) for ; Fri, 27 Aug 2021 01:47:04 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6B2835A37 for ; Fri, 27 Aug 2021 03:47:03 +0200 (CEST) Received: from localhost ([::1]:46986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJQxR-0007Rb-Gh for larch@yhetil.org; Thu, 26 Aug 2021 21:47:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJQwv-0007RQ-84 for emacs-orgmode@gnu.org; Thu, 26 Aug 2021 21:46:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJQws-00056R-E5 for emacs-orgmode@gnu.org; Thu, 26 Aug 2021 21:46:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 31121240101 for ; Fri, 27 Aug 2021 03:46:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1630028784; bh=ggJ0yp8sKmorz17HotwO9BpVDwt0NyEnralea+38vG0=; h=From:To:Cc:Subject:Date:From; b=rvigdOq3h1CvUO9xHwIDCnXJ8qrJnKbtuKRw+g7kVE8j+eEQuZ/5s7ii4f1HSrLyd v+HLUaVcHWO7WjiliJmGhA9PuwuQ64VwqKDvimKy7d/9ljES4ivNzLiP6eGxOuUBJI sU+f2KJMQFVU30g2JdNj26sqr+QTcq3wt5Bu4jmciim90QvD8J7UtH90js0jOHChyf 5ZuhxPrUilgX65RWLU6Dd1AS9MwoCqZB+dM392ThGp5owKPxkkQINpFYNoaE1rkONl ki0SSMorBrKfhL3Wn6d5iMq/mbi5Kbmyn9C1kOq121pcwlSvHTxY9FV/qRjQe4tz0Q 8xmOi/lElRG1w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GwjHL43vLz6tmG; Fri, 27 Aug 2021 03:46:22 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: John Kitchin Subject: Re: how to get multi-line author in ODT export? References: <87bl5k48z1.fsf@ucl.ac.uk> <877dg8473k.fsf@ucl.ac.uk> <87k0k82nuy.fsf@posteo.net> <87fsuw2llc.fsf@posteo.net> Date: Fri, 27 Aug 2021 01:46:21 +0000 In-Reply-To: (John Kitchin's message of "Thu, 26 Aug 2021 14:34:23 -0400") Message-ID: <87tujb8xsi.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode , Eric S Fraga Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630028823; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dljKCAt0C8EtqqOTdbbMReNm0x89cyrfixWq2mYky1E=; b=e6M4k2aEebLsxZeFiqv8o7FSGXYaRsCoBh/w677pJuhrjBL8pDKbOMlsJ3aPcW2SV6xYwH oWoySIo29ZnC7UGIOaIY4A+6JWWJkEZVXwDsSRAn9PU+udhYyjHvOD5IkRw4gy8kdrbGCR /rWpIpxzmMkoL099QTNdjy54Ln2g5Dl5kSPVr/OkK2/6DpKYBZhuB2HtFUmUn3EbAiDaeS i6mT4+YXMBspmg2BKFXtcHGWo5BFTpV4hTGwk6ZKyAL4D3yNc6O2rNIk84X5l9HrP8TsI2 eV6rt9ioAoVYy84OKy1kcfl0z2adDKwA8Vqcwkv2W2aLw/V9+m0XREeqOlv5mQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630028823; a=rsa-sha256; cv=none; b=c7Gc5Ij6pIstQzckuSDYZcoJ+r3qTMHfaxNStikp0o0qvAFdETtEciiedPR3AVkURY+Ije UQfzYxFyqRzyJkTDcL97OqM1vO3A7tbA5OYvA3M9QHq/cpJ29Pmj9LY1zMrbCyZLhgmKIK hO8WT0t4kzCgyzZxceyS96yRXUKOEhy9bqrHHcFB2H1BR6jZeiDFAfg4C7qXEW8jLsxGnM 1gtfrQFhL3p+od47Y4TU+KmnfEiiNyv53q3+Ff5ubqOM7su4QpqzhVu2qscNbWRQczmcGd 7Sn6xYNMDQEijEVtty5bl5qeZD58D38ao5KuQlpRP0Mx8KAVzbfmQlZU87PufA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rvigdOq3; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rvigdOq3; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6B2835A37 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: NeaibTGXNGM/ Hi John, you're welcome. I realized that in these lines of the meta.xml file: ... ... line breaks can be achieved simply by adding a new line without marks (as discussed in this thread: https://stackoverflow.com/questions/10917555/adding-a-new-line-break-tag-in= -xml/10923392) Best regards, Juan Manuel John Kitchin writes: > That is really nice, thanks for sharing it! > 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 12:55 PM Juan Manuel Mac=C3=ADas > wrote: > > Hi again, > > Another simpler approach, with a filter: > > #+TITLE: The kessel run in 12 parsecs > #+AUTHOR: Han Solo !!! Chewbacca !!! Lando Calrissian > > #+BIND: org-export-filter-plain-text-functions (author-lb-filter) > #+begin_src emacs-lisp :exports results :results none > (defun author-lb-filter (text backend info) > (cond ((org-export-derived-backend-p backend 'odt) > (replace-regexp-in-string "!!!" "\n" text)) > ((org-export-derived-backend-p backend 'latex) > (replace-regexp-in-string "!!!" "\\\\\\\\" text)))) > #+end_src > > Content... > > Best regards, > > Juan Manuel > > Juan Manuel Mac=C3=ADas writes: > > > Hi Eric, > > > > I think the problem is in this two lines of `org-odt-template', > that > > creates the meta.xml file inside the odt file: > > > > (format "%s\n" author) > > (format "%s\n" > author) > > > > Perhaps, modifying them like this: > > > > (format "\n" > (replace-regexp-in-string "\\\\\\\\" "\n" author)) > > (format " [%s]]>\n" (replace-regexp-in-string > "\\\\\\\\" "\n" author)) > > > > We could do this in our documents: > > > > #+AUTHOR: Han Solo \\ Chewbacca > > > > (little tested) > > > > Best regards, > > > > Juan Manuel > > > > Eric S Fraga writes: > > > >> 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 "%s" > 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 > > > > >