Commits

Author Commit Message Labels Comments Date
edgimar
- rename Pweave -> pweave in all source files
edgimar
- add init method to helloworld processor
edgimar
- cleaned up execution-namespace handling -- namespace is no longer passed as a constructor argument, but rather is set using the use_named_namespace() method of a processor instance.
edgimar
- remove some whitespace
edgimar
- added two processors: a "Hello World" processor example, and a "Legacy Default" processor, which acts like Matti's original version of pweave. The legacy-mode can be enabled with the -L commandline flag.
edgimar
- change extension of file mentioned in readme from .Pnw -> .rst_pweave
edgimar
- use lowercase first letter for 'pweave' in readme
edgimar
- added blurb about autowrap plugin to README
edgimar
- rename first section of README to workaround Bitbucket rst rendering bug
edgimar
- README: added restructuredtext preamble, added empty lines after headings
edgimar
- cleaned up sphinx conf some, removing rst2pdf dependency
edgimar
- updated documentation root document to refer to README file while documentation is brought up-to-date. - updated sphinx conffile to remove compilation warnings
edgimar
- renamed Pweave.py -> pweave.py (my wrist was getting tired) - fixed up the documentation some, so that everything compiles correctly - renamed the Pnw and Plw file extensions to something more comprehensible (.rst_pweave and .tex_pweave) -- sorry MS-DOS users...
edgimar
- autowrap: escape the placeholder during substitution to prevent substituting text within placeholders.
edgimar
- added AutoWrap plugin, for automatically wrapping certain parts of a codeblock (really should be called a 'pweave text block') with other text -- for now, it is geared towards use in LaTeX, wrapping things with LaTeX commands. It can and will be made more extensible for general use in the future. As an example of what a pweave-text-block might look like (note that the '!!' is to prevent wrapping of what directly follows): <<p=autowrap, mathbf_wrapped=I#R#Q#x, boldsymbol_wrapped=\Lambda>>= M_2 &= x_1^T I Q_1 \Lambda^{-1} Q_1^{-1} I x_1 && \te!!xt{because \(R\) is unitary} @ Now, anyone in their right mind should immediately see that this is quite cool. ;)
edgimar
- default plugin: place matplotlib-generated images in correct folder
edgimar
- make default image output directory "pweave_images" to avoid polluting the "images" directory with generated files. Also makes it easier for Makefiles to have a 'clean' target that removes pweave-generated images.
edgimar
- a bit more documentation added to the README
edgimar
- attempt to create output directories in case they don't exist
edgimar
- rename cmdopts dict in a couple functions -> settings
edgimar
- allow setting base output directory from commandline - rename 'cmdline_opts' dict -> 'settings', 'img_path'->'imgfolder_path' - postprocess settings dict to normalize/absolutize/relativize paths - use relative path to image in LaTeX \includegraphics statement
edgimar
- rename some option-keys: figdir -> img_path, figfmt -> img_format - small other cosmetic changes
edgimar
- slight cleanup of commandline option descriptions; tex is now default source format (because I use it most often) -- perhaps a user-configuration file could be something useful in the future. - bugfix: check length of commandline argument before attempting to use
edgimar
- removed all use of global variables -- all commandline options and arguments are passed using one single common dictionary. - print help if no commandline options given
edgimar
- allow a block to be "commented out" by setting the first character of its option-string to '#'. If for some reason one really wants to be able to have an option or a codeblock-label that starts with '#', it can just be preceded by a space.
edgimar
- allow text following codeblock header (e.g. for comments) -- currently nothing after the header (i.e. after '>>=') on the header line is parsed/used by pweave.
edgimar
- don't crash if a plugin module hasn't defined the CodeProcessor class
edgimar
- add process_foreign() method to CodeProcessor() -- makes it easy to chain other processors together inside a processor implementation.
edgimar
- moved a section of DefaultProcessor into more local-scope
edgimar
- added height option to figure plugin
  1. Prev
  2. Next