From: Michael Hannon <firstname.lastname@example.org> To: email@example.com Subject: Tag individual output lines from source block? Date: Wed, 25 Jan 2012 18:47:48 -0800 [thread overview] Message-ID: <20120126024748.GA13143@mikehppc.gh.lan> (raw) Greetings. I'd like to know if there is some way to "tag" the output of a source-code block so as to indicate which line of the source-code block produced the output. In the appended example, the results of computing both "myMat" and "diag(myMat)" are juxtaposed. I'm looking for a way to indicate that the first part of the output is from "myMat", and the second is from "diag(myMat)". I understand that I could achieve the effect by using separate source-code blocks and/or just inserting print statements into the source-code block. I just thought that there might be some Org-mode feature that I've overlooked. (And, of course, the situation is not always as simple as in this example.) Thanks, -- Mike #+PROPERTY: session *R* #+PROPERTY: cache yes #+PROPERTY: results output verbatim #+PROPERTY: exports both #+PROPERTY: tangle yes * Test #+BEGIN_SRC R myMat <- matrix(c(1, 2, 3, 4, 5, 6, 7, 8, 9), nrow=3) myMat diag(myMat) #+END_SRC #+RESULTS[3ac776362ed92ae4090c997f1b7b1922ee565681]: : [,1] [,2] [,3] : [1,] 1 4 7 : [2,] 2 5 8 : [3,] 3 6 9 :  1 5 9 Org-mode version 7.8.03 (release_7.8.03.237.g674bb)
reply other threads:[~2012-01-26 2:48 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20120126024748.GA13143@mikehppc.gh.lan \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Tag individual output lines from source block?' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).