From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oC4gICPlimWO5gAAkFu2QA (envelope-from ) for ; Tue, 26 Dec 2023 15:37:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +Am0FyPlimWnDgEAe85BDQ (envelope-from ) for ; Tue, 26 Dec 2023 15:37:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703601443; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=tONKwiJFzaE1EScDom75vOVrZW75o32IUKA7noPAn9E=; b=DnWn2WYUObV4rn2Msz2HCpg6wO3R7yZbP249QjGI8NV+FIYDI656E3+4iOlD+YrCcfeCig OAp0OHpQjpL+LeiU1/TAoZN9B1PX1hBL63oUbg3SFX7syfqNue2UUPj5+8awmuVuriR4T9 hRFhojgb5s+VmqPqHT4VUjq9n4ML9fj+ngWIHGMTvtGWz0sJIKrpkt1mpwMTEl7S6pIox/ A4fTtxQubHrpy7Ag/opK+qDj8UYauldVGaIsXFAH+vMC711yjcH9DgBD6PfxTR5Pdb9YTy DYNVEc+vvpMOiYk3STj4BeWagFxX3d8qqO3T4GzTTZkmJNW3jJMRTgrHA4nQJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703601443; a=rsa-sha256; cv=none; b=u7ASElgfIm0RGfuO8TNkarS1ELF2s2Qx+bQAFek67bgy630/ZagVUrou0f17X1t+2jO+V9 l68e7AwYUk1UNCTcywc5nX36H7oN64Edv8jku/lGljx3OteT2T57Rsb99ji/viDzT2Gg9u MDOiIEakKj6+C1oWUeorYBSxzDXt9Ye/cAE6tULIRvKY5S6virwQuOglYqBfgNbMUR6ff7 uxJ0dm633bKXLkeSEpX+7JCc/L9XMIhqSerNkEZFqSh+XZtpLQlx3hto/9pt6/PEIyIy6N HMlRs/O4CQ/34btNBgqh4jY5gQbvl2Eas+CkGEfCPwfEcPXXBRgCL7nsb5ukrQ== 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 E639031D4C for ; Tue, 26 Dec 2023 15:37:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rI8XX-0004kR-18; Tue, 26 Dec 2023 09:36:15 -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 1rI8XV-0004kG-6M for emacs-orgmode@gnu.org; Tue, 26 Dec 2023 09:36:13 -0500 Received: from phubs.tethera.net ([2607:5300:60:3a9d::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rI8XT-0006bx-J3 for emacs-orgmode@gnu.org; Tue, 26 Dec 2023 09:36:12 -0500 Received: from tethera.net (node-1w7jr9sq6r285hb4jzty0djso.ipv6.telus.net [IPv6:2001:569:bbf1:a00:6170:61c6:96ed:fd78]) by phubs.tethera.net (Postfix) with ESMTPS id 5507A180066; Tue, 26 Dec 2023 10:36:09 -0400 (AST) Received: (nullmailer pid 1500292 invoked by uid 1000); Tue, 26 Dec 2023 14:36:07 -0000 From: David Bremner To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= , emacs-orgmode@gnu.org Subject: Re: custom function for org-babel src block export In-Reply-To: References: <87r0jagdg1.fsf@tethera.net> Date: Tue, 26 Dec 2023 06:36:06 -0800 Message-ID: <8734vpvxnt.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:5300:60:3a9d::1; envelope-from=david@tethera.net; helo=phubs.tethera.net 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, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.40 X-Spam-Score: -3.40 X-Migadu-Queue-Id: E639031D4C X-Migadu-Scanner: mx10.migadu.com X-TUID: eMhV6MQ8eaUl Rudolf Adamkovi=C4=8D writes: > How about: > > (defvar stacker-base > "\href{https://www.example.com/stacker/?program=3D%s}{execute on stacke= r}") > > (defun org-babel-execute:stacker (body params) > (format stacker-base=20 > (org-link-encode body '(?? ? ?( ?) ?\n)))) > Thanks, that's a definite improvement on my version. I feel less like I'm fighting org-mode now ;). It just needs the same ":results value latex" to insert properly into the beamer export.