KDE

[WikiToLearn] Convert codes environment from LaTeX to MediaWiki

We use plasTeX library and our l2mw (LaTeX to MediaWiki) script to parse and manage LaTeX docs. Code is inserted in WikiToLearn within tags. We have to parse code from different environments in LaTeX and insert it in our MediaWiki tag. For example we have to support the listings package (https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings), but also listingsuf8 and minted packages . Remember that formatting options are not important, we only need to read and export the content of these code environments. You have to create a function inside our l2mw script that handles the conversion of code environments. You can find our code at: https://github.com/WikiToLearn/LatexToMediaWiki. You’ll need to install plasTeX lib, downloaded as a Git submodule. Please submit your work as a patch file sufficiently documented. Contact us on the official GCI telegram group (https://telegram.me/joinchat/Ak_xWAFN8iMkNOlzLcCYXQ) or on our irc channel #wikitolearn.

Task tags

  • python
  • mediawiki
  • latex
  • wikitolearn
  • latex2mediawiki

Students who completed this task

Nuno

Task type

  • code Code

Level

Beginner
close

2015