From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0Dr0CjQOLGDsPQAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 18:25:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cOO0BjQOLGDEEgAAB5/wlQ (envelope-from ) for ; Tue, 16 Feb 2021 18:25:56 +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 7587D27C41 for ; Tue, 16 Feb 2021 19:25:55 +0100 (CET) Received: from localhost ([::1]:46616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC52o-0001pH-IG for larch@yhetil.org; Tue, 16 Feb 2021 13:25:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC525-0001oP-7T for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 13:25:10 -0500 Received: from mout02.posteo.de ([185.67.36.66]:48855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC522-00077d-Px for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 13:25:08 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 61C16240102 for ; Tue, 16 Feb 2021 19:25:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613499903; bh=LtggBcVGfssOhwD7V7AKenyaEOnPMksLY8HBYU7LrTM=; h=From:To:Cc:Subject:Date:From; b=ArYJoBVIkY9uuM/pO7Zg78fsYqHtiuPCw0geGHJofKXhJ4r0lzWBFDLh1N+TX/4h/ 9QMej6ZSOafc9XHi+JtAGvxNu7iV0O7ohT6xRl/5FgObUlhvfLiR8cDCxmqrnLCRIp NFGQC6U7PGVRH/TmDa6reAZFI7UEnYaG9jWus9L4a5gQdlMLFGJP9UZncS/2Xq+AfL z66Q8QJiY+OTi26oy89xOCbOT0/uuPPb/vOT/tHbb2xezUFc74ZwZHF6wVTW7vzu6J h3d2lnRFo9fZqAPfug8Ljzi4ybMpHmMcH+Aj7oYA6DbBLOuXJxb1k0wO53AXTt0WXT TiH2EopN+ZFcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dg8XG1thkz6tmD; Tue, 16 Feb 2021 19:25:01 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: "Berry, Charles" Subject: Re: [question] lisp code in :results header arg.? References: <87zh040ybv.fsf@posteo.net> <225A3D45-0F47-4FFE-8BBA-F023CB8C9A6C@health.ucsd.edu> Date: Tue, 16 Feb 2021 19:25:01 +0100 In-Reply-To: <225A3D45-0F47-4FFE-8BBA-F023CB8C9A6C@health.ucsd.edu> (Charles Berry's message of "Tue, 16 Feb 2021 17:58:03 +0000") Message-ID: <87wnv7lvk2.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ArYJoBVI; dmarc=pass (policy=none) header.from=posteo.net; 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-Migadu-Queue-Id: 7587D27C41 X-Spam-Score: -2.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: RB8vb0Oje8sU "Berry, Charles" writes: > I think you might do better to use noweb chunks, viz. > > #+name: pre-amble > #+begin_src latex :exports none > > \usepackage{luacode} > \usepackage{fontspec} > \directlua > { > [...] > } > } > \setmainfont{Linux Libertine O} > [RawFeature={+ktest}] > #+end_src > > #+begin_src latex :noweb yes :results drawer > ,#+LaTeX_HEADER: <> > #+end_src > > > Evaluating the latter chunk (assuming `org-babel-load-languages' has (latex . t)) gives what I suspect you want. wow, it works great! Many thanks. I did not know this use of noweb ... Best regards, Juan Manuel