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
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
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
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:
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