Difference between revisions of "Converting Latex to Wiki"
BoletOvarp (talk | contribs) m (http://dronoubr.0lx.net/nylon-feet-videos.html) |
BoletOvarp (talk | contribs) (http://indronrol.is-the-boss.com/pasvinevi.html) |
||
Line 1: | Line 1: | ||
+ | [http://indronrol.is-the-boss.com/pasvinevi.html enumerate serial ports vb] [http://releltl.0lx.net/20081108-actress-hot-indian.html actress hot indian movie south] [http://flheddin.qsh.eu/basbugca-488.html kanye west video clips] [http://sematild.qsh.eu/resource1498.htm radvideo.exe] [http://lofaako.strefa.pl/article1350.html a hard days night movie review] | ||
[http://dronoubr.0lx.net/nylon-feet-videos.html nylon feet videos] [http://indronrol.is-the-boss.com/eltfipasl.html media player licenses] [http://bukgetert.0lx.net/article-798.htm amateur video of couple fucking] [http://sematild.qsh.eu/resource1086.htm swim butterfly video] [http://fispruil.qsh.eu/news1300.html soldier destinys child video] | [http://dronoubr.0lx.net/nylon-feet-videos.html nylon feet videos] [http://indronrol.is-the-boss.com/eltfipasl.html media player licenses] [http://bukgetert.0lx.net/article-798.htm amateur video of couple fucking] [http://sematild.qsh.eu/resource1086.htm swim butterfly video] [http://fispruil.qsh.eu/news1300.html soldier destinys child video] | ||
This is a script to help convert TeX tags into the correct form for wiki. At the moment the script doesn't handle the <nowiki>\newcommand </nowiki> environment or figures and certain types of tables. [http://www.python.org/ Python] is required. | This is a script to help convert TeX tags into the correct form for wiki. At the moment the script doesn't handle the <nowiki>\newcommand </nowiki> environment or figures and certain types of tables. [http://www.python.org/ Python] is required. |
Revision as of 22:16, 8 January 2009
enumerate serial ports vb actress hot indian movie south kanye west video clips radvideo.exe a hard days night movie review nylon feet videos media player licenses amateur video of couple fucking swim butterfly video soldier destinys child video This is a script to help convert TeX tags into the correct form for wiki. At the moment the script doesn't handle the \newcommand environment or figures and certain types of tables. Python is required.
We are actively working on improving the program and we welcome your input. The code is relatively straight forward to modify and you are welcome to add in your own lines to the code and we will use your updated version, or if you have a request you can add these to the discussion page.
One thing to note is that the code looks for the line \begin{document} and only processes the file after this command. What this means is that if you do not have line you will get a blank document.
Caveat Emptor: This code IS NOT PERFECT. The script will do a lot of the leg work, but expect to make some minor modifications after the script has been run.
Usage
The script is executed using the following syntax:
>python Latex2wiki.py < infile.tex >outfile.wiki
That's really it.
Note that the latex file needs to be of compilable form, especially it needs a \begin{document} as all material before this is ignored.
Capabilities
The script will strip the preamble, \author tags etc. The \itemize environment is also recognized and parsed into a wiki list, however custom bullet types are not supported at the moment. The most important replacements made by the script are the following:
LaTeX | replacement wikitext |
---|---|
\cite{} | ([#References|references]) |
\emph{ txt } | ''txt'' |
\texit{ txt } | ''txt'' |
\texttt{ txt } | =txt= |
\textbf{ txt } | '''txt''' |
\textt{ txt } | =txt= |
\begin{ equation }(*?) or \[ | <center><math> |
\end{ equation }(*?) or \] | </math></center> |
\begin{ eqnarray }(*?) | <center><math><\begin{matrix}> |
\end{ eqnarray }(*?) | <\end{matrix}></math></center> |
\begin{ align }(*?) | <center><math><\begin{matrix}> |
\end{ align }(*?) | <\end{matrix}></math></center> |
\begin{ aligned }(*?) | |
\end{ aligned }(*?) | |
\begin{ subequations }(*?) | |
\end{ subequations }(*?) | |
$ | <math>or </math> |
\begin{verbatim} | <br><code> |
\end{verbatim} | </code><br> |
\[..]section | appropriate wiki heading level |
The Script
For security, python scripts cannot be served off of the wiki. Please change the extension for '.txt' to '.py' after downloading.
References
This script is based heavily on Latex to Wiki on Qwiki which in turn was based on latex2twiki.py.