From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EEaAELRn5GAsAQAAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 16:24:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MEEUDLRn5GAISwAAbx9fmQ (envelope-from ) for ; Tue, 06 Jul 2021 14:24:52 +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 13B2122951 for ; Tue, 6 Jul 2021 16:24:51 +0200 (CEST) Received: from localhost ([::1]:38512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0m0H-0002YW-5Y for larch@yhetil.org; Tue, 06 Jul 2021 10:24:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0lzq-0002YK-C7 for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 10:24:22 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:34365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0lzn-0006bO-GY for emacs-orgmode@gnu.org; Tue, 06 Jul 2021 10:24:22 -0400 Received: by mail-wm1-x336.google.com with SMTP id u5-20020a7bc0450000b02901480e40338bso1653915wmc.1 for ; Tue, 06 Jul 2021 07:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ipzGNTavMzj8dOHpjM0HN+CeZSF5DThajA6F7Qr5CqY=; b=XQoGEA37bhBUTEvfmRsdup0qqgt5BIfcdf/cV8Smc6LwjjGIHuxbMAjEjhGflyabqH p0EZvjMZUQ4cI2x92bQFlngdw2T1cKCbKoOnIletMv0ZTBuimwDlDseIPKQZl1EdG1g8 WjzzunZahc6esi6/gCEi/mB1/fAm+NVvNplyR6EtbMXRA0rAO7FhyV3epC9qPmfCwFUe RAhExZXDhfTePCkRcqJ/8oFV34hDmmuFEiULiBnE7P8RYLKKS5hnHEMgYnS7MDgGvLFJ YgAvp8/tDa4t8AS89HCF+xHcSQ9yLGkyfdlUIpJBMAD0SFG9jepRekzEmfnaUxmByHtn Wbsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ipzGNTavMzj8dOHpjM0HN+CeZSF5DThajA6F7Qr5CqY=; b=Cqn3RQloX1gyBdOgP9PLavn8ImiFJzpwMD+Ce0wPo9xs3inV5RH+lLkEaLtXYXON6J EmBumKaCKTiV8oAKhxVXCudyoZiI/i3osW72gCX/cBkrtHTXvCtoLwH0nmUduIXlZ3bP q7Kvf8pVVpx11nxnUPEEAgUBUD74XFENQwtHR3mw4vTHyhjauwmscCOOeFJZHlEwK9PN Flij+2juz9neZH9vjOPYHRcaCnlSrcjUftHTRN2bB53GdkSjUIj+zDOm4080XM+ElFj/ hs+7d9QaWCMzpfjDfpeD9vpM2UFsoUwgK6pjaw/OPfmb+gMrOfMt+MDF7RBQwgU5pmA+ CXUQ== X-Gm-Message-State: AOAM530tZermRrphRKhup2t6JbdKIRPZhYcB7ChsEpOCWgdzeA36lKOF wH0CXyQ9iIgajTxfnMCcL+bna5CPs5lB1TSdbAE= X-Google-Smtp-Source: ABdhPJwidUXO5ryYDHpfgn/MZ/Qm8Jrlu/hWHZksmlE1cSLzrzDdeZo2oGZix+XT7TiuEHDRdzz8Fgc/llfhrd50xMY= X-Received: by 2002:a1c:8097:: with SMTP id b145mr1105819wmd.54.1625581456572; Tue, 06 Jul 2021 07:24:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Tue, 6 Jul 2021 10:24:05 -0400 Message-ID: Subject: Re: LaTeX-producing code : how to export results to HTML/ODT To: autofrettage Content-Type: multipart/alternative; boundary="00000000000045c45505c6752d9f" Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625581491; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ipzGNTavMzj8dOHpjM0HN+CeZSF5DThajA6F7Qr5CqY=; b=RTneL77q3jTsar9DzPWdTBso8veYJgPz9Z353+PyFyR/AB6D7NhM+do91zIIYGlcawVn7t 0EzKuXIHMy0dQNlbL0mdP7rLZxxwO0gCHsLuRFZ7qamCxdo4M34NT4hgobsc/FP4h43J42 8QLOzCGt/5rkzhaLit2esL7UhbgJUKri9V4Zm7fZGf9tzfnjIxv/HugIczyCNCZLVCnoFt pJavjLdpHiCC6T1WxKbN/t9YwKEtOM78uaHVP7lQuP3XSCRhVev7sn7tWle4Kj69nsEbc4 ASWLsj8PgcqAG3lFVmQqvE5Bhdt1iU+L9x9Cwd2APuMGJJQ8zrmaAvgV8zCrRw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625581491; a=rsa-sha256; cv=none; b=ij5MCVizxolny+eFtPNTsrkV2uxt9kszL2m2lpe0Pual9x0aBnlnaYwAA/VDjfOj1g+qb3 K4mWGYpb6YD7nXijr+D0v0u+r3iZZ4zZ7XeihCLILKR/PoTUJRzX01Uhh9Q/SZQiu2ubOY FURtwJ9rl8X13c1eGHPzNK1qcRZQ9PlfYRA1UoadxeXl5IE9jMGcrfBsroqnJ+Z9vz2eJ5 Zp8LStROlAGvcAKg3LkQIoz6wVHhHcuZ00VYDPDSxlX6SyirpZdemkUnpYHSHDqnF2reFu klPmD0aa9LLhAWoxVx7JPVpen4nPtT+ljVVPL8hjiveLZlJAmbd612P7Hn7CUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=XQoGEA37; 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-Spam-Score: -2.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=XQoGEA37; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); 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: 13B2122951 X-Spam-Score: -2.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: wopw+29gI+Si --00000000000045c45505c6752d9f Content-Type: text/plain; charset="UTF-8" Here is a way way to combine the output with a name/caption. I adapted this from the post-processing section in https://orgmode.org/manual/Results-of-Evaluation.html #+NAME: caption #+BEGIN_SRC sh :var data="" :var caption="" name="" :results output echo "#+name: $name" echo "#+caption: $caption" echo "$data" #+END_SRC Here we have a block that outputs a latex string, for example. #+BEGIN_SRC emacs-lisp :results value drawer :post caption(name="eq-integral", caption="This is an equation.", data=*this*) "$\int_0^2 e^x dx$" #+END_SRC #+RESULTS: :results: #+name: eq-integral #+caption: This is an equation. $int_0^2 e^x dx$ :end: John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Jul 5, 2021 at 1:04 PM autofrettage wrote: > Hi, > > I simply cannot ignore this opportunity to expose my utter Org Mode > ignorance! > > Emmanuel > ... and how to use it with captions, labels and > cross-references. > > I have tried using the code-splicing functionality with some success; The > result from one source code block "foo", can be inserted into another one > with <>. > > If you take away the parentheses, then the source code block "foo" instead > of its results will be inserted. > > Emm.> But I still don't "get" drawers, I thonk. > > You're not alone. > > Rasmus > > --00000000000045c45505c6752d9f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is a way way to combine the output with a name/c= aption. I adapted this from the post-processing section in=C2=A0https://orgmode.org/= manual/Results-of-Evaluation.html

