From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0G0kDFD/MWLSsgAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 16:16:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wC7VBFD/MWIrXAAAG6o9tA (envelope-from ) for ; Wed, 16 Mar 2022 16:16:32 +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 BB4803B7D3 for ; Wed, 16 Mar 2022 16:16:31 +0100 (CET) Received: from localhost ([::1]:34248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUVO2-0006tx-Sx for larch@yhetil.org; Wed, 16 Mar 2022 11:16:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUVNG-0006qf-7w for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 11:15:42 -0400 Received: from ciao.gmane.io ([116.202.254.214]:52262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUVNE-0007Bs-MW for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 11:15:41 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nUVNB-0006LC-Ex for emacs-orgmode@gnu.org; Wed, 16 Mar 2022 16:15:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: leading superscript on a line for ODT export Date: Wed, 16 Mar 2022 22:15:27 +0700 Message-ID: References: <877d8u3zv0.fsf@ucl.ac.uk> <20063.1647439486@apollo2.minshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <20063.1647439486@apollo2.minshall.org> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , 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=1647443791; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=SvszEKQUWwcelUJpFt+sMpKkDaF6GjD2F8rUL6Mquds=; b=so2HN9Z5KJiHOYy6+s7F4midNCIs38/Q5NsbHSmblCuwx7KyqxUEC71sw0FWd/v2jIfe1t OSM8M7dzZUcFNJVypzCa97JQHUo9U/XxZudsh9lNKKTdn00wCW+frHwKTPK/ZOM7WKgzGB 90EEu6H13ejAq9zK7STCXsyeh1/q+RtyAaS2KfcncEzq+txlPqMMWnJhs7I31fyAUezitA sSLgyinpRCCU5Zjxx4t63dzXWTBgpWpE8iZ5sqQ8WB85vwOa8bQrCyGsfhitCCTqqkdlzF m/tjisdxPhRv8tdzFuR5kbR1fD6GOjZzUehT3rOt3t5JSbHy/WshiH//KLeiFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647443791; a=rsa-sha256; cv=none; b=kjwFjW/XWTmeQiIyte5mj3ZAkDJ+0NicLeWPZif17IwJDJ1hfgZHqPFnWsOLT2lXWhCAue rH4sxifMYx6asfpGEJUKXqFcEkO4CKZVEhNfZf+TzogptPVEHd+/8oBu1ogCpbn40KPItC Hv3zCNKruOTNCBo+NLJ+Fj13BVEWJcRnlOoDLWdcYG6JbzITuYMoCiQdC80j5KL5gBI0Qe v08iEJVVkct1w1n/UHP8qiNdHSgcM1rRGvfBaB2HX3FeJfBm3FA8ur6NkRjG9u+p+Vs0yP sISagytGsJlPHWlfaRtqaglqAr3z0e0SdQPZV88f4aNueFUWfmiNdRJAfm3fhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 2.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: BB4803B7D3 X-Spam-Score: 2.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: 63USoosZs+C6 On 16/03/2022 21:04, Greg Minshall wrote: > hi. > >> @@org:@@^1 blah > > i'm not familiar with the '@@' construct. in the manual, searching for > the string "@@", i see references to various =@@foo...=, but not, for > example, =@@org:@@=. > > is there a general definition? might the index (or, one of the indices) > usefully have references to various "special" characters (like "^", "|", > and "@" when used in TODOs, iiuc)? I have not found definition of export snippet in the manual as well, so: https://orgmode.org/worg/dev/org-syntax.html#Export_Snippets It is an export snippet that is expanded to nothing and "org" is the backend name (alphanumeric characters). I choose "org" for two reasons: - `org-lint' might report unknown backend (it does not do it currently though and `ox-org' is not loaded by default) - perfect solution should survive after export to org. From my point of view, it is a bug in `ox-org' that it ignores @@org:...@@ (and other) export snippets. My expectation that they should be copied verbatim to allow further export to arbitrary format. So the main problem with @@org:@@^1 one that it would not work after export to org. Another solution: #+options: broken-links:t [[#not-found][{}]^2 two It works but the price is that really broken links may remain unnoticed. A custom entity may be better: #+begin_src elisp :exports (if (org-export-derived-backend-p org-export-current-backend 'org) "sources" "results") :results silent (setq org-entities-user '(("relax" "" nil "" "" ""))) #+end_src \relax^3 three Actually all these recipes are the outcome of flame in the threads about intra-word markup. Notice that a macro expanded to empty string does not work. P.S. Juan Manuel, I was expecting that you suggested a custom link: #+begin_src elisp :exports (if (org-export-derived-backend-p org-export-current-backend 'org) "sources" "results") :results silent (org-link-set-parameters "discard" :export (lambda (_path _descr _backend) "")) #+end_src [[discard:][{}]]^5 four