From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aMu1IAgqvWXsgAEAe85BDQ:P1 (envelope-from ) for ; Fri, 02 Feb 2024 18:44:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aMu1IAgqvWXsgAEAe85BDQ (envelope-from ) for ; Fri, 02 Feb 2024 18:44:40 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UckuGnIm; 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=1706895880; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=s3AeTkN3kbE0zz+8FMpd3gpdzQg6emwqtCT2fZj8ol4=; b=YokoU4CkOWu1aaqg5gQnksl3eckDK/rkDVlXBSjm2YonCswSrJgRG7OzexNY7CDI4jC+Ge NprN57kBoU1HBhzgrS6wuP+5KJKnk5ExQJQP4Cz6KYH+5Mz4yxpNj1vtLNHsvGGaCIPMdE 4XKyADlFvyg6mBGoEsuWve0blRqUQGul0tjLrpStJF2tcwKobmfLnOcXNfyj0Yv7ofIh1Z BuBwsUUMiN5t0seyhTVOigj7ZDAVmEvmIPqYIj+ih/QUDiNz9A0kVIvAwfKpnV35cp52vs 61o0BlInVv60EB8pCto5/asVLWIvNZW0C9R0Nm81JEZIpEAUqVl9zXULeirTGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UckuGnIm; 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=1706895880; a=rsa-sha256; cv=none; b=bXbPvjSh9eCXWaNBn7GdvTDtnwPvRMbDy5mNoTNBf7CNTscgiUqxZSeOsT9Dfl+Wq06y9o xwGNrxHTZu8YUKkPiHXdNIDvS/J6k9GbXtlw13aYdG6KIXfSR8wwZi/pCiyR6tOtQ9XA9N CyVdOsR6KNlfNDSzoDnHEABqK/jQ1xoOV0VWPNe8EcP6nerxe/4BC23V4XrKPrGT9nB9ly D4EFLNQee2nRf5yG3W6ij0/tlCAoVQ187723ys+kbSlyg5N+15+3pQnn3QIZgCaZM+XWaW FrtKMYGXfl/HXtE7JQxLPuRa3sO/sxwRAfUNLZGtoe/FT/btvFlr4BTuHdFjlA== 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 1479F74D81 for ; Fri, 2 Feb 2024 18:44:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVxZl-00062F-LV; Fri, 02 Feb 2024 12:43:41 -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 1rVxZk-000622-7u for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 12:43:40 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVxZi-00050W-Hl for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 12:43:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1954E24010A for ; Fri, 2 Feb 2024 18:43:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706895816; bh=JFauiNXTLwMICmEoNP8+Eh4Rb36Y1OlRFDk3ELzxUnE=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:Message-ID:From; b=UckuGnImggqPwmqhmbgmuxad2zynICl/jhZPbGSA1b6lFlUAZaGywUhD6YlN1axo5 2I7rXHs/4wrtt1PwQ99NYe70Wd3TZHYZVdWoDFw7PRl4w8pH0e283lJNWLeeb9B7R6 rp65g5fGYYPzwMQS1OCY/Egc4rDD+ZfTRwtOVICHWU1T9m2keFf8Lo2qRO+N1PV2g2 YSaaG5dk0TNItz4fjxBzcAP76woR9md8L6ubjItvX2Z76rwmR2L0RdyWa6DAwsf7zY w7BibRc3IFAzCadlFIAhX6iLcu/el6/MTCSKste/zYubSwMaF+Q5XGdtqYfY8g7CaH Fvljx1Myf5evA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TRNRR42yVz6trs; Fri, 2 Feb 2024 18:43:31 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 02 Feb 2024 17:43:31 +0000 From: gerard.vermeulen@posteo.net To: Emacs orgmode , Ihor Radchenko Subject: [BUG]: contradictory requirements between resolving links and noweb result block Message-ID: <8712e7846134587a2021593191c5f393@posteo.net> Received-SPF: pass client-ip=185.67.36.66; envelope-from=gerard.vermeulen@posteo.net; helo=mout02.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-Spam-Score: -7.38 X-Migadu-Queue-Id: 1479F74D81 X-Spam-Score: -7.38 X-Migadu-Scanner: mx11.migadu.com X-TUID: rxSXiNANH+6c Hi, 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: --- begin Org file --- # -*- org-latex-prefer-user-labels: t -*- for easier understanding Listing [[noop]], [[make-noweb]], and [[make-noweb-result]]. #+caption: NOOP #+name: noop #+begin_src latex :exports code % I want to be in the LaTeX preamble above \author{}. #+end_src BUG: contradictory requirements for listing [[make-noweb-result]]: 1. Noweb works only in case [[make-noweb]] wraps [[make-noweb-result]] with *:exports both*. 2. Resolving links works only in case [[make-noweb]] wraps [[make-noweb-result]] with *:exports code*. #+caption: Change after 1st :exports "both" to "code" and vice versa. #+caption: Execute this block after changing, but before LaTeX export. #+header: :wrap "src latex -n :exports both :noweb yes :results raw" #+name: make-noweb #+begin_src emacs-lisp :exports both :eval no-export "#+latex_header: <>" #+end_src #+caption: I try to put listing [[noop]] body in the LaTeX preamble. #+name: make-noweb-result #+RESULTS: make-noweb #+begin_src latex -n :exports both :noweb yes :results raw ,#+latex_header: <> #+end_src --- end Org file --- I realize that this way of doing is contrived. What I like about it, is that the [[make-noweb-results]] is directly visible. I can probably also modify `org-latex-packages-alist' but that is less visible. Regards -- Gerard