Skip to content

simonjwright/nuweb.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project supports language-independent literate programming. It's a reimplementation of the nuweb project in Python.

So far, the parts implemented (you may like to refer to the nuweb user guide) are:

  • files (@o and @O)
    • The flag -t is supported (suppress tab expansion within this file)
  • fragments (@d and @D)
  • scraps (delimited by @{ @} only)
  • user-defined identifiers
  • old-style fragment parameters
  • indices @f, @m and @u (I've laid @u out a little differently)
  • @% (anywhere in the document, not just in scraps)
  • @# (put code line at left margin)
  • @@ handling (this one was tricky, and I may not have caught all the cases)
  • switch -l (use the listings package), aliased --listings
  • switch -r (generate hyperlinks), aliased --hyperlinks.

Includes Emacs support in poly-nuweb.el, a minor mode based on https://github.com/polymode/polymode. See its header for installation notes.

About

Literate programming in LaTeX; programming languages of your choice

Resources

Stars

Watchers

Forks

Packages

No packages published