From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GOu3CHVsRWX/HwAAG6o9tA:P1 (envelope-from ) for ; Fri, 03 Nov 2023 22:56:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GOu3CHVsRWX/HwAAG6o9tA (envelope-from ) for ; Fri, 03 Nov 2023 22:56:05 +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 AE29014C6F for ; Fri, 3 Nov 2023 22:56:04 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NndlRzr+; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699048564; 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=8k1lBDUXO6n99DSTw47Cm9e1na8xeoOYdXqe4m7tWIA=; b=ecIVqLrdxyhsFrLKJc3wUoyqJBVh4QcM6R10o3SsMf4NPFCoOGNT+oYJ3WHk2IeZKssp98 jzQLBpqcALEUjZGHm8oPZTs/JpjLWPQmWwSmDlONKXFPIDq4h5WlqdHXmhWY9fxOi5VPnf ppXXGAoP1rT2Ke4tCFZXp9Eq9cxVjxTkK6i9B1/1WdvhGwlBepyT3Z/4yPYYECngfj1+UX v1VVDptiz0Kcmgpfrpib/ALm73hoVMRqxbsB/rOx3mJnGfIuZlxgjoGgdozsqcQcLganLS 9dwR7pgi68h/Bpf9LgC3jhxXw8CPHsI1V1480SEeMxAbBDiA4qrXmr79EzafOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NndlRzr+; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699048564; a=rsa-sha256; cv=none; b=W2aisAfXMM+EULjeMZa+i364DWPTkmbWwo2nXBObUsCQuTiWq7XVUg3a6+8k9aiakTtHi1 g7WRsbrHEdjGBARsslfm1qad2w/YAf3MoatHu1saIt+JQ1383aTICeupzPPCohWu3mWOa+ Pd6YbULzBAorJKiXHH2/4Nr2hY6Z265zd7WEsL7rX2iDQP0AXPtAPpo8lSwmP0Z3dPb/pG BHcHyoEGO/nJ4tVkrjwwgb/IMqhcxkS4aAxSCvbHGaBcGvVVpj0kNz+g2A2sJmmk7Xd4iC fM7AgIp4snZbWKtmEZCyT4J9jRvjM/fSTaiLCKZ2KTuTC1KvS4nbIMJ5snuahA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qz28J-0005nP-OC; Fri, 03 Nov 2023 17:55:15 -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 1qz28G-0005hG-B9 for emacs-orgmode@gnu.org; Fri, 03 Nov 2023 17:55:12 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qz28C-0006Bd-8K for emacs-orgmode@gnu.org; Fri, 03 Nov 2023 17:55:11 -0400 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c506d1798eso8122721fa.0 for ; Fri, 03 Nov 2023 14:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699048505; x=1699653305; darn=gnu.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8k1lBDUXO6n99DSTw47Cm9e1na8xeoOYdXqe4m7tWIA=; b=NndlRzr+8LgNfgCbi4A0JVY+aD3GkX3XN1Er8g1805W2aK0kh+n/RJUqs2XIGIY1GR 03PL4HB1P5sFjvLkKIet/52TVHu51jaedbmqb6mekwU+ORn9ZtEec+jik+IY8rMdmUn9 g3rIYirtDLXWtuEV3LFNcBmeXSH7NYFYHeEuuTjEWITgR9Lrt/6tlk8ZVpsj2ebruVWY 9uE5aSnlWJclTW9IAc+oYAJ5YlqVma6hGufRyBK8mADzZdq1LGw5gwOAbc7trJSJUA2S OG1XaYkLN9h91X1U9CIwVZ0b8Jnw+QpXPFETcNQwCHH/R+8eetsXLcWiTi2aMYA52rTi 1HNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699048505; x=1699653305; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8k1lBDUXO6n99DSTw47Cm9e1na8xeoOYdXqe4m7tWIA=; b=hzc8Kk5lppoaob8N8fvk+fdqv7tULpEQ6lha4sjBr04w4htOFANYK4MHA+ZJnoGrIp ZfCm81I0XwE2vkTm3gtHVXZ50GwYDgGFW09aYomfK9ki9AJ7tZf3Yqf2/Ms3F0c3vmbs MSddlbJEC2VlTyj2VDcL2Q1mJWAg/q8oBrqLRsA3NwCx2ttAvtZVWm3yRTfRAQITTE2i YamvFKugmgxlyPVSNxhCbMOzcS27YdhDjAmLr1EXN8B6s/ivCHV2pM0ny4Pa1hYRVAih Bc2IgQyEABUTW8YtgVqsWD7U3z97m1J/o3sww4zx16yz2/gpH7CnWDg4/0HXndDMtr+k 6Inw== X-Gm-Message-State: AOJu0Yx+4rJC/x16DonpjmOl8CnCHee5N+9rAzD363kwX4aAfYhkbFnm iIrjJlDZp3MmmMSk9tOhSeiDriUsaDN0Mo1SPgY= X-Google-Smtp-Source: AGHT+IHxKhQuzShSOQXdk+LrIvP0bs5J4kM/2HvrQQynrMbxWUjEJiPkO6tTlOWxSFAoKErVNgR25gq7rUCBJpzu8UY= X-Received: by 2002:a05:6512:3d1d:b0:508:1a9d:d768 with SMTP id d29-20020a0565123d1d00b005081a9dd768mr16837251lfv.4.1699048504350; Fri, 03 Nov 2023 14:55:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aa6:da4a:0:b0:27d:3e6c:86b2 with HTTP; Fri, 3 Nov 2023 14:55:03 -0700 (PDT) In-Reply-To: References: From: Samuel Wales Date: Fri, 3 Nov 2023 14:55:03 -0700 Message-ID: Subject: Re: Exporting Hyperlinks ? To: Max Nikulin Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=samologist@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.42 X-Spam-Score: -8.42 X-Migadu-Queue-Id: AE29014C6F X-Migadu-Scanner: mx13.migadu.com X-TUID: 6US3XUojYP1c to throw a cat among the pigeons, [[file:contacts.org::#custom_id][My text]] made me think of the need for global custom id in addition to a file-specific one like this. idk what a good ui for it would be given all the options we have considered over the years and recently. just thought to bring it up. one thing i dislike is having to specify a file name in #+include or links. too brittle for my taste. you change the file name and the inclusion [transclusion package also?] or link is broken. i'm ok with org id most of the time but suepect global human-readable would be really really useful. imo huge value here. in fact, i think we should allow human-readable id's [/and/ org id's] in non-org files, such as .el. oref seems to do this, but is not part of org and does not use org id db yet, and some might or might not want a different syntax [no opinion]. good concept. as something similar, i found myself using org-link-minor mode all the time for linking together, in comments, parts of .el files, such as comments with distant code or code in another file, or format statements with something that parses them but is for whatever reason not nearby them. and i also linked org with .el so that org would do org things. it made tses and links clickable. id markers [not implemented] would be even better as they would allow instar and outstar formations and unbreakable bidir links and tours/cycles and arbitrary graphs if those turn out to be desired. if desired and not too complex, it could even hook up with the org link insertion and editing mechanism in principle. i did look at hyperbole both old and new, and found almost nothing that i needed there. just personal experience. also, given especially the org-id stuff and other org aspects, i actually think this kind of thing should NOT be a separately-maintained package like oref, but should be a minor mode that is part of the org-maintained codebase. we do already have at least one org minor mode for operating on non-org files. of course, maintainers would have to be on board with it being part of org-maintained code. i just think org should branch out to this minor mode. On 11/3/23, Max Nikulin wrote: > On 03/11/2023 13:29, David Masterson wrote: >> the generated LaTeX href looks like >> >> \href{contacts.tex}{My text} >> >> which looks wrong. > > Search part definitely should be retained. > > I have realized that in the LaTeX world inter-document cross-linking > works differently. With the xr-hyper package, labels from another > document may be used directly or with a prefix: > https://texfaq.org/FAQ-extref > It may be implemented for Org random labels. > > However I would strongly prefer PDF files having stable anchors based on > CUSTOM_ID, not ones derived from section, figure, etc. counters. I am > unsure if there is a package that allows to get such anchors out of the > box. > > When I looked into the code for link targets resolution in the context > of ox-html, I found it rather complicated. > >> I use publish for LaTex (org-latex-publish-to-pdf) > > Depending on your requirements, it might be possible to export to HTML > files and then print them to PDF as a workaround. Chromium supports > headless printing, so it should be scriptable. However to improve > quality of formatting almost certainly heavy customization of CSS. > > I have realized that Chomium scrolls to proper position in PDF when it > opens a file URI with #anchor part, but it does not update tab address > bar when an internal link is clicked and it does not react when URL is > edited to change #anchor part. > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com