sample-eqnum.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>MathJax Equation Numbering</title>
  5. <!-- Copyright (c) 2012-2017 The MathJax Consortium -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <script type="text/x-mathjax-config">
  10. MathJax.Hub.Config({ TeX: { equationNumbers: {autoNumber: "AMS"} } });
  11. </script>
  12. <script type="text/javascript" src="../MathJax.js?config=TeX-AMS_HTML"></script>
  13. <style>
  14. h1 {
  15. background: #CCCCCC;
  16. padding: .2em 1em;
  17. border-top: 3px solid #666666;
  18. border-bottom: 3px solid #999999;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <center>
  24. <h1>A test of Equation Numbering</h1>
  25. </center>
  26. <div style="padding:0 2em">
  27. <hr>
  28. Equation:
  29. \begin{equation}
  30. E = mc^2
  31. \end{equation}
  32. Equation*:
  33. \begin{equation*}
  34. E = mc^2
  35. \end{equation*}
  36. <hr>
  37. Brackets:
  38. \[E = mc^2\]
  39. Brackets tagged:
  40. \[E = mc^2\tag{x}\]
  41. <hr>
  42. Split:
  43. \begin{equation}
  44. \begin{split}
  45. a& =b+c-d\\
  46. & \quad +e-f\\
  47. & =g+h\\
  48. & =i
  49. \end{split}
  50. \end{equation}
  51. <hr>
  52. Multline:
  53. \begin{multline}
  54. a+b+c+d+e+f+g\\
  55. M+N+O+P+Q\\
  56. R+S+T\\
  57. u+v+w+x+y+z
  58. \end{multline}
  59. Multline*:
  60. \begin{multline*}
  61. a+b+c+d+e+f+g\\
  62. M+N+O+P+Q\\
  63. R+S+T\\
  64. u+v+w+x+y+z
  65. \end{multline*}
  66. <hr>
  67. Gather:
  68. \begin{gather}
  69. a_1=b_1+c_1\\
  70. a_2=b_2+c_2-d_2+e_2
  71. \end{gather}
  72. Gather*:
  73. \begin{gather*}
  74. a_1=b_1+c_1\\
  75. a_2=b_2+c_2-d_2+e_2
  76. \end{gather*}
  77. <hr>
  78. Align:
  79. \begin{align}
  80. a_1& =b_1+c_1\\
  81. a_2& =b_2+c_2-d_2+e_2
  82. \end{align}
  83. Align*:
  84. \begin{align*}
  85. a_1& =b_1+c_1\\
  86. a_2& =b_2+c_2-d_2+e_2
  87. \end{align*}
  88. Align:
  89. \begin{align}
  90. a_{11}& =b_{11}& a_{12}& =b_{12}\\
  91. a_{21}& =b_{21}& a_{22}& =b_{22}+c_{22}
  92. \end{align}
  93. Align with \notag and \tag:
  94. \begin{align}
  95. a_{11}& =b_{11}& a_{12}& =b_{12}\notag\\
  96. a_{21}& =b_{21}& a_{22}& =b_{22}+c_{22} \tag{y}
  97. \end{align}
  98. Align* with \tag:
  99. \begin{align*}
  100. a_1& =b_1+c_1\tag{z}\\
  101. a_2& =b_2+c_2-d_2+e_2
  102. \end{align*}
  103. </div>
  104. </body>
  105. </html>