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 ms0.migadu.com with LMTPS id mIpvDq9St2CR8QAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 11:43:11 +0200 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 uIbuCa9St2D0IwAAB5/wlQ (envelope-from ) for ; Wed, 02 Jun 2021 09:43:11 +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 81FB92E512 for ; Wed, 2 Jun 2021 11:43:10 +0200 (CEST) Received: from localhost ([::1]:50894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loNP3-0007eL-J8 for larch@yhetil.org; Wed, 02 Jun 2021 05:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loNOh-0007dp-Ck for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 05:42:47 -0400 Received: from mout02.posteo.de ([185.67.36.66]:60077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loNOe-0003QQ-PQ for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 05:42:47 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 8D3CF2400FD for ; Wed, 2 Jun 2021 11:42:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622626961; bh=1A574CPBM5oBlbb89gs8zdWZNlSMzImN4vRpAAL0mes=; h=From:To:Cc:Subject:Date:From; b=jJIsdf9VVLmZNBDfQCb223rXs1/IXgi3d6Hg3DF7mryLpr4S6DXjs11j5zMf6rGUl gMjQwNEzGxlw7jUGJ2Zhc9d09iBf7h7NJa8qn3KfVUzd0pdO+psaDiDL/73cyGxuxE TqfAdBC27zqM8dx49gjTyK9DoVo1t7x/4/XitQjElGmozPA8zki7nQ2AU9Hdcy8iR+ kh2mULddEILCOSMMbKMA7xhB+CfxJHf8mdMUnG9o92T5LWOQYD1IbltLh2jBzDzIeq tEM0xMh19RMcDPH0i9+HIgKj81fj6cbMIUC0LCmk79IzcgFrCMx8URjeP55dLMYBG3 YFg+GVG+2et7w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fw3wZ0y8Cz9rxb; Wed, 2 Jun 2021 11:42:37 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Galaxy Being Subject: Re: Format babel code block for export? References: Date: Wed, 02 Jun 2021 09:42:37 +0000 In-Reply-To: (Galaxy Being's message of "Tue, 1 Jun 2021 21:03:47 -0500") Message-ID: <87o8co61rm.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622626990; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1A574CPBM5oBlbb89gs8zdWZNlSMzImN4vRpAAL0mes=; b=M0bRqbMgOPJgtkQAPpmr6LF0fXkskJvN5kE9AsvsBuiwsrcUY8i8w0EeK6W/UYvnJlS80o 036rRi9mJ80fXcYzuVC00WtFy37YMGf0e5Zmkc7d3IQ0Bh/nN/WpIGFTjKjOW46FslLQCK FABhclaZInRXixXC+SnG1yKs854O6qrupLfGXhAWVKEBstFor+8VhYx67zWLngcPxbaTRg SSIm9ekzgjlcNB4pRI0k9pmnlVdfDMy4JmKEaV0yDNbNgHn0u+luNpwrWq42q+OSIeNbWF bLsxiso2CBDheHKhxequetSWdvlbP1tLOj7vdAnxO7cUuosYQ7nu/6QqrpWDHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622626990; a=rsa-sha256; cv=none; b=PSBJJwRNdfdHoUDA+23EhZhx+nQUTJAPu33C4NtKemRwob40kCdbth4+oUrtiyfkHHYGoH 8R2Q+jyyUn6rat8yPtoMzJri7H94kq7EmA7BIdprTSda0YsxSe5/rWh0JHMkP0ziLl0NeY vO0RvgDlLV7nlDOUaVZEnJWWUI7QYlfRC0/wwj9mwxu9sSAxCCVqWyznnN5WRm8SpxrMTF Id0dcb25y0W9qIhrlHNj+X9azs+VQyXQSgJ8GWLt4sIrAJkWHbSjx958r20RSl56+NSJ5I jywNEbovYduqhAoXTPFHeUNGwhnID2HtK1b0jyokUPsWCgtWloiC6LmYYXRiTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jJIsdf9V; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jJIsdf9V; 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: 81FB92E512 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: MejxPdr1I8Vw Hi Lawrence, You can use multiple blocks and noweb reference syntax (https://orgmode.org/manual/Noweb-Reference-Syntax.html): #+NAME:block1 #+begin_src haskell :results silent :exports none :{ #+end_src #+NAME:block2 #+begin_src haskell :results silent :exports none maximum'' :: (Ord a) =3D> [a] -> a maximum'' =3D foldl1 (\x acc -> if x > acc then x else acc) #+end_src #+NAME:block3 #+begin_src haskell :results silent :exports none :} #+end_src # for export #+begin_src haskell :noweb yes :exports code <> #+end_src # for evaluation #+begin_src haskell :noweb yes :results silent :exports none <> <> <> #+end_src Best regards, Juan Manuel Galaxy Being writes: > I have this > > #+begin_src haskell :results silent :exports code > :{ > maximum'' :: (Ord a) =3D> [a] -> a > maximum'' =3D foldl1 (\x acc -> if x > acc then x else acc) > :} > #+end_src > > but on export to HTML (or LaTex) I'd like to suppress the :{ and :} to > just show the code > > maximum'' :: (Ord a) =3D> [a] -> a > maximum'' =3D foldl1 (\x acc -> if x > acc then x else acc) > > Also, this > > #+begin_src haskell :results verbatim :exports both > maximum'' [1,3,5,2,4] > #+end_src > > I'd like to export the code part with a > REPL prompt included, e.g., > >> maximum'' [1,3,5,2,4] > > I once saw some similar tricks, but I've searched and searched and > can't find them again. There's probably other html export formatting > I'd like too, but if anyone can point me to that mystery doc I'd > appreciate it. > > =E2=A8=BD > Lawrence Bottorff > Grand Marais, MN, USA > borgauf@gmail.com >