From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cHJ6OV2/Q2X+dgAAauVa8A:P1 (envelope-from ) for ; Thu, 02 Nov 2023 16:25:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cHJ6OV2/Q2X+dgAAauVa8A (envelope-from ) for ; Thu, 02 Nov 2023 16:25:18 +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 74CA265E4D for ; Thu, 2 Nov 2023 16:25:17 +0100 (CET) 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698938717; a=rsa-sha256; cv=none; b=NKtk1d0ns7AP49nviVYL6nbIHu5FL3jKc9vu8bX8SmdyRXgWnMx7qeKak5HrJWFqPzLVg8 TPgNznIODbXd7coVSUMeI+c1xgN5hqxfUphCetCV0JYZ8ipslRQu5N5W9YNYLQX0Eu5uUN UM+ZPkUA1vD+HrG3+SpP5jhFZcFR+h0eXvkZjuXSdZBVZ9phDhlxqKyn3M/cxTGml07W8d xu2wFbriAgX5ZiqZ4b8e9NK5XOZNFwlEba7OrQkNv7k39KNW2AsFYHZ8X27Bulp/uaOxz5 QbKFCMFPHOXIObDK/eD7dCopBqbP7y4MgfW6JwEhQv4yZGCgcWml16UzrElYjg== 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698938717; 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=eq809+ros1UBaXQJvHcsoq6/rnNG+pE5ZytxfLO0RYE=; b=LdAB2J7BRsYfNB7KKTOsr8pqJ+6ZVxJaxIISNTcQgHT4N776q6Yo2PKq4lWdctnGI2BPvs PSRTNKvagvj9Gsk53rhq0fYL1qv0uhwzyQFH48CmyB+t/KnH1hODvGD2/NEjbcwbZRrOUx moOk6K3Pte00XhINtb6j7OB6/PtCRToUQEYnIsy9PKI2vN6hQ3Oq5B/fQlm3Otcd/o7ZI/ 1+PnGVdaX5kpu39KErK/f4boHn50kWfyRnfE5RTDOfZ1uXKpiGWl/MB3sSmT2Vceq8fUL2 1Baltkv+pnel1vvAsMXS2GrigCM56QBOT3lsnqUEHfi4MHrQwOBuNaBROdTczA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyZYb-0002hE-OF; Thu, 02 Nov 2023 11:24:29 -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 1qyZYa-0002gI-4A for emacs-orgmode@gnu.org; Thu, 02 Nov 2023 11:24:28 -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 1qyZYY-00065Y-FW for emacs-orgmode@gnu.org; Thu, 02 Nov 2023 11:24:27 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qyZYV-00044T-6K for emacs-orgmode@gnu.org; Thu, 02 Nov 2023 16:24:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Exporting Hyperlinks ? Date: Thu, 2 Nov 2023 22:24:14 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: 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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 74CA265E4D X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.51 X-Spam-Score: -1.51 X-TUID: 2g/a12MiDv48 On 02/11/2023 09:11, David Masterson wrote: > If I understand what you mean by "anchor", does Org create an anchor in > exporting to Latex when it sees a CUSTOM_ID property in an item? Then, > would the search in the hyperlink reference the anchor? Your examples > weren't precise enough for me to follow. You are right. Despite `org-latex-prefer-user-labels' exists, it currently affects LaTeX label names only, so it is possible to reference them as #page.2, #section.3, but not as #custom_id. ox-beamer however adds \hypertarget{anchor}... for Org <>, so in PDF it can be referenced as #anchor. So ox-latex should be improved to add \hypertarget commands for CUSTOM_ID. Originally I suspected only issues with links. To get links between HTML documents where CUSTOM_ID are not used, it is necessary to rely on org-publish to track autogenerated anchors. I am unsure if publish works for LaTeX. By the way, does Chrome support #anchor within PDF files? I have tried to add various variants of #fragement to file:///tmp/test.pdf, but without success. Bookmarks (table of contents) sidebar and clicking on internal links works however. For the same file xpdf-3 (xpopple) works correctly xpdf test.pdf +page.2 xpdf test.pdf +section.2 xpdf test.pdf +anchor (The last one is added using explicit \hypertarget) P.S. https://en.wikibooks.org/wiki/LaTeX/Hyperlinks