-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> | ||
<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<head> | ||
<title>zoom box</title> | ||
<!-- Copyright (c) 2011 Design Science, Inc. | ||
License: Apache License 2.0 --> | ||
|
||
<!-- This test verifies zoom box size with HTML-CSS or SVG output. | ||
See issue 59 | ||
https://github.com/mathjax/MathJax/issues/59 --> | ||
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<script type="text/javascript" src="../../header.js"></script> | ||
<script type="text/javascript"> | ||
function preMathJax() | ||
{ | ||
gConfigObject.extensions.push("MathZoom.js"); | ||
} | ||
|
||
function postMathJax() | ||
{ | ||
var jax = MathJax.Hub.getAllJax()[0]; | ||
var math = document.getElementById(jax.inputID+"-Frame"); | ||
if (!math.jaxID) {math = math.childNode} | ||
MathJax.Extension.MathZoom.Zoom(null, math) | ||
|
||
// If the zoom box is large enough, it should render the same with or | ||
// without scroll bars. | ||
document.getElementById("MathJax_Zoom").style.overflow = "auto"; | ||
} | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
$$ | ||
\hspace{3em} | ||
\tag{1} | ||
$$ | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> | ||
<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<head> | ||
<title>zoom box</title> | ||
<!-- Copyright (c) 2011 Design Science, Inc. | ||
License: Apache License 2.0 --> | ||
|
||
<!-- This test verifies zoom box size with HTML-CSS output. | ||
See issue 824 | ||
https://github.com/mathjax/MathJax/issues/824 --> | ||
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<script type="text/javascript" src="../../header.js"></script> | ||
<script type="text/javascript"> | ||
function preMathJax() { | ||
gConfigObject.extensions.push("MathZoom.js"); | ||
} | ||
|
||
function postMathJax() { | ||
var jax = MathJax.Hub.getAllJax()[0]; | ||
var math = document.getElementById(jax.inputID+"-Frame"); | ||
if (!math.jaxID) {math = math.firstChild} | ||
MathJax.Extension.MathZoom.Zoom(null, math) | ||
|
||
if (getQueryBoolean("auto")) { | ||
var zoom = document.getElementById("MathJax_Zoom"); | ||
zoom.style.overflow = "auto"; | ||
} | ||
} | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div style="width:600px"> | ||
$$ | ||
\Rule{400px}{1em}{0px} | ||
\tag{1} | ||
$$ | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters