<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
      <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
   ]>

<html xmlns="http://www.w3.org/1999/xhtml">


<head>
	<link rel="stylesheet" href="http://www.mathtoweb.com/css/mathtoweb_web.css" type="text/css" />
	<script type="text/javascript" src="http://www.mathtoweb.com/js/mathtoweb.js"></script>
	<title>MathToWeb - Using the Command-line Version</title>
	<link rel="shortcut icon" href="http://www.mathtoweb.com/images/mathtoweb16x16.ico" />
</head>

<body>

<!-- Main Title -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr> <!-- Top title and Home/Contact links -->
	<td id="title_left"><span class="title_font">MathToWeb</span> <span class="com_font">.com</span> <!--<span class="title_section_font">[ Support ]</span>--></td>
	<!--<td id="title_right"><span class="contacts_font"><a class="contacts_font" href="http://www.mathtoweb.com">Home</a><span class="divider">|</span><a class="contacts_font" href="http://www.mathtoweb.com/mathtoweb_support.xml">Support</a><span class="divider">|</span><a class="contacts_font" href="http://www.mathtoweb.com/mathtoweb_pro.xml">MathToWeb Pro</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> </td>-->
</tr>

<!-- Navigation toolbar -->
<!--<tr> 
	<table border="0" class="toolbar">
	<tr>

	<td class="toolbar-unselected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_whats_new.xml">What's&nbsp;New</a></td>

	<td class="toolbar-selected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_users_guide.xml">User's Guide</a></td>

	<td class="toolbar-unselected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_faqs_general.xml">FAQs</a></td>

	<td class="toolbar-unselected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_support.xml">Support</a></td>

	<td class="toolbar-unselected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_download.xml">Download</a></td>

	<td class="toolbar-unselected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_open_source.xml">Open Source</a></td>

	<td class="toolbar-unselected">
	<a class="atoolbar" href="http://www.mathtoweb.com/mathtoweb_pro.xml">MathToWeb Pro</a></td>

	</tr>
	</table>
</tr>-->

</table>


<p class="title-summary">
<span class="title-summary-main">MathToWeb User's Guide</span>  <span class="title-summary-list">using the command-line version of MathToWeb...</span>
</p>

<div style="margin-left: 1em;">

<h3 class="section" id="Using_command_line_version_of_MathToWeb">Using the command-line version of MathToWeb</h3>

<p>
MathToWeb is a Java program and exists in the form of an executable JAR file (mathtoweb.jar). It can
be run in one two ways:

<ul class="run-mathtoweb">
	<li class="run-mathtoweb-choice">
	Place the mathtoweb.jar in the same directory as the text file on which it will act 
	(let us call this directory <b>C:\MathML</b> and the text file that requires conversion to MathML, 
	<b>myLatex.txt</b>)  At the
	command line, make this your current directory and run the program by typing the following command:<br/>
	<code><pre class="run-mathtoweb-command-line">C:\MathML&gt;java -jar mathtoweb.jar myLatex.txt</pre></code>
	</li>

	<li class="run-mathtoweb-choice">
	Place mathtoweb.jar in its own permanent directory, for example, <b>C:\MathToWeb\mathtoweb.jar</b>
	(as above, suppose that our text file is in <b>C:\MathML\myLatex.txt</b>, but now our current directory is <b>C:\</b>). Run 
	mathtoweb.jar by specifying the full or relative path to both the jar and the text file:<br/>
	<code><pre class="run-mathtoweb-command-line">C:\&gt;java -jar C:\MathToWeb\mathtoweb.jar C:\MathML\myLatex.txt</pre></code>
	</li>
</ul>
<div class="small">
Note: If the current directory is not that of mathtoweb.jar (as in the second example above), then 
the path to the JAR must always be specified, either in full or one relative to the current directory.
</div>
</p>

<p>
<a href="javascript:history.back()">&lt;&lt;&nbsp;Back</a><br/>
<!--<a href="javascript:history.back()"><img src="http://www.mathtoweb.com/images/back_link_blue.gif" border=0></a><br/>-->
</p>

</div> 

<p class="copyright">
Copyright &#169;&nbsp;2007-2008&nbsp;&nbsp;MathToWeb.com&nbsp;/&nbsp;<a href="http://www.pwhunter.com">Paul Hunter</a>&nbsp;&nbsp; |&nbsp;&nbsp;<a href="mailto:support@mathtoweb.com?subject=MathToWeb - Question">contact me</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:new_window('http://www.mathtoweb.com/privacy_policy.xml')">privacy policy</a>&nbsp;&nbsp;|
</p>


</body>
</html>


