From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MMX8NZbx12J5HgAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 14:14:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KJPNNZbx12LMQgAAauVa8A (envelope-from ) for ; Wed, 20 Jul 2022 14:14:14 +0200 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 7E84A2D922 for ; Wed, 20 Jul 2022 14:14:14 +0200 (CEST) Received: from localhost ([::1]:47746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE8aj-0003lx-2j for larch@yhetil.org; Wed, 20 Jul 2022 08:14:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE8Ze-0003RL-LT for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 08:13:06 -0400 Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]:53314) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE8Za-0002Xd-K9 for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 08:13:06 -0400 Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id C88AF635E3; Wed, 20 Jul 2022 14:12:51 +0200 (CEST) Received: from 90.13.120.204 (unknown [194.254.241.250]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id 4A49CA0E2D; Wed, 20 Jul 2022 14:12:51 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <25303.61762.797550.528829@gargle.gargle.HOWL> Date: Wed, 20 Jul 2022 14:12:50 +0200 From: Alain.Cochard@unistra.fr To: "Fraga, Eric" Cc: "Alain.Cochard@unistra.fr" , Org Mode List , Greg Minshall Subject: Re: Confused about source code blocks evaluation when exporting In-Reply-To: <87edyoxfam.fsf@ucl.ac.uk> References: <25293.28342.763993.795868@gargle.gargle.HOWL> <25293.58381.803841.645075@gargle.gargle.HOWL> <87v8s12sbh.fsf@ucl.ac.uk> <25295.13284.191751.78706@gargle.gargle.HOWL> <87o7xsyxzr.fsf@ucl.ac.uk> <25295.53045.863530.838179@gargle.gargle.HOWL> <87edyoxfam.fsf@ucl.ac.uk> X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu) X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvfedrudelvddghedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepgggtgffkfffhvfevufgjfhforhesthhqredtredtudenucfhrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrnecuggftrfgrthhtvghrnhepfeffheehveelveevgffhjeejffekteefteeiiedtkeelhfefffevheevfeevffelnecuffhomhgrihhnpehsthgrtghkvgigtghhrghnghgvrdgtohhmpdhsthgrtghkohhvvghrfhhlohifrdgtohhmnecukfhppeduleegrddvheegrddvgedurddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehtddphhgvlhhopeeltddrudefrdduvddtrddvtdegpdhmrghilhhfrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrpdhnsggprhgtphhtthhopeegpdhrtghpthhtohepmhhinhhshhgrlhhlsehumhhitghhrdgvughupdhrtghpthhtohepvghmrggtshdqohhrghhmohguvgesghhnuhdrohhrghdprhgtphhtthhopeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdprhgtphhtthhopegvrdhfrhgrghgrsehutghlrdgrtgdruhhk Received-SPF: pass client-ip=194.254.240.33; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout01-ext2.partage.renater.fr X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_MSPIKE_H2=-0.001, 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: , Reply-To: alain.cochard@unistra.fr Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658319254; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=l/2jQ4iRwDSxIputi1mn2yplmkTFouufZao6Vbci0RM=; b=an3apjTB3zQQ5YUg4mpc1Xli7yYD6bKwqs2qI97YWRZqnBv8ab9hatGzv08ElU0OfbDL/T pothDfP3hqyJuvQnYAX6zUB2spSqE8/X6jHyqqAwiBLFLz46HeNLS85fSRq46n1TcrEwVm FvJbXOGP76u97COhzF26J32L8uTHrXxO0FeMRoiQG/VsNWrHMsgtTTxUdv0EcmZgQS3LzK /lE98hqqWQ39oYBdolmZR0MS8Ugr7BVrIlk0u/GWkgmQD8IH5hD1OeSJbjoR15GwHs9wz/ ZgepAVcsnOEy48Sw3DPnl1msKR1VIJNdrwPQ+FA2rWty7ND11kKzPUOjDScqSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658319254; a=rsa-sha256; cv=none; b=cNFBdCPSEYUeezmLP+zd8aA5s7RS2oKh0pKO41uCT7a+wmxpmGuQup2fnVVVI6o78fy0BC UCReBOw3DJxdvGUjRAvYGUKeKRZmYeUHQsEwCoa/WukGX86rMFmJXLhrE2T4S/WYeasr6v IyzZ1zZS3eRVawhd0Rv0KaSutVXPJiMJYWNFDeHZVG33GS97hP8gDwuXxaJa3ixABHHEUT 53aQsNIIduXzTxDhYjUWMGqSfzWe/YQ6Qekc8yUxTX4srl33mU2cEiDNIPqkeAzGi76pOZ 2rynpx1nYfeCwi0HjqKohCZEoZMBHQ5tbxLHiqYnSkcg/f0osXNatTja20b76w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: 7E84A2D922 X-Spam-Score: -1.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7HtnaucojSEG Fraga, Eric writes on Thu 14 Jul 2022 08:35: > On Thursday, 14 Jul 2022 at 10:09, Alain.Cochard@unistra.fr wrote: > > #+begin=5Fsrc emacs-lisp > > (setq org-latex-pdf-process ) > > #+end=5Fsrc > > > > which I want to be evaluated during export but I want neither the = code > > not its results to appear on the exported pdf file. > > > > Maybe there are smarter ways to achieve this goal, but it was an > > opportunity for me anyway to start understanding this evaluation > > business. >=20 > For this kind of setting, I use file local variables and #+bind:. > Evaluating this code snippet during the export process is probably n= ot > what you want. You want it set prior to exporting=3F Thanks a lot. I don't know if I want to set org-latex-pdf-process =5Fduring=5F or =5Fprior=5F exporting. All I wanted to do is to =5Fnot=5F set it in th= e emacs init file, so as to be able to set a specific value depending on whether I was going to use natbib or biblatex, without having to restart emacs. I tried doing something with what you suggest (using #+bind:), but failed: I put the following at the end of my org file (then visited the file again): # Local Variables: # org-export-allow-bind-keywords: t # End: As I was not sure about the bind syntax for the complicated org-latex-pdf-process variable, I tried this first test: #+bind: org-latex-pdf-process "dummy" # (I also tried without the quotes) #+cite=5Fexport: natbib plainnat #+bibliography: cite.bib [cite:@chouet88]=20 And then 'C-c C-e l o'. There is no error but the generated pdf is not correct, because (as mentioned some days ago) org-latex-pdf-process does not have the proper value. In other words, '#+bind:' does not work as expected. (By contrast, if I use "my" method, using #+begin=5Fsrc emacs-lisp :exports results (setq org-latex-pdf-process 'dummy) #+end=5Fsrc then, after 'C-c C-e l o' I get "org-latex-compile: Wrong type argument: sequencep, dummy". ) This post https://emacs.stackexchange.com/questions/47474/setting-variable-for-or= g-mode-html-export looked promising, but it also points to this one https://stackoverflow.com/questions/41964712/how-does-bind-really-works= /42012392#42012392 which looks less so... At any rate, and as I already said, all this business became irrelevant for me once latexmk was installed: no need then to set org-latex-pdf-process. This became only a matter of better understanding some of the org intricacies. Thank you again for your time. --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | [ slot available for rent ]