wikimarkup
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
Cite As
Pavan Mallapragada (2024). wikimarkup (https://www.mathworks.com/matlabcentral/fileexchange/31698-wikimarkup), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.