Hi Devon,

As Alex said, to combine text, images, code and code output. And then
export it to pdf, libreoffice, or plain text.

Meanwhile, I found the solution: It seems that org-mode packaged with emacs
doesn't include support for all supported languages, the 'contrib' package
does. After reading this post I installed org-plus-contrib and now J works
like a dream. (And forth too :) )
https://emacs.stackexchange.com/questions/48287/how-to-update-org-mode-through-emacs-package-manager

Below is an example of input and output (in ASCII text)

Best regards,

Dimitri


(input)


* Introduction
This is a piece of text, including a  [[http://www.jsoftware.com][link]] and
** blabla
More text lorem impsum yadayada and executable code

#+begin_src J :exports both
sig=: (%  >:)@:^
sig 5 - ? 4 5 $  10
#+end_src

(ouput in the same bufffer after evaluating the code block)

#+RESULTS:
: 0.268941 0.880797 0.0179862  0.993307  0.880797
: 0.880797 0.993307  0.268941  0.952574 0.0179862
: 0.952574 0.731059  0.268941 0.0474259  0.119203
: 0.731059 0.268941  0.982014  0.119203  0.982014


(output in a separate file/buffer after exporting to ASCII)


1 Introduction
==============

  This is a piece of text, including a [link] and


  [link] http://www.jsoftware.com


1.1 blabla
~~~~~~~~~~

  More text lorem impsum yadayada and executable J code

  ,----
  | sig=: (%  >:)@:^
  | sig 5 - ? 4 5 $  10
  `----

  ,----
  | 0.268941 0.880797 0.0179862  0.993307  0.880797
  | 0.880797 0.993307  0.268941  0.952574 0.0179862
  | 0.952574 0.731059  0.268941 0.0474259  0.119203
  | 0.731059 0.268941  0.982014  0.119203  0.982014
  `----




On Mon, Mar 9, 2020 at 1:30 PM Devon McCormick <devonmcc at gmail.com
<http://jsoftware.com/mailman/listinfo/general>> wrote:


 >* Hi Dimitri -
*>* I'm a big user of J under emacs but it never occurred to me to use org mode
*>* for coding, so I have not done that.  To what end would you be using this
*>* mode to code?
*>* Thanks,
*>* Devon
*>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to