From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IDUEDBtRYWNzUwEAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 18:02:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OIVMChtRYWPPZwEA9RJhRA (envelope-from ) for ; Tue, 01 Nov 2022 18:02:19 +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 AC05ED7F1 for ; Tue, 1 Nov 2022 18:02:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1optC5-0004A1-OC; Tue, 01 Nov 2022 11:28:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1optC3-00046h-Ge for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 11:28:47 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1optC2-0008KB-2C for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 11:28:47 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1optBy-0007LT-9I for emacs-orgmode@gnu.org; Tue, 01 Nov 2022 16:28:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: export and cross links between files Date: Tue, 1 Nov 2022 22:28:34 +0700 Message-ID: References: <877d0xfu9m.fsf@localhost> <877d0wayn8.fsf@localhost> <87lep97tnn.fsf@localhost> <87ilkc30wd.fsf@localhost> <87ilk0jzab.fsf@localhost> <87cza7jkdd.fsf@localhost> 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:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US In-Reply-To: <87cza7jkdd.fsf@localhost> 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: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 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.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667322138; 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=H7dgYh1cv0TBCHUHUORzEwbghzVczbv9W8FkwG4he28=; b=F/EHQZ/WrVhS3lVoQLfIL4HWWcpc3U631Z3gjBMuPVYyFrkaAYRhhwWVD04XCnbNrjd0j4 KyLCGD0/b9V0emKHP4dEiN0towfNKQ7oX0mlmK5VjqRhy2iMsDYnUTWuPAfg9F9LarcyfT 9KN9AbUYj6OCt5gLEct17ItmleQv9iOTTWpp/+pptP0nza1M8IW+cAIBgMZHkjssRgX7SE jEIqFW2cNZRz4hwVhsA9GeKtXtrFDl3/5ysiLxzWFekjvXk0eUJmxaD1Sjp8YxK0SqC8A6 KgqGGJHrMyf0XzyE1f4M74/qrhZcRho9nFFeUQLZE10L+XriAYtJY1pRe1rMjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667322138; a=rsa-sha256; cv=none; b=Ktcyb147Zjaoc+BspVsOdtsmlgrUFDOYXHuT6y0F6VRujYxvN2UmdfKUG/rrSd63B4MzLK 31i2NzUFHQw1dv/9xhs3Op1npIDWd1QcKJUXvGmbrMcJNaifSVX22mizVQZ+Fzj8+u8eel VOIM91G4il5ZSyO+hxWKw7s0/fJdh2chQeQH+UoG0yC2kLvzv2jaLcwfjKPX3YS6/U3+ig X0FLqAMT4MJ3GZJOHPm+yrzh4YpYqrUn2OQyIhivyTcU0O70A8zwuneYb75wJ6PAJmV7Yu keJ4LAq+DWvDTDlfWLaiJsXxr2gvz97/JR0qUMp+zBqBVihrjAZm62J9U/y59Q== 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.72 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: AC05ED7F1 X-Spam-Score: 2.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: srvHguBUQzFb On 01/11/2022 12:48, Ihor Radchenko wrote: > Max Nikulin writes: > >> It seems org-id.el should be extended to handle some features common to >> all formats such as custom suffix instead of ".org" > > Could you please elaborate? Currently ox-html has an option to replace links to .org files with links to exported .html files. I suppose, this option should be generalized to other export backends. It is up to user to set appropriate target format to get cross links between exported files. For ox-latex usually there is no point to link .tex files, target format is almost certainly .pdf. However PDF files may be created from ODF or HTML files, so a user should be able to specify arbitrary suffix, e.g. ".pdf", as a replacement of ".org" file links during export. Besides "file:" links such feature should work at least for "id:" links. There is another subthread to discuss link to .org source vs. link to target format.