Is it ok to use the "body" part (of questions and answers) to render LaTeX equations for personal use?
In other words is it OK to use it as a LaTeX editor-compiler for non Stack related purposes?
Is it ok to use the "body" part (of questions and answers) to render LaTeX equations for personal use?
In other words is it OK to use it as a LaTeX editor-compiler for non Stack related purposes?
As long as you don't submit the post, I don't see any harm in using the preview functionality of Stack Exchange to test your LaTeX code. But see Concerns about MathJax in proposed new SE editor – at the moment it's unclear whether that will continue to work. Otherwise, we have the Formatting Sandbox which can be used for this kind of stuff.
Note that the language we use here is MathJax, not the real LaTeX. I don't have enough experience to list the most important differences, but you might want to use an (online) LaTeX compiler instead. This question on TeX Meta lists two of them.
For personal use, you could use a template HTML file that accesses MathJax directly. The example template below uses the MathJax website. It also has a commented out portion in the header that you could use if you download MathJax to your computer.
<!DOCTYPE html>
<html>
<head>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50) },
tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
TeX: { equationNumbers: {autoNumber: "all"}, noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } },
Macros: { href: "{}" } },
messageStyle: "none"
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!--
<script type="text/javascript"
src="/home/external_libs/MathJax-2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
-->
</head>
<body>
Type your text here. Example equation:
$$
\sin^2(x) + \cos^2(x) = 1.
$$
</body>
</html>
Then simply view the edited template HTML file in almost any web browser.
If you just need to compile an equation, LaTeX2PNG is an option. As you could probably guess, it converts LaTeX to an image format.