Re: [O] can't get org-mode noweb tangle to work

2017-12-01 Thread Grant Rettke
On Fri, Nov 24, 2017 at 11:38 PM, Martin Alsinet wrote: > Hello Charlie: > > I have found that I like better to use a combination of tangle and import > instead of noweb syntax. > > #+BEGIN_SRC python :tangle board.py > def init_board(args) > return [[-1 for x in

Re: [O] can't get org-mode noweb tangle to work

2017-11-24 Thread Martin Alsinet
Hello Charlie: I have found that I like better to use a combination of tangle and import instead of noweb syntax. #+BEGIN_SRC python :tangle board.py def init_board(args) return [[-1 for x in range(3)] for y in range(3)] #+END_SRC #+BEGIN_SRC python import sys import os from board import

Re: [O] can't get org-mode noweb tangle to work

2017-11-24 Thread Charles R (Charlie) Martin
Grumble. Okay, this is sorted/ There are amazing numbers of not-quite-right examples on the web. Thanks, Tom, I now have the below, which works. #+TITLE: Console Tic Tac Toe #+SUBTITLE: A Literate Program in EMACS Org-Mode #+AUTHOR: Charlie Martin #+STARTUP: showall #+BEGIN_SRC python :tangle

Re: [O] can't get org-mode noweb tangle to work

2017-11-24 Thread Thomas S. Dye
Aloha Charlie, Charles R (Charlie) Martin writes: > I'm trying to get literate programming with `:noweb` syntax working in > org-mode. I think I'm down to about the minimum case: > > #+TITLE: Console Tic Tac Toe > #+SUBTITLE: A Literate Program in EMACS Org-Mode > #+AUTHOR:

[O] can't get org-mode noweb tangle to work

2017-11-24 Thread Charles R (Charlie) Martin
I'm trying to get literate programming with `:noweb` syntax working in org-mode. I think I'm down to about the minimum case: #+TITLE: Console Tic Tac Toe #+SUBTITLE: A Literate Program in EMACS Org-Mode #+AUTHOR: Charlie Martin #+STARTUP: showall #+BEGIN_SRC python