From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sBW/Kuluv2V5AgEA62LTzQ:P1 (envelope-from ) for ; Sun, 04 Feb 2024 12:03:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sBW/Kuluv2V5AgEA62LTzQ (envelope-from ) for ; Sun, 04 Feb 2024 12:03:05 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lOftlFVn; dmarc=pass (policy=none) header.from=posteo.net; 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=1707044585; a=rsa-sha256; cv=none; b=eokuPTDYjUxmzlf0I/5YUI8cNClt6kVMBmyKZ6Q8Wu4Zr+cq6woMybQkIqJsjzVATyXMA9 gfmbPqkz/mhSbJ3LiGRr2fDYLkLd3eAb6V7mGqtqHkq/wUJJYfI9U8MV4UBSVOt5W7YkYU 8fbZnYRHxPP7Q/EVpErig+ZGEsAByawJI09fhk6HfTcH472T2aeho/saf+RP4e+BCE24mA S1rU4zuHxbfYqBg6VrcjUWTliBO3tHEuOsC8AW03q/qq+SEdSl6+elFMIfejLGhcOwtlXr opLd4Z4XsTBEpLGyDbXHFFHxluRTGvcoGQhh/o+hnxSKDZqbXNMlHG34BeKKyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lOftlFVn; dmarc=pass (policy=none) header.from=posteo.net; 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=1707044585; 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=LEI6DEwvxVDRHpJRPx8gllUA+1YzqXofG+2sQbnJE98=; b=UZoUjSTwV3DPUBgdcSK1Ascga9BU2D0TI2jUrtNAWxrIWCLAqrfakUqkErRk+CJQF5PZ+T oc184hdMBCrh6T2KmXmIKOOpDwFzIbYwAZQLKRqL9+r7QtUZgpNaHGMtzG79w0q41X3A/Q MYY4yBrDuFOtZV2+Yb3uqQRRr9rBXwKsZqUMtyT9MrcnYi8CqtL5ni/6+eN1C3N9EVYRiv /9CajEvVxvHYl8ZMaUXxmkD1rQ3oSZHdi6yjFjkoohvPh0FsZbg5MdBO2to+2pneCd2DhQ EuGveGJeSIXXhXmYJX8isAkGwQdddJUe11wBATtHwM+N3czpYZXSYOT2OwS7dQ== 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 3977676B5D for ; Sun, 4 Feb 2024 12:03:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWaGU-0007vZ-Ii; Sun, 04 Feb 2024 06:02:22 -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 ) id 1rWaGS-0007vM-K0 for emacs-orgmode@gnu.org; Sun, 04 Feb 2024 06:02:20 -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 ) id 1rWaGQ-0006SS-K8 for emacs-orgmode@gnu.org; Sun, 04 Feb 2024 06:02:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DEEA624002D for ; Sun, 4 Feb 2024 12:02:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707044534; bh=/NVmfvcuHd5MnGlHN7TqufUGBWpQ1jNb2xgQdqNBlE4=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:Message-ID: From; b=lOftlFVnsEwEockyaqs7OqASbCWkpD1Pq/y0yUMVbdJT/KNWHeH7OqtWUhi42CvLB rxh+qK5mTJLddsysc9XSZAFElV+gdm2M+GPTvGu7ZPz5dg8k/gmviITwg/2IR6qz/j 3KdtpNN3bwadMlDcSk85o2Hp1cwH2OjPPoUTKWnIsbHUY4dgvdE9PDJsIXj+/+WaVw Gs61LddHyqWNlnczs62PemqDnH+GUH1phw5rcYopD0wpV7s5kUEPmnbemoAXVqiWfZ iTjVagb6dR+jGeiSV2xneuNoU8M4wbwxSWleNn4HsiSympsHLdYuOe4Mcg+ekGwOB9 L/hGQc87948ww== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TSRRV3Y15z6tyd; Sun, 4 Feb 2024 12:02:14 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_61834ef9998a9bc0cd694941825f269a" Date: Sun, 04 Feb 2024 11:02:14 +0000 From: gerard.vermeulen@posteo.net To: Ihor Radchenko Cc: Emacs orgmode Subject: Re: [BUG]: contradictory requirements between resolving links and noweb result block In-Reply-To: <87ttmqsjzq.fsf@localhost> References: <8712e7846134587a2021593191c5f393@posteo.net> <87ttmqsjzq.fsf@localhost> Message-ID: <6d9db4be5d42236391d5c4e530250ee1@posteo.net> Received-SPF: pass client-ip=185.67.36.65; envelope-from=gerard.vermeulen@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_H4=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." 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-Scanner: mx10.migadu.com X-Spam-Score: -7.39 X-Migadu-Queue-Id: 3977676B5D X-Migadu-Spam-Score: -7.39 X-TUID: 8GOa39/qUsV3 --=_61834ef9998a9bc0cd694941825f269a Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 02.02.2024 21:12, Ihor Radchenko wrote: > gerard.vermeulen@posteo.net writes: > >> I want to have a kind of dynamic RESULTS: noweb block to select what >> other block to put in the LaTeX preamble on LaTeX export. >> I can get it working, but in this case links to the RESULTS: noweb >> block >> are not resolved. I found no way to get the links resolved without >> breaking Noweb. See my MWE with instructions below: > > May you please provide more detailed information about your MWE? > What exactly are the steps? What did you expect to happen? What > happened instead? I have turned my MWE into two almost identical MWE's (attached, including a diff), so that LaTeX export output shows the problem. I start with my expectations and then I explain what contains the LaTeX output for mwe-noweb-ok.org and mwe-links-ok.org. * LaTeX export objectives Noweb should work, meaning that the LaTeX output preamble should contain (above \author) the line: #+begin_src latex % Should go to the LaTeX preamble above \author{}. #+end_src Resolving links should work, meaning that the LaTeX output should contain (below \tableofcontents) the line #+begin_src latex Listing \ref{noop}, \ref{make-noweb}, and \ref{make-noweb-result}. #+end_src where all links have user labels. * mwe-noweb-ok Export of mwe-noweb-ok.org to LaTeX shows that noweb works Noweb works, because the preamble contains: #+begin_src latex % Should go to the LaTeX preamble above \author{}. #+end_src Resolving the last link fails, because it has an org-id #+begin_src latex Listing \ref{noop}, \ref{make-noweb}, and \ref{orgd105392}. #+end_src while the caption of the linked listing has a user label. * mwe-links-ok Noweb fails, because the LaTeX output preamble does contain #+begin_src latex \usepackage{hyperref} \author{Gerard Vermeulen} #+end_src without the LaTeX comment. Resolving links works, because the LaTeX output contains #+begin_src latex Listing \ref{noop}, \ref{make-noweb}, and \ref{make-noweb-result}. #+end_src * Problem I can find no configuration where noweb and resolving the link to the noweb block works. Regards -- Gerard --=_61834ef9998a9bc0cd694941825f269a Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=mwe-noweb-ok.org Content-Disposition: attachment; filename=mwe-noweb-ok.org; size=1068 IyAtKi0gb3JnLWxhdGV4LXByZWZlci11c2VyLWxhYmVsczogdDsgb3JnLWxhdGV4LXNyYy1ibG9j ay1iYWNrZW5kOiBsaXN0aW5ncyAtKi0KTGlzdGluZyBbW25vb3BdXSwgW1ttYWtlLW5vd2ViXV0s IGFuZCBbW21ha2Utbm93ZWItcmVzdWx0XV0uCgpCVUc6IGNvbnRyYWRpY3RvcnkgcmVxdWlyZW1l bnRzIGZvciBsaXN0aW5nIFtbbWFrZS1ub3dlYi1yZXN1bHRdXToKMS4gTm93ZWIgd29ya3Mgb25s eSBpbiBjYXNlIFtbbWFrZS1ub3dlYl1dIHdyYXBzIFtbbWFrZS1ub3dlYi1yZXN1bHRdXSB3aXRo CiAgICo6ZXhwb3J0cyBib3RoKi4KMi4gUmVzb2x2aW5nIGxpbmtzIHdvcmtzIG9ubHkgaW4gY2Fz ZSBbW21ha2Utbm93ZWJdXSB3cmFwcwogICBbW21ha2Utbm93ZWItcmVzdWx0XV0gd2l0aCAqOmV4 cG9ydHMgY29kZSouCgojK2NhcHRpb246IE5PT1AKIytuYW1lOiBub29wCiMrYmVnaW5fc3JjIGxh dGV4IDpleHBvcnRzIGNvZGUKJSBTaG91bGQgZ28gdG8gdGhlIExhVGVYIHByZWFtYmxlIGFib3Zl IFxhdXRob3J7fS4KIytlbmRfc3JjCgojK2NhcHRpb246IENoYW5nZSBhZnRlciAxc3QgOmV4cG9y dHMgImJvdGgiIHRvICJjb2RlIiBhbmQgdmljZSB2ZXJzYS4KIytjYXB0aW9uOiBFeGVjdXRlIHRo aXMgYmxvY2sgYWZ0ZXIgY2hhbmdpbmcsIGJ1dCBiZWZvcmUgTGFUZVggZXhwb3J0LgojK2hlYWRl cjogOndyYXAgInNyYyBsYXRleCAtbiA6ZXhwb3J0cyBib3RoIDpub3dlYiB5ZXMgOnJlc3VsdHMg cmF3IgojK25hbWU6IG1ha2Utbm93ZWIKIytiZWdpbl9zcmMgZW1hY3MtbGlzcCA6ZXhwb3J0cyBi b3RoIDpldmFsIG5vLWV4cG9ydAoiIytsYXRleF9oZWFkZXI6IDw8bm9vcD4+IgojK2VuZF9zcmMK CiMrY2FwdGlvbjogSSB0cnkgdG8gcHV0IGxpc3RpbmcgW1tub29wXV0gYm9keSBpbiB0aGUgTGFU ZVggcHJlYW1ibGUuCiMrbmFtZTogbWFrZS1ub3dlYi1yZXN1bHQKIytSRVNVTFRTOiBtYWtlLW5v d2ViCiMrYmVnaW5fc3JjIGxhdGV4IC1uIDpleHBvcnRzIGJvdGggOm5vd2ViIHllcyA6cmVzdWx0 cyByYXcKLCMrbGF0ZXhfaGVhZGVyOiA8PG5vb3A+PgojK2VuZF9zcmMK --=_61834ef9998a9bc0cd694941825f269a Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=mwe-links-ok.org Content-Disposition: attachment; filename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CA6ZXhwb3J0cyBi b3RoIDpldmFsIG5vLWV4cG9ydAoiIytsYXRleF9oZWFkZXI6IDw8bm9vcD4+IgojK2VuZF9zcmMK CiMrY2FwdGlvbjogSSB0cnkgdG8gcHV0IGxpc3RpbmcgW1tub29wXV0gYm9keSBpbiB0aGUgTGFU ZVggcHJlYW1ibGUuCiMrbmFtZTogbWFrZS1ub3dlYi1yZXN1bHQKIytSRVNVTFRTOiBtYWtlLW5v d2ViCiMrYmVnaW5fc3JjIGxhdGV4IC1uIDpleHBvcnRzIGNvZGUgOm5vd2ViIHllcyA6cmVzdWx0 cyByYXcKLCMrbGF0ZXhfaGVhZGVyOiA8PG5vb3A+PgojK2VuZF9zcmMK --=_61834ef9998a9bc0cd694941825f269a Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=mwe.diff Content-Disposition: attachment; filename=mwe.diff; size=815 LS0tIG13ZS1ub3dlYi1vay5vcmcJMjAyNC0wMi0wNCAxMDozNzo0Ny45MTAwOTk3NDggKzAxMDAK KysrIG13ZS1saW5rcy1vay5vcmcJMjAyNC0wMi0wNCAxMDo0NDo0NS4yODAzMTg2NDkgKzAxMDAK QEAgLTE1LDcgKzE1LDcgQEAKIAogIytjYXB0aW9uOiBDaGFuZ2UgYWZ0ZXIgMXN0IDpleHBvcnRz ICJib3RoIiB0byAiY29kZSIgYW5kIHZpY2UgdmVyc2EuCiAjK2NhcHRpb246IEV4ZWN1dGUgdGhp cyBibG9jayBhZnRlciBjaGFuZ2luZywgYnV0IGJlZm9yZSBMYVRlWCBleHBvcnQuCi0jK2hlYWRl cjogOndyYXAgInNyYyBsYXRleCAtbiA6ZXhwb3J0cyBib3RoIDpub3dlYiB5ZXMgOnJlc3VsdHMg cmF3IgorIytoZWFkZXI6IDp3cmFwICJzcmMgbGF0ZXggLW4gOmV4cG9ydHMgY29kZSA6bm93ZWIg eWVzIDpyZXN1bHRzIHJhdyIKICMrbmFtZTogbWFrZS1ub3dlYgogIytiZWdpbl9zcmMgZW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