<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.wikiwaves.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=OrtrcHitrv</id>
	<title>WikiWaves - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikiwaves.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=OrtrcHitrv"/>
	<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php/Special:Contributions/OrtrcHitrv"/>
	<updated>2026-04-17T18:44:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Converting_Latex_to_Wiki&amp;diff=9324</id>
		<title>Converting Latex to Wiki</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Converting_Latex_to_Wiki&amp;diff=9324"/>
		<updated>2009-05-21T13:36:28Z</updated>

		<summary type="html">&lt;p&gt;OrtrcHitrv: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;http://www.textcolivartrn.com &lt;br /&gt;
This is a script to help convert TeX tags into the correct form for wiki.  At the moment the script doesn&#039;t handle the &amp;lt;nowiki&amp;gt;\newcommand &amp;lt;/nowiki&amp;gt; environment or figures and certain types of tables.  [http://www.python.org/ Python] is required.&lt;br /&gt;
&lt;br /&gt;
We are actively working on improving the program and we welcome your input. The code is &#039;&#039;relatively&#039;&#039;  straight forward&lt;br /&gt;
to modify and you are welcome to add in your own lines to the code and we will use your updated version,&lt;br /&gt;
or if you have a request you can add these to the discussion page.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;One thing to note&#039;&#039;&#039; is that the code looks for the line &#039;&#039;\begin{document}&#039;&#039;&lt;br /&gt;
and only processes the file after this command. What this means is that if&lt;br /&gt;
you do not have line you will get a blank document. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Caveat Emptor&#039;&#039;&#039;: 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.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
The script is executed using the following syntax:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;python Latex2wiki.py &amp;lt; infile.tex &amp;gt;outfile.wiki&lt;br /&gt;
&lt;br /&gt;
That&#039;s really it.&lt;br /&gt;
&lt;br /&gt;
Note that the latex file needs to be of compilable form, especially it needs a \begin{document} as all &lt;br /&gt;
material before this is ignored.&lt;br /&gt;
&lt;br /&gt;
==Capabilities==&lt;br /&gt;
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.  &lt;br /&gt;
The most important replacements made by the script are the following:&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
!LaTeX !! replacement wikitext &lt;br /&gt;
|-&lt;br /&gt;
|\cite{} || &amp;lt;nowiki&amp;gt;([#References|references])&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\emph{ txt } || &amp;lt;nowiki&amp;gt; &#039;&#039;txt&#039;&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\texit{ txt } || &amp;lt;nowiki&amp;gt; &#039;&#039;txt&#039;&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\texttt{ txt } || &amp;lt;nowiki&amp;gt; =txt=&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\textbf{ txt } || &amp;lt;nowiki&amp;gt; &#039;&#039;&#039;txt&#039;&#039;&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\textt{ txt } || &amp;lt;nowiki&amp;gt; =txt=&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\begin{ equation }(*?)  &#039;&#039;or&#039;&#039; &amp;lt;nowiki&amp;gt;\[ &amp;lt;/nowiki&amp;gt; || &amp;lt;nowiki&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\end{ equation }(*?) &#039;&#039;or&#039;&#039; &amp;lt;nowiki&amp;gt;\] &amp;lt;/nowiki&amp;gt;|| &amp;lt;nowiki&amp;gt;&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\begin{ eqnarray }(*?) || &amp;lt;nowiki&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&amp;lt;\begin{matrix}&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\end{ eqnarray }(*?) || &amp;lt;nowiki&amp;gt;&amp;lt;\end{matrix}&amp;gt;&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\begin{ align }(*?) || &amp;lt;nowiki&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&amp;lt;\begin{matrix}&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\end{ align }(*?) || &amp;lt;nowiki&amp;gt;&amp;lt;\end{matrix}&amp;gt;&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\begin{ aligned }(*?) || &lt;br /&gt;
|-&lt;br /&gt;
|\end{ aligned }(*?) || &lt;br /&gt;
|-&lt;br /&gt;
|\begin{ subequations }(*?) || &lt;br /&gt;
|-&lt;br /&gt;
|\end{ subequations }(*?) || &lt;br /&gt;
|-&lt;br /&gt;
|$ || &amp;lt;nowiki&amp;gt;&amp;lt;math&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;or&#039;&#039; &amp;lt;nowiki&amp;gt;&amp;lt;/math&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\begin{verbatim} || &amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\end{verbatim} || &amp;lt;nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|\[..]section||&#039;&#039;appropriate wiki heading level&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==The Script==&lt;br /&gt;
For security, python scripts cannot be served off of the [[Main Page|wiki]].  Please change the extension for &#039;.txt&#039; to &#039;.py&#039; after downloading.&lt;br /&gt;
&lt;br /&gt;
[[Media:Latex2wiki.txt|Latex2wiki.txt]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
This script is based &#039;&#039;heavily&#039;&#039; on [http://qwiki.caltech.edu/index.php/Converting_LaTex_To_Wiki Latex to Wiki on Qwiki] which in &lt;br /&gt;
turn was based on [http://www.kataplop.net/pub/info/projets/latex2twiki latex2twiki.py].&lt;br /&gt;
&lt;br /&gt;
[[Category:Administration]]&lt;/div&gt;</summary>
		<author><name>OrtrcHitrv</name></author>
	</entry>
</feed>