From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QMlIEj3K316WWwAA0tVLHw (envelope-from ) for ; Tue, 09 Jun 2020 17:43:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SNwsDj3K317OVQAA1q6Kng (envelope-from ) for ; Tue, 09 Jun 2020 17:43:25 +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 E15039403E9 for ; Tue, 9 Jun 2020 17:43:23 +0000 (UTC) Received: from localhost ([::1]:48542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiiHR-0001Ep-Eo for larch@yhetil.org; Tue, 09 Jun 2020 13:43:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jii3F-0000za-Qr for emacs-orgmode@gnu.org; Tue, 09 Jun 2020 13:28:41 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:35774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jii3E-0003T0-3X for emacs-orgmode@gnu.org; Tue, 09 Jun 2020 13:28:41 -0400 Received: by mail-qt1-x82c.google.com with SMTP id z1so18274992qtn.2 for ; Tue, 09 Jun 2020 10:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=96F0FzLo1aRp6mHb35UzTJw+JXo4f0rFprpVspNQJ0E=; b=Ug6vS/KHQZxDyVueQCjzSRQMfjLNpCFAV+gN8zDAPwIZnKHJV8GvM+csZ/OxhNjIRN U41QZpFyHsxAkR4ZrkgDz/HG3+wf88YRO+IX8Z2g52ZG2+leFi+LH1wscrFFun56cckY 4866MQXCeQk7peBInP9bgMn96f9Yc46O24oOijE6sGr9JElesB4C3VJccEklxpAi0c7J J++NBI56QniR8zuTRxur66wRQwLix8VH6PjTdEZb4nNPxhc9jq4xVbHaIAsK4JJljxmt hPf5iPsYJSv7lB4g6xSYoj11GupcIm9TgxEIBGgmFr5mMWRv44FB3JET3fS7/DRBPRLf rwWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=96F0FzLo1aRp6mHb35UzTJw+JXo4f0rFprpVspNQJ0E=; b=EaNcLFGkVuqc4TBkmDuD1EfQTljp3FBDmPwZVEKH9Y5A2sGA+7aO5Prb2XkUm89afK 2Y/CE7xqhl1b679haZ5PQAGacf3zd+NrNooV6bDEW49kOwzSyuwg2zhT2GrPq6o5gmSb 31PhvGqeNpG0QLYE1sVsk5+P4N322zXNeEJQ29JCBokVOGKfVNgfelRYmC75X7LAfMtr VoK4CdNAj8FHJjoOoTr8ZwsgmIk09F8xdrsyW7MwGdsLrwGWBjFlSXAif0iaDO2wNUvg hrLas81Z7rNTlnxotIhaRRYBfgfI7vg5Jnt8eyeEP7f2OBMEHH6ZLeYqfENcc+e6dyJc HDGQ== X-Gm-Message-State: AOAM532rJi8NlOXeqbCFhWWKvAcwyoHgV4dd/Q7MgOyQhKMStZLlpF76 BEJMiNj4BBS08xznweh4ZsVlHYTSdRldM8ywD+ODQj05YqU= X-Google-Smtp-Source: ABdhPJxVhjvGPGCjzslGesIY+Wd4CQGqdFWCnM/eRbIyqU6s8X0qi/b4Zru42OdYoex6Ifu1Kh/ARZcfS+x/IIGh2Wk= X-Received: by 2002:ac8:3f14:: with SMTP id c20mr30538831qtk.22.1591723717342; Tue, 09 Jun 2020 10:28:37 -0700 (PDT) MIME-Version: 1.0 From: Salomon Turgman Date: Tue, 9 Jun 2020 13:28:13 -0400 Message-ID: Subject: Import Reusable org-babel snippet using #+SETUPFILE To: org mode Content-Type: multipart/alternative; boundary="000000000000c0b8a105a7aa0e5a" Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=sturgman@gmail.com; helo=mail-qt1-x82c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Ug6vS/KH; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -0.21 X-TUID: U3lJaJGh1dkx --000000000000c0b8a105a7aa0e5a Content-Type: text/plain; charset="UTF-8" Hello all, I have created what I hoped was a reusable org-babel snippet that looks like this: #+NAME: simulation #+HEADER: :var cap="DEFAULTCAPTION" :cache yes :eval no-export :var altimage="1_image.svg#img1" #+BEGIN_SRC emacs-lisp :var divid="defid" :var num=1 :results html :exports results (format "cool string that uses parameters %s %s ..." num cap divid altimage (capitalize divid) divid) #+END_SRC I will use this snippet with something like: #+CALL: simulation(cap="bam", num=1, divid="bamid"...) Now, if I include the definition in every org file that I want to use it, everything works well. However, if I include the definition in a central org file that I import using #+SETUPFILE, things break and I don't get the proper output in my html exports. Is there a way that I can "import" that snippet without rewriting it in every file I need it? Thanks in advance! -s- --000000000000c0b8a105a7aa0e5a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I have created wh= at I hoped was a reusable org-babel snippet that looks like this:

#+NAME: simulation
#+HEADER: :var cap=3D"DEFAULTCAP= TION" :cache yes :eval no-export :var altimage=3D"1_image.svg#img= 1"
#+BEGIN_SRC emacs-lisp :var divid=3D"defid" :var num= =3D1 :results html :exports results
(format
"cool string that u= ses parameters %s %s ..."
num cap divid altimage (capitalize divid)= divid)
#+END_SRC

I will use this snippet with = something like:

#+CALL: simulation(cap=3D"bam= ", num=3D1, divid=3D"bamid"...)

Now= , if I include the definition in every org file that I want to use it, ever= ything works well. However, if I include the definition in a central org fi= le that I import using #+SETUPFILE, things break and I don't get the pr= oper output in my html exports.

Is there a way tha= t I can "import" that snippet without rewriting it in every file = I need it?

Thanks in advance!

=
-s-


--000000000000c0b8a105a7aa0e5a--