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 ms0.migadu.com with LMTPS id SeTpATHntmAWHAAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 04:04:33 +0200 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 9uIWODDntmC0NwAA1q6Kng (envelope-from ) for ; Wed, 02 Jun 2021 02:04:32 +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 55EC125F20 for ; Wed, 2 Jun 2021 04:04:31 +0200 (CEST) Received: from localhost ([::1]:58094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loGFB-0000AT-L5 for larch@yhetil.org; Tue, 01 Jun 2021 22:04:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loGEl-0000A6-3T for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 22:04:03 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:43981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loGEj-0001d9-1z for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 22:04:02 -0400 Received: by mail-ej1-x634.google.com with SMTP id ci15so1377199ejc.10 for ; Tue, 01 Jun 2021 19:03:59 -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=LjEzZJU3rOlhLAyWBt3iwppKMZXuk/vYfPbq18OngxA=; b=lIV9xoBUhBL2crz3DmN2AiDz8R5B9OXLezS2rcvcSjtSUgpb03NBNQ74KTW2MhJYuP IeBVS0qrKc8ncL1usdALjAHLYm7H3EsErCn9D6dYVcWaqqPSAtTJUxWqfn7VWsGa3BW8 gpN53aADtfwHzZ07VNpF3X6sq9pzn2Ay5BAAnUtVHe4E65agoklIPtn1Vz/FYQt84pei CdltjoUaCdifHZvPxw5pxyifNC8uyMse67rfJyfJGlQ1Hw/4vOv4mNou5mtqDCDd+bK3 CzdDT2yl08dmtIBhPUOWHZBKRzQIdMJHZpZ25bhbMNn0/wodH8lEZCplR3UjFg8Gu5Xq 6Qkg== 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=LjEzZJU3rOlhLAyWBt3iwppKMZXuk/vYfPbq18OngxA=; b=c2fjDOngJv3damUX2mw0ZN8ToioYpNRlP7aRJIXJ9dcu6ssvU26d0iX2iFotIh2T84 EIa2TooVMHFMLeqR+Ada/bhV3bfv/qxvuYTwV0mSlanURvhhVNUuYCsoJnSB7dMaMCGj eyYoIUod+xT2UX0WJ+0yZd5FZbzO5LfK+Hhd/r7SPxJ9pp44srlEPRIHLBx5jMfyY30a r0stJqOwaA1r/GX7Aeo+kW2X/wNVUAjdbOsRgvs/XzrRpsWnZAERBag20w7aBME4nzx5 fPt/UiOHNRkr6RjoZvNBQkEP0qkQYxpRi2VGJpPwN6Bx3sIGkLVjGvtkQdVS5e2SfPye HZGw== X-Gm-Message-State: AOAM530y3qhGgsC1yk54sAI0BiGTM0HkcOhNNHNDQVXwCyQlKThMfDmm 90CyGP985be0lo4B56jCjLaVlSI5aoZ+joc4t1Nq1kJkMvwLuQ== X-Google-Smtp-Source: ABdhPJxVXIrm32uIX6R+KnQhtdAvrxwQ2DxC7W1BttYiOchTywbCgEZonkTcl0YDDNmTyOA0lkoTmKOD8SSbAKWdbQo= X-Received: by 2002:a17:906:5211:: with SMTP id g17mr32336479ejm.281.1622599438079; Tue, 01 Jun 2021 19:03:58 -0700 (PDT) MIME-Version: 1.0 From: Galaxy Being Date: Tue, 1 Jun 2021 21:03:47 -0500 Message-ID: Subject: Format babel code block for export? To: emacs-orgmode Mailinglist Content-Type: multipart/alternative; boundary="0000000000001e9a0f05c3bedff4" Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=borgauf@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_40=-0.001, 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_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: , 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=1622599472; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LjEzZJU3rOlhLAyWBt3iwppKMZXuk/vYfPbq18OngxA=; b=f+62AibCR52DIRNNvKH67sqQwOCfVJ4Mskvt+3LaMIl7bTr+QTkXXPA4S8TrQwXvfDvp97 my/J77hcvQRA0N1FLMsFiX1YP0eazmh2HkXG1VvFWEXuT7ni9TKIy6TsK/3iH7EabSZFSD meLKYhSDc14beqzXcpqRe686PB+PN0dVVClJUS5NFck7voERl2FYrnszo88a5hewevvkwQ cvGtOCoy7L18iuEhCYWiY/P0vzlgPrLT7Q7R4uEWLbdkdbRhrRTCizBx+iPoAM256dlETq g/v6g75QgjA1IQg+9ZnBV9e5dMPTorujnizrwM4WmVWDQH6abLSugf/o1U8PLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622599472; a=rsa-sha256; cv=none; b=KgfIWuBQvSw+4TlWU8MRbV19p++A5X8/NdZosuoZ97TzN9yyJ/RNTCkZ98X+q2pIUf4Ppx SbFiKNM+S4xfcMcG5jqdfC+pBMEv3XQ/cc8AOXZr5i/uP/uDIcOoOtsLCYk9ykDCTSWmn7 VZCiFNiH9QlDMxqF3EZi5qPp7TMniZfhjbwEJ+xIJP5hy4TL7RgwZKgfxk8Ji9owWM11Pe TzDndE5BPk8DHI6OgM542Aj7O+5U1bjzLRDZBht8Q+U8qK/zIsTSYEfAwEVTqAvvgZrR7q HMYjLYPS1v+wnxLFlIpLTVXtVVh3MGTcFXkBiOfd+NX1gttdAdvtQCxeC0PaCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lIV9xoBU; 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-Migadu-Spam-Score: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=lIV9xoBU; 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-Migadu-Queue-Id: 55EC125F20 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: HCLrC/M8lIk6 --0000000000001e9a0f05c3bedff4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 --0000000000001e9a0f05c3bedff4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have this

#+begin_src ha= skell :results silent :exports code
:{
maximum'' :: (Ord a) = =3D> [a] -> a =C2=A0
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 =C2=A0
maximum'' =3D foldl1 (\x acc -> if x > acc t= hen 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 incl= uded, e.g.,

> maximum'' [1,3,5,2= ,4]

I once saw some similar tricks, but I've searc= hed 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
=
--0000000000001e9a0f05c3bedff4--