wikimarkup is a class to automatically generate latex/wiki/html markup for matlab objects. Currently it supports cell or numeric matrices, images (as filenames) and structures. Adding new syntax is easy too!
Usage: Instantiate the class and start adding tables, images, text etc. Finally you can save the code generated into four different formats.
This is version 0! So, feedback is much appreciated.
(1) CREATE AN OBJECT WITH YOUR DESIRED SYNTAX
w = wikimarkup('html'); % also 'latex', 'mediawiki', 'xml'
(2) ADD YOUR IMAGES/TABLES/STRUCTURES/TEXT/SECTIONS
w.addImage(filename, caption); % caption is optional
w.addTable(matrix, rownames, colnames, caption); % args 2, 3, 4 are optional
w.addStruct(structure);
w.addText(text);
w.addSection(name);
(3) SAVE
w.printWiki(filename); if no filename is given, text is printed onto screen
|