LaTeX Instructions
2 posters
Page 1 of 1
LaTeX Instructions
Create a HTML Page. Here is the code:
<!DOCTYPE HTML>
<head>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
</body>
</html>
Create a new Javascript. Here is the code:
var loadScript = function(url, callback){
var script = document.createElement("script");
script.type = "text/javascript";
if (script.readyState){ //IE
script.onreadystatechange = function(){
if (script.readyState == "loaded" ||
script.readyState == "complete"){
script.onreadystatechange = null;
callback();
}
};
} else { //Others
script.onload = function(){
callback();
};
}
script.src = url;
document.getElementsByTagName("head")[0].appendChild(script);
};
loadScript("http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML", function() {});
Now, in the forums, you can use LaTeX: $$equation$$.
<!DOCTYPE HTML>
<head>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
</body>
</html>
Create a new Javascript. Here is the code:
var loadScript = function(url, callback){
var script = document.createElement("script");
script.type = "text/javascript";
if (script.readyState){ //IE
script.onreadystatechange = function(){
if (script.readyState == "loaded" ||
script.readyState == "complete"){
script.onreadystatechange = null;
callback();
}
};
} else { //Others
script.onload = function(){
callback();
};
}
script.src = url;
document.getElementsByTagName("head")[0].appendChild(script);
};
loadScript("http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML", function() {});
Now, in the forums, you can use LaTeX: $$equation$$.
Re: LaTeX Instructions
Hi,
If you like to create a tutorial please pm a staff member not post it in public.
If you like to create a tutorial please pm a staff member not post it in public.
MrMario- Helper
- Posts : 22186
Reputation : 1839
Language : test
Similar topics
» FAQ's/instructions WITHIN the admin
» need instructions on icons
» How to put chatbox on every page of your forum, SOLVED plus instructions.
» Instructions for uploading to personal album
» I need instructions on how to make forum badges!
» need instructions on icons
» How to put chatbox on every page of your forum, SOLVED plus instructions.
» Instructions for uploading to personal album
» I need instructions on how to make forum badges!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum