Code covered by the BSD License  

Highlights from
wikimarkup

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 5.51 KB File ID: #31698
image thumbnail

wikimarkup

by Pavan Mallapragada

 

06 Jun 2011 (Updated 07 Jun 2011)

Generates latex, html, mediawiki, xml code for tables, images, text and matlab structures.

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File  
Everyone's Tags
automatic latex code, html, html tables, latex, latex tables, matrix to latex table, mediawiki, oop(2), wiki, xml
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
07 Jun 2011

Changed description.

Contact us