I have an HTML file with two text boxes. I need the user input values of those text boxes sent to latex code to be displayed. I went the approach of using
\newcommand
, but I don't know how to reference the HTML. Can anyone help?
Here's a quick HTML script
Code: Select all
<html>
<head>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"</script>
</head>
<body>
<input type="textbox" id="txtCp">
<input type="textbox" id="txtCv">
<br /><br />
<div>
\[k\,=\,\frac{C_p}{C_v}\]
<br />
\[\newcommand{\cvval}{**What do I put here to call textbox txtCv??**}\]
\[\newcommand{\cpval}{**What do I put here to call textbox txtCp??**}\]
\[k\,=\,\frac{\cpval}{\cvval}\]
</div>
</body>
</html>