Difference between revisions of "PsTricks export"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | + | A very recent version of psTricks is recommended, since the colour attribute 'opacity' is required. | |
<jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt" /> | <jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt" /> | ||
<html> | <html> | ||
<form> | <form> | ||
− | <input type='button' value='Export as psTricks' onclick=' | + | <input type='button' value='Export as psTricks' onclick='document.getElementById('pstricksOutput').innerHTML = JXG.PsTricks.convert(,board);'> |
</form> | </form> | ||
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;"> | <div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;"> | ||
Line 9: | Line 9: | ||
</html> | </html> | ||
− | === | + | ===HTML/JavaScript code=== |
<source lang="xml"> | <source lang="xml"> | ||
<jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt" /> | <jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt" /> | ||
<html> | <html> | ||
<form> | <form> | ||
− | <input type='button' value='Export as psTricks' onclick=' | + | <input type='button' value='Export as psTricks' onclick='document.getElementById('pstricksOutput').innerHTML = JXG.PsTricks.convert(board);'> |
</form> | </form> | ||
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;"> | <div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;"> |
Revision as of 13:05, 8 June 2011
A very recent version of psTricks is recommended, since the colour attribute 'opacity' is required.
HTML/JavaScript code
<jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt" />
<html>
<form>
<input type='button' value='Export as psTricks' onclick='document.getElementById('pstricksOutput').innerHTML = JXG.PsTricks.convert(board);'>
</form>
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;">
</div>
</html>