Skip to content

Instantly share code, notes, and snippets.

@naoyat
Last active October 13, 2015 21:58
Show Gist options
  • Save naoyat/4261928 to your computer and use it in GitHub Desktop.
Save naoyat/4261928 to your computer and use it in GitHub Desktop.
An example of using dvi.js
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>dvi.js demo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://naoyat.github.com/dvi.js/dvi.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://naoyat.github.com/dvi.js/texfonts.min.css"></style>
</head>
<body onload="dvi_load({out:'#out',file:'sample.dvi'});">
<div id="out"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment