From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CP1QIg1vU19EUQAA0tVLHw (envelope-from ) for ; Sat, 05 Sep 2020 10:57:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qJgoHg1vU19DBgAA1q6Kng (envelope-from ) for ; Sat, 05 Sep 2020 10:57:17 +0000 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 DD40C940365 for ; Sat, 5 Sep 2020 10:57:16 +0000 (UTC) Received: from localhost ([::1]:60020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEVsg-0005L1-50 for larch@yhetil.org; Sat, 05 Sep 2020 06:57:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEVsJ-0005Ks-UA for emacs-orgmode@gnu.org; Sat, 05 Sep 2020 06:56:51 -0400 Received: from mail-eopbgr40069.outbound.protection.outlook.com ([40.107.4.69]:9377 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEVsG-0005xN-Uq; Sat, 05 Sep 2020 06:56:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rb7LO3ie9d06GqDt4Gh3a3a/Z8DDXZEeBATy7pK7l88qQ92I74lRUHGpa+KCIUUOHVDPG60Pxx5NpBqAqZJcU5ezJzRRtQOoifAitcNtqacUrIHmDKJIxsG5JgQVUynl0BSUV4MLuISe8mNDv2L/Jpsi8MVAQuDvVmDwTu7NYrnQGAjW6RX84hAJ/kFdgMhVycp5+kHN4FNG+FdF3H9jBjEUVWvYN1zP0w7DgbIj6OKKkutlMLqess0qQ/saTEKtXDt/oytcjZ3maMufM900UiWIfEjk7XNUpWu8VtyvvfQsTPBAOr4yBxVfWOnJYr5iwn6jKUBQLUxFqg3exqg4UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=erapklz3mP4A+mFY6rS1nUjgRRmSqDZzjNQEliGL1+k=; b=Jb75kyd+0jieUdoflHP7MobBUP8qzYDlTmNTIrIp3a4QymZqxCLAqge529bCYpn3WyLpcip5d+tamWoWuw5qFf4oqskL29MxGTkcQFmy0ubyIE1nfXApoBImU3s1n52L3SIhZDmjofm7HkiTLVKFCSnhEgSeA24natuUmYIZVza+VDqwv8KupE8v+DeT6uFfRNKgndGtinkS0GTqjukfNqvdiA4VOPiLtbfnzO0oChanUHMYG2o9FzUaTPL0uT+nCLFnOTkqOxKRdPp0fQvoRkO8ePUZvC6Dd7mOGoBcUGcF6ExQvDhtOhi5Qvdv3X+OuDRMm6RKLQoCG+1YbOg89g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uniroma3.it; dmarc=pass action=none header.from=uniroma3.it; dkim=pass header.d=uniroma3.it; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma3.onmicrosoft.com; s=selector2-uniroma3-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=erapklz3mP4A+mFY6rS1nUjgRRmSqDZzjNQEliGL1+k=; b=lNOPUfb2ceCAFq007mJ8lfI3UKZpo54nGlRZj3zIst0R6ql3FEJ1QwTM0CEANrVuoYag0yRSoLjlqcHkHwLq4Fm+kO+p8rbaZ5DQQBjU0dLppnWTLdCBlY7096W/U1Yunqz3WnkI4YpNRVV8i0xYek2h1rhFOfviBKGI9zzBvCM= Received: from VI1PR04MB6046.eurprd04.prod.outlook.com (2603:10a6:803:f4::15) by VE1PR04MB7376.eurprd04.prod.outlook.com (2603:10a6:800:1a0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Sat, 5 Sep 2020 10:56:43 +0000 Received: from VI1PR04MB6046.eurprd04.prod.outlook.com ([fe80::8c31:8008:a767:c558]) by VI1PR04MB6046.eurprd04.prod.outlook.com ([fe80::8c31:8008:a767:c558%7]) with mapi id 15.20.3348.017; Sat, 5 Sep 2020 10:56:43 +0000 References: <87lfjd6kmk.fsf@uniroma3.it> <87d0305xgm.fsf@gnu.org> User-agent: mu4e 1.3.9; emacs 27.1 From: Marco Falconi To: Bastien Subject: Re: Bug: Exporting internal link to special latex block [9.3.7 (9.3.7-14-gb2b587-elpa @ /home/lobo/.emacs.d/elpa/org-20200720/)] In-reply-to: <87d0305xgm.fsf@gnu.org> Date: Sat, 05 Sep 2020 12:56:41 +0200 Message-ID: <87wo18fq52.fsf@uniroma3.it> Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0033.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::20) To VI1PR04MB6046.eurprd04.prod.outlook.com (2603:10a6:803:f4::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lobo (84.33.177.75) by ZR0P278CA0033.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15 via Frontend Transport; Sat, 5 Sep 2020 10:56:42 +0000 X-Originating-IP: [84.33.177.75] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73158287-5331-44cb-dec9-08d8518a5fdf X-MS-TrafficTypeDiagnostic: VE1PR04MB7376: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ta9kQ4bQ1Gvf72WwOqLAKaeLFAYzCnmQZiMvJKlFLBkuPUQb6Wsi47ywC1NYpVnJZ9z1C/MgrPtCOkJWQt8rG13Fj+NsxuiJUQ2L1v3H2+YJ+9gZpEnTS4Dk1XKgeS8CiAyf2eKM2eugUiamoO8II9CkZmAsqMx6S1P496wh2BpSxeWxHDjx2YS24fZSZTayS1UXufG+EsEcUPv01aylHzWZ2Gy1pXkzbc7Z79kiF3IryANh3e4xHuIaSHg+xXpClfx3+QiT6nhe6VjC/Ll1dmBC66cN/trLW+Jq/HTij3vrLBsOCAXrBQxFCVvr1NnOieQ+P1ZN0hg05uA6OH6xjw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB6046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(39850400004)(346002)(376002)(136003)(450100002)(6916009)(478600001)(316002)(6486002)(66946007)(4326008)(8676002)(66556008)(66476007)(55236004)(86362001)(52116002)(6496006)(44832011)(786003)(8936002)(2616005)(5660300002)(26005)(956004)(16526019)(2906002)(186003)(36756003)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XJeqJ19mOywGr0fShpDcmKAGLNQ1OroW5BpKOCUEhQFfV0MZTqqcCttjp6PcxTnfej+i700e3JWxweclHkJh+R7uyyMxsOLESddykH/A8Fp6P0P2HDSRrlEQK6YK2wCWXAm5E+CyRprGCCLbItJN+ILfeDVOXZKaQPRGivQ/aRqCHEzx76Ew+iiZD9dEfETJT2wYJvEiI5FY0Pd9ZtCXAUNOLQQtGXj4fPOVl/EdE7WRM/5NkPAL8MA0uMPGtrDqAHqek8IUmAuS68bjA19X413Ga+vKq28Ad12oMwoh/Q+UG2J1P2is0zcuEE36ZdKvtIOG4w4+kPj9g/8eMVi/SNNejlStm3ahWXKTH3HG7NUt6oyf0M6UlwTgQ/vU25gYfDQk2qjcvxRsbV/b6BFQB/um/vRgGK8+kQnQKOtuw/WC/5BhwEDElOSMQ6fLFzCyjU27V70K6glYGBqPMwgkp9yxyFTMA6VB0QRxU69QqahdeO96WLsvT39JprzxzMoi9C5M0pLPjjMLpHKJSKrcc9XoDpA9aRJkezjHWGkUFzrpdKqkIgPdpt0TLwyitn4J7u3Yln5GTj8w+C8lRZY4dvvaSYBh1YZYFnQg3NGJfNKn/N0uAE8GTalnY6rnylwDRczbCv4oxUOcVVii22x9jw== X-OriginatorOrg: uniroma3.it X-MS-Exchange-CrossTenant-Network-Message-Id: 73158287-5331-44cb-dec9-08d8518a5fdf X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB6046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2020 10:56:43.0787 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ffb4df68-f464-458c-a546-00fb3af66f6a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mNNH7zJC9Rffq4RArQWoFgNwqYD/8QS150ax1g7Ik66vmDV1qF+usZm+YPYha+Iu7VOL8NrzlQ6dm4zYKGsd2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7376 Received-SPF: pass client-ip=40.107.4.69; envelope-from=marco.falconi@uniroma3.it; helo=EUR03-DB5-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/05 06:56:44 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=uniroma3.onmicrosoft.com header.s=selector2-uniroma3-onmicrosoft-com header.b=lNOPUfb2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -2.21 X-TUID: KC2eNNaSNjyp Dear Bastien, Thanks for the update. For the moment I have worked around the bug by putting an html-export block in the org file with the correct href when I have to put a link to it. However, it would be very nice if it was solved in org. Also, my preference would be for the exported id to be the one given in the NAME attribute (as it is now), because I use it in the html file to name the theorem environment. Of course this is just my preference, and I would understand if the solution would work in another manner. Best regards, _____ Marco Bastien writes: > Hi Marco, > > Marco Falconi writes: > >> I am trying to export to html a labeled latex special block (a theorem >> environment, defined by #+begin_theorem [...] #+end_theorem ). I have named the theorem with >> >> #+NAME: thm:mv (I also tried with #+LABEL: and the behavior described below does not change). >> >> I have a link to such block later in the body, in the form [[thm:mv]]. The link works >> perfectly in the org file, however it is exported incorrectly to html. >> >> In fact, while the theorem environment gets exported in the html as >> >>
>>

>> [...] >>

>>
>> >> , >> >> the link does not href to "#thm:mv" as expected, but to an auto-generated label: >> >>

>> 1 >>

>> >> I have tried to play around a bit with export options, but to no avail. >> >> Is this a known bug? > > I also confirm this bug. I've had a quick look. It looks like > `org-export-get-reference' get fooled by trying to provide with a "new > reference". I hope Nicolas can have a look because this area of the > code is quite complexe. > > Thanks,