From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: org mode source code block with a prefix on each line Date: Sat, 21 Nov 2020 16:38:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11055"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 21 16:39:25 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgUyx-0002hd-IW for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 16:39:23 +0100 Original-Received: from localhost ([::1]:52312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgUyu-0005Gq-OL for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 10:39:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgUyL-0005GT-9Y for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 10:38:45 -0500 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:36742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgUyJ-0004wE-R1 for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 10:38:44 -0500 Original-Received: by mail-oi1-x229.google.com with SMTP id d9so14325327oib.3 for ; Sat, 21 Nov 2020 07:38:43 -0800 (PST) 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=2LpyCyMPhLveBvYAmCf3NK26qJr3Z7nFlwQYv0ckJE0=; b=LmuKMu0Z4qGkdq7FcRvrzAEvjn1ibC3CXfZeRRV8m/hCkXNCBGw9PHrvQFcpdcsk0D bsxsENEooseqJO2peliYyVuSQGMixfoijCCsBMF1M69c7s2B0+iCh/WW7ZiL/INMDCCK /FrVBjIqCupSAxz6Yfa2YIZBBrQrpMjzzkq/tvpRJSXplHXT5WgMF1Y7Wojvo+EOW2LF Kqxdhrwjb6hf01TGezhV8lJOc9XJxa3nzRsOqziGm5oVqy+U6xTPKIQbjyaWeB9zdwK9 ZZPKrXMkZeerL3fXod4URDupjUV+YyttZWBo9z2ESfVw6SM4w353qNv2/+H5CYwI8yjL mdnA== 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=2LpyCyMPhLveBvYAmCf3NK26qJr3Z7nFlwQYv0ckJE0=; b=QQRaJkkYH9/LNM8JiHCyQItiuUJH+KiXxKCDrKh54CC1o1MNspgd/l86vP0EsbO21H I8xUfndoytWJF19K9eDMkVZNoHdWQGclgG5Y9xDOnYkraRfuBnbIxwvJRLQCKU/g33gR +LmdOQTJ7rsatS0lVZdzSBVXoRgV6xbcJwoLvzw521+inmNVsi6W0UXMvBkMGR/gVgfn UL8qgNZJYxn7o0M4yn/2b8OrcCofihaCfWP0rJF32glfY0o9PzKOTEONbLhDjDl4VNIV xPBwWi2vZmoj8X6eZQrgtiM9KnptFNXBFzuNNGJIY40Wr5ppuxcG3eLP2hAVs2++Eeyv +I9A== X-Gm-Message-State: AOAM530dp21EimdF3GPASypbk088ySt324i5iYa1R15h3D3TcJVwN9dQ Mb2gbvyTyORvHjXpCPyTDIXf06T4NQW82dlBMmw/WpYG7RQ= X-Google-Smtp-Source: ABdhPJyeVUfRfuji52Rf8u8SWgJGs9cOTsEgn3OUZaII9HCWNM69Dru5uKACypWxomxr+4BncGNa/Rj49hAdZ07DNgc= X-Received: by 2002:a54:4681:: with SMTP id k1mr10210786oic.121.1605973121860; Sat, 21 Nov 2020 07:38:41 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=fluca1978@gmail.com; helo=mail-oi1-x229.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125443 Archived-At: Hi all, I would like to use org mode source code blocks (and results) in my presentations, where I have different shell commands and their respective results. However, I would like to have every line in the source block to be prefixed by a shell prompt, so instead of: #+BEGIN_SRC sh ls /tmp #+end_src something like #+begin_src sh % ls /tmp #+end_src with the evaluation of the code to skip the shell prompt. Is something possible? The reason for that is that when exporting the final document appears, at least to me, much more clear since I can know exactly I'm hitting the shell or the output. Now, if that is possible, is there also any chance to get the shell prompt formatted differently, or at least to have in bold every command and in normal text the shell prompt in the final output (mainly LaTeX)? Thanks, Luca