#+NAME: caption#+BEGIN_SRC sh :var data=3D"" :var caption=3D"" name= =3D"" =C2=A0:results output
echo "#+name: $name"
= echo "#+caption: $caption"
echo "$data"
#+END_SRC=


Here we have a block that outputs a latex string, for example.= =C2=A0

#+BEGIN_SRC emacs-lisp :results value drawer :post caption(n= ame=3D"eq-integral", caption=3D"This is an equation.", = data=3D*this*)
"$\int_0^2 e^x dx$"
#+END_SRC

#+RESUL= TS:
:results:
#+name: eq-integral
#+caption: This is an equation.<= br>$int_0^2 e^x dx$
:end:
John

-----------------------------------
Professor John Kitch= in (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering=
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803<= /div>


On Mon, Jul 5, 2021 at 1:04 PM autofrettag= e <autofrettage@protonmail= .ch> wrote:
Hi,

I simply cannot ignore this opportunity to expose my utter Org Mode ignoran= ce!

Emmanuel > ... and how to use it with captions, labels and cross-referen= ces.

I have tried using the code-splicing functionality with some success; The r= esult from one source code block "foo", can be inserted into anot= her one with <<foo()>>.

If you take away the parentheses, then the source code block "foo"= ; instead of its results will be inserted.

Emm.> But I still don't "get" drawers, I thonk.

You're not alone.

Rasmus

--00000000000045c45505c6752d9f--