Org-mode mailing list
 help / color / mirror / Atom feed
From: Galaxy Being <>
To: emacs-orgmode Mailinglist <>
Subject: Format babel code block for export?
Date: Tue, 1 Jun 2021 21:03:47 -0500
Message-ID: <> (raw)

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

I have this

#+begin_src haskell :results silent :exports code
maximum'' :: (Ord a) => [a] -> a
maximum'' = foldl1 (\x acc -> if x > acc then x else acc)

but on export to HTML (or LaTex) I'd like to suppress the :{ and :} to just
show the code

maximum'' :: (Ord a) => [a] -> a
maximum'' = 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]

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.

Lawrence Bottorff
Grand Marais, MN, USA

[-- Attachment #2: Type: text/html, Size: 1473 bytes --]

             reply	other threads:[~2021-06-02  2:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02  2:03 Galaxy Being [this message]
2021-06-02  9:42 ` Juan Manuel Macías

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ \
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone