From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
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 eKyXILhWS2VsJgEAG6o9tA:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 08 Nov 2023 10:36:56 +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 eKyXILhWS2VsJgEAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 08 Nov 2023 10:36:56 +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 4A28742C05
	for <larch@yhetil.org>; Wed,  8 Nov 2023 10:36:56 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=Dh4i4lGp;
	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=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1699436216;
	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=8tnoo9oChY7lNojhzRqfkhocGnI1cuOSkbbLCypTwDk=;
	b=A+LRLKbTYWTf2Q9mm5CV+GnPw0rTmXrH0kDqEio5NlfWWhWZgLd4qhM2vuOJCZB4uK55hQ
	NF8ueXhzI2W12Q9zM6ALCqEUSA+BdxxGnnUXF4dTIEN0GDfsYZAm2tF4uMKURFKDztri/d
	vfNyeM254j1bZ5Xq+nc55RcI53UdUGBmivOEkSkih29KCACC6ID3GFKvBzV6uv5i9bF0gS
	dkbZTDICkxrgHktOVmpNcsqW6ErIp179i80Dz/eS0v20VUtIMb51t6Fj1wWdRosvuHK9Mj
	n/vn7+zQwvSBBWAfkapK7q9W0ZHMyj8AnrF4fswOMLrDUQPFateglkIItXyP5g==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=Dh4i4lGp;
	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=posteo.net
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699436216; a=rsa-sha256; cv=none;
	b=E7/swU/hs6BYO5jDa6r9m57iDMLUdQ69iThpuDshsfY9DZ8dRqNP0qHGC/uTQF1k5+kKKU
	IrWaRqGGoxb4iflB2vYZk8O75O22uOxiSBl3KZ9LB0GjYBtnin8rKgQfandxvARnXRjmHI
	rB6gFS6xmtTM9nsgF+Jwyf2vjteBYIkYHqSDlKf4HIRr7W3hed4KHbP0Hd1+/CRqZSkYOY
	SwuuaJ+S13fFdQwbAK4EBBmYBj9aHZtJElILUDzCrrUtM/eyx8rICh92rraOxQ9kDngSsY
	8tbIOr4HnHuIYY7v2SSKaDvN7Dz7cVl58JdFXtWPXnlj9kPKCM6lOIeuvRPz2A==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1r0eyb-0003EN-DG; Wed, 08 Nov 2023 04:35:57 -0500
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 <yantar92@posteo.net>)
 id 1r0eyZ-0003E2-C7
 for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 04:35:55 -0500
Received: from mout01.posteo.de ([185.67.36.65])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1r0eyW-00074Y-8w
 for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 04:35:55 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id ED67C240029
 for <emacs-orgmode@gnu.org>; Wed,  8 Nov 2023 10:35:49 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1699436150; bh=KQlB5FWQ00D2TAoZMJ8j/9xQCendIZHPJAcJqQ4AWCc=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=Dh4i4lGpr/Sal0ZwuZ4ux5Ju4rTxYo2TI9B2yYNi3O7X7fCqMKquuVb0UCSTpYA78
 tu3ubTCaGye/lORV53fwhGaCKrvvmB5KxyX7IU4Oljiy/ddxplmvN3k+5+dWKW5G3I
 Xg+aLpNpBwTWt84ghx4TVcXzP3mzB22Boq1UaWNLx5NI+lG2swGtqYzpaNZAHTqTVW
 Ot44PuDuhwA2phH4KWJQZCYFnQJPfa5ZnPVA2cVPL4OBhjnRWB7okxiqS8PHNozqQG
 G9PC1gXxqPZi9luS2HyLHj6TZjX6VrpfB38bqitckwNGU1V0Z2xx9v5qdx0SvVlhGp
 0TRytmi8oa6Kw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4SQKhP0f4Hz6tm4;
 Wed,  8 Nov 2023 10:35:48 +0100 (CET)
From: Ihor Radchenko <yantar92@posteo.net>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting Hyperlinks ?
In-Reply-To: <uidp6q$ds5$1@ciao.gmane.io>
References: <LV8P223MB0920555726BFCD18F103B1BAA2A7A@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM>
 <uhtupk$uug$1@ciao.gmane.io>
 <LV8P223MB0920B4BF1D7B74EA28F1CE02A2A6A@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM>
 <ui0ev0$elj$1@ciao.gmane.io>
 <LV8P223MB0920CAA6DB6B5FCC84C67ECBA2A5A@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM>
 <ui2iu4$5a1$1@ciao.gmane.io>
 <CAJcAo8upgrQ37h9diXUxoJPGQXJiBp9q_j1iJMMfb3684+Tr_g@mail.gmail.com>
 <ui4qpr$jq2$1@ciao.gmane.io> <87y1fc4bog.fsf@localhost>
 <LV8P223MB09206E3F5D00BFFD85E8AC5EA2ABA@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM>
 <875y2f43yg.fsf@localhost>
 <be3f4624-ed33-4d29-a0a5-06feebeab400@gmail.com>
 <87a5rpoi4c.fsf@localhost> <uidp6q$ds5$1@ciao.gmane.io>
Date: Wed, 08 Nov 2023 09:37:54 +0000
Message-ID: <87h6lwfuvh.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net;
 helo=mout01.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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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: -5.31
X-Spam-Score: -5.31
X-Migadu-Queue-Id: 4A28742C05
X-Migadu-Scanner: mx13.migadu.com
X-TUID: e/nL2X4ix/A7

Max Nikulin <manikulin@gmail.com> writes:

>> If \href{file.pdf#anchor} can work, we should indeed use it when
>> publishing org->pdf.
>
> It would be nice to have a LaTeX package that redefines \label to 
> generated \hypertarget from its argument.

Can't we simply generate a pair of \label + \hypertarget when generating
.tex files in ox-latex? This way, we can make sure that labels in
Org-generated pdfs will be linkable from outside world.

> Ideally, xr-hyper workflow should be supported as well. A downside is 
> anchors are not stable and unrelated to labels.

I think that generating \hypertarget + converting .org file links to
.pdf links will already be a good improvement.

Using xr-hyper requires knowledge of external files we link to and thus
can only be used during publishing, where we have all the information
about multiple exported Org documents available.

> P.S. (info "(org) Publishing")
> declares that conversion to PDF is supported.

It is indeed supported. But not with all the features HTML export
provides. Cross-references is one of the missing features in PDF
publishing.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>