index.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <!--To run this example from a clone of the repository, run `yarn start`
  3. in the root KaTeX directory and then visit with your web browser:
  4. http://localhost:7936/contrib/copy-tex/index.html
  5. -->
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. <title>Copy-tex test</title>
  10. <script src="/katex.js" type="text/javascript"></script>
  11. <script src="/contrib/auto-render.js" type="text/javascript"></script>
  12. <script src="/contrib/copy-tex.js" type="text/javascript"></script>
  13. <style type="text/css">
  14. body {
  15. margin: 0px;
  16. padding: 0px;
  17. font-size: 36px;
  18. }
  19. #test > .blue {
  20. color: blue;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <h1>Copy-tex test</h1>
  26. <h2>Try copy/pasting some of the text below!</h2>
  27. <p>
  28. Here is some \(\KaTeX\) math: $$ x^2+y^2=z^2 $$
  29. The variables are \(x\), \(y\), and \(z\),
  30. which are all in \(\mathbb{R}^+\).
  31. Q.E.D.
  32. </p>
  33. <script>
  34. renderMathInElement(document.body);
  35. </script>
  36. </body>
  37. </html>