octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

marked m-code 2 png (for latex formulas)


From: Fotios
Subject: marked m-code 2 png (for latex formulas)
Date: Sun, 20 Feb 2011 00:47:08 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; el; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

The attached functions generate png formulas from a file with lines marked as

#f# $ <formula> $ <\n>

More precisely genmarked is a utility that returns a cell array of strings with the parts of interest, that is

$<formula>$

in the case of genpng; it accepts a marker as argument, thus can be used (does Octave have sth similar?) to "parse" files marked with whatever marker in an m-file (or any other simple text file).

You call like

octave:1> genpng ("example")

Any feedback? Tested on Windows 7, does it work on linux/Mac OS X? (it should!) I started doing that having in mind the publish function i wrote previously; to improve the html generation.

Enjoy
/Fotis

Attachment: getmarked.m
Description: Text document

Attachment: genpng.m
Description: Text document

Attachment: example2.png
Description: PNG image

Attachment: example1.png
Description: PNG image

Attachment: example.m
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]