From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AHAbKSHTMWLQFAEAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 13:08:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +LmgJiHTMWKk8wAA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 13:08:01 +0100 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 27B8C2AFDD for ; Wed, 16 Mar 2022 13:08:01 +0100 (CET) Received: from localhost ([::1]:54310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUSRa-0001Dj-QD for larch@yhetil.org; Wed, 16 Mar 2022 08:07:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUSNd-0007Np-FR for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 08:03:53 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUSNb-0004xr-FR for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 08:03:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 58EF8240103 for ; Wed, 16 Mar 2022 13:03:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1647432229; bh=nhSjyFFBEG6/m2KUCRhwuPf0XNaXHKWVE0hePtCT4sQ=; h=From:To:Cc:Subject:Date:From; b=rcJgb+v6NB5DD10z1LrqMw6faVGMnWwTf6iBEWLRw62DAWP0V/Mvhylat8i5pM+/g iXVx1UqOOVj88UeSDzVS0O1cbvz6EzAe8Vi5+W2ZvPBpik1R+77rgn6QJrsceYySq7 qHndUv0hdOlW/5RAk6r9DcC19BFHdalRF3b2zSyvp5GKtFtaecPaWU5cYyg79AaguB JHqZ67HjBtke6AcMWUp/IGHViHw6ROyBPv7hk+z/wSxFSgJ6wb7LEKP/p5M10iQW+v eq5G0vNxgvkrrvqliV09iBOltgeRAmK99alkHmA0ibPUpnXRBROCXw6nxbkZuJi/jS Ju3pDx4cIIMHg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KJTT04yKqz9rxQ; Wed, 16 Mar 2022 13:03:48 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Eric S Fraga Subject: Re: leading superscript on a line for ODT export References: <877d8u3zv0.fsf@ucl.ac.uk> Date: Wed, 16 Mar 2022 12:03:45 +0000 In-Reply-To: <877d8u3zv0.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 16 Mar 2022 11:23:31 +0000") Message-ID: <87mthq9k9q.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647432481; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mI5Ox5K/MtF/Cp/x5tJpjZhMZrbKH+T7HabwAxCvfzc=; b=F8tlrgAhurc3AzLoxt5g8Uz0mfrOMF92Mo8JQgLwo0DAAUuhxGBNRoLWuOKcFB3AZNkQEz uCa6/Ew7mwDZcrPxrZ3ORNiYiAO/K8FqBaw0+TdQCQ61n+F7RNhdnSpKi0Dij52BSJViBu F9YHSmu7JqE/JffTfJAuSkGwZlZD8OK7cBGCFJRWduOoFGlm/g9tii5otjbT2vUwaOwfgG Ly5mZUh1ufD8UgiIN2nuQFTLEYl1hu2adf4x+t4qJgk1SfQhKQ83+S6Y2hbubTAB0cJFgp 2VK23QljKNv47s/tjh80CNhtKAgv2gyegK5Z2x3S/yeOQBTOcMeym9Qv7HaSeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647432481; a=rsa-sha256; cv=none; b=NeaK2H9AkgBsHjt2GS5yBwLdEDL1MnmQvV1qFEuOO2JlVGhEq7ahiJbQxHqfRfCnCjCJ+P GELJGvs/fP0hO8iK5PH96VwM4MEWG2Cpo7fcorW8N3enyXdrijKxrfFUFj2RQD6TOQTJEV cUk14kxofU5/+vmufxLzjhvU6ANr0YR2aFTBV6hUEA7tnkBGQQy1DYM7gdeC3H1asG8qyo iUZQP0rdIZVUZl9HJmFOXpID2NM7YEsQrfxs/Va704wMpFJdIbUkJm0kvsVAAATln4YZ9G 6S20KSnRjs9sprg8eVdGKfQWtTjmR/w77TvukH35P/xN8zQG0nh2XvqaCRCzHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rcJgb+v6; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rcJgb+v6; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 27B8C2AFDD X-Spam-Score: -9.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: AwWihybTBtze Hi Eric, Eric S Fraga writes: > I need to have a line starting with a superscript, e.g. 1, in an ODT > exported file. If I write "^1 blah", it doesn't work. I need a > character before the ^ to have it interpreted as a superscript. > > Is there an "empty" character I can use? I tried a non-breaking space > but that did not work. The space is there but the ^1 gets exported > literally. I would use a macro. For example: #+begin_src emacs-lisp (defun my-macro-superscript (arg) (cond ((eq org-export-current-backend 'latex) (format "@@latex:\\textsuperscript{%s}@@" arg)) ((eq org-export-current-backend 'odt) (format "@@odt:%s@@" arg)))) (setq org-export-global-macros '(("sup" . "(eval (my-macro-superscript $1))"))) #+end_src {{{sup(4)}}} Best regards, Juan Manuel