Skip to content

Commit

Permalink
update latex.htm example
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Apr 28, 2015
1 parent 710fe35 commit 8c0d9c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/latex.htm
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@
if (JSROOT.source_dir.indexOf("http")==0) global_dir = "../../files/";

document.getElementById('debug').innerHTML = '';

if (JSROOT.GetUrlOption('mathjax')!=null)
document.getElementById('debug').innerHTML += "<h1>Drawing with <a href='https://www.mathjax.org/'>MathJax.js</a> rendering</h1>";
else
document.getElementById('debug').innerHTML += "<h1>Drawing without <a href='https://www.mathjax.org/'>MathJax.js</a> rendering</h1>";

document.getElementById('debug').innerHTML += "<h3>JavaScript ROOT version " + JSROOT.version + "</h3>";



JSROOT.Painter.readStyleFromURL();

LoadFile("latex.root", function(file) {
Expand All @@ -65,7 +64,7 @@

}
</script>

</head>

<body>
Expand All @@ -90,7 +89,7 @@ <h3>Examples from <a href="https://root.cern.ch/root/html/TLatex.html#L11">TLate
<h3>Example from <a href="https://root.cern.ch/root/html/TMathText.html">TMathText</a> docu</h3>
<span>Always drawn with MathJax</span>
<div id="lat5_draw"></div>

</body>

</html>
Expand Down

0 comments on commit 8c0d9c4

Please sign in to comment.