123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Example of defining a macro that autoloads an extension</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <script type="text/x-mathjax-config">
- MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
- MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macros,{
- cancel: ["Extension","cancel"],
- bcancel: ["Extension","cancel"],
- xcancel: ["Extension","cancel"],
- cancelto: ["Extension","cancel"]
- });
- });
- </script>
- <script type="text/javascript" src="../MathJax.js?config=TeX-AMS_HTML-full"></script>
- </head>
- <body>
- <p>
- This page makes <code>\cancel</code>, <code>\bcancel</code>,
- <code>\xcancel</code>, and <code>\cancelto</code> all be defined so that
- they will load the <code>cancel.js</code> extension when first used.
- </p>
- <p>
- Here is the first usage: \(\cancel{x+1}\). It will cause the cancel
- package to be loaded automatically.
- </p>
- </body>
- </html>
|