|
|
Line 1: |
Line 1: |
− | [http://freshwaterpearlspuppetry.com/holidayblog/media/2/topic-2532.htm bring life ringtone] [http://bugboloh.0lx.net/c94hitkp5.html alana evans] [http://awreelwe.at-ninja.jp/319.html wedding locations] [http://peakdocs.com/ac/images/pics/article1079.html inspirational wallpaper border] [http://refrozen.com/gss/img/thumbs/resource-919.html buy diazepam] [http://www.seniorlendersreversemortgage.com/script/files/topic1440.htm white destiny] [http://divertigenio.es/bk_subscription/files/news-152-20090801.html pirate ship video] [http://plelefvda.amigasa.jp/article-124.html e mail list] [http://northerndaylily.com/wpThumbnails/pics/comment-1834.html auto transports] [http://xacnrfum.michikusa.jp/article750.html low cost airline ticket] [http://servpro.ca/complogos/thumbs/topic-1791.html lilo stitch video] [http://fafafaric.biroudo.jp/page-335.html new found glory] [http://fafafaric.biroudo.jp/page-764.html anne bancroft] [http://hiv.gov.gy/tmp/files/article1522.html scott stapp] [http://kwhw.com/cms3/images/pics/article1239.html slapstick] [http://politonomist.com/wp-content/uploads/2007/page-1404.html real life spanking memories] [http://servpro.ca/complogos/thumbs/topic-36.html meat recipe turkey] [http://krifoundation.org/gallery/data/thumbnails/24/pics/topic-1370.htm vive le canada libre] [http://audi-s.net/kprof/data/915/img/news-969.html movie playing now] [http://aleastr.amigasa.jp/page491.html free solitaire game] [http://folkvlvog.ashigaru.jp/article248.html anna malle] [http://krifoundation.org/gallery/data/thumbnails/24/pics/topic-1310.htm wi department of corrections] [http://hiv.gov.gy/tmp/files/article2345.html five axis machining] [http://awreelwe.at-ninja.jp/942.html unsecured debt consolidation loan] [http://plelefvda.amigasa.jp/article-433.html mens jeans] [http://aleastr.amigasa.jp/page957.html reverse phone] [http://fawuafa.konjiki.jp/page184.html cell reverse directory] [http://www.seniorlendersreversemortgage.com/script/files/topic1457.htm horny maid] [http://triexcellence.com/qapro/registration/files/article2232.html legacey] [http://doakoxa.suppa.jp/article780.html breitling replica watch] [http://plelefvda.amigasa.jp/index.html http] [http://wetrocv.ojaru.jp/192.html yuria kato] [http://takasui.net/pta/data/2010.3/files/news-537-2009-08-01.html gallery of guys kissing] [http://miyako-wakamaru.com/main/archives/2009/05/img/eltadel1544.htm african care] [http://refrozen.com/gss/img/thumbs/resource-222.html public service license] [http://e-miroku.jp/attach/files/new806.htm brazil population] [http://freshwaterpearlspuppetry.com/holidayblog/media/2/index.htm index] [http://peakdocs.com/ac/images/pics/article1652.html chemical equations] [http://ioj-japan.org/modules/eguide/css/comment-7.html killer movie song] [http://a1club.net/award/mailform/data/files/article1101.html americas army online crack] [http://servpro.ca/complogos/thumbs/topic-756.html barnett shale] [http://doakoxa.suppa.jp/article89.html discount valium] [http://triexcellence.com/qapro/registration/files/article366.html intense ejaculation] [http://freshwpearls.com/bubbleblog/media/2/570.html mark sanchez video] [http://ioj-japan.org/modules/eguide/css/comment-117.html xbox 2 graphics pic] [http://freshwpearls.com/bubbleblog/media/2/1677.html what is napthalene used for] [http://even.com.au/archives/images/text1741.htm penis enlargment product] [http://fevtroct.wakatono.jp/page74.html photographic competitions] [http://nfveasdoo.tonosama.jp/article-388.html bill consolidation] [http://divertigenio.es/bk_subscription/files/news-1650-20090804.html ridding the bullet movie]
| |
| 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 21:21, 1 September 2009
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.
Latex2wiki.txt
References
This script is based heavily on Latex to Wiki on Qwiki which in
turn was based on latex2twiki.py.