sample-eqnum.html 1.9 KB

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