• Skip to main content
  • Skip to primary sidebar
…

...

cuộc sống là phải luôn khám phá.

  • Home
  • Music Box
  • Các trang web hay
  • Giới thiệu
  • Liên kết website
Bạn đang ở đây:Trang chủ / IT / Mathjax: Display math formula for website

Mathjax: Display math formula for website

01/02/2020 tác giả: Mạnh Hùng Bình luận >

mathjax
mathjax

Simple integration

Adding MathJax to your web pages is easy to do.

If you are using a Content Management System (like WordPress, Moodle, or Drupal) to generate your web site, there may be a plugin to add MathJax to your site already, e.g., for WordPress or Drupal. You may need to download or activate the plugin, if one is available.

If you are using specialized authoring tools, such as LaTeX or Markdown, they might integrate MathJax out of the box or have plugins, e.g., for LaTeX, Markdown, or even epub.

If you write your own HTML (directly or via a template/theme engine), you can include MathJax by adding this snippet to your page:

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/
tex-mml-chtml.js"></script>

Here’s a pre-populated example on jsbin you can re-use.

Note: the configuration file  tex-mml-chtml.js is a great way to test both TeX and MathML input options at once. You can find leaner combined configuration packages in our documentation.

If you use the snippet above, you will not need to change the version number in the src attribute every time the version of MathJax changes. If you want to always use a specific version, then use a reference like

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.0/
es5/tex-mml-chtml.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.0/
es5/tex-mml-chtml.js"></script>

Các ví dụ:

$$C_v=\frac{k_v\left(1+e\right)}{a\gamma_0}=\frac{k_v}{m_v\gamma_0}$$

$$k=C_kD_{10}^2 (mm/s)$$

$$\log\left[\frac{k}{k_o}\right]=\frac{\Delta e}{c_k}$$

với \(c_k=10^{15}\)

$$ \sigma’ = \sigma – u_w $$

\[n = \frac{e}{{1 + e}}\]
\[e=\frac{V_v}{V_s}\]
\[e=\frac{V_v}{V_s}\]
$$\Phi (y) = \frac {1} {2 \pi i} \int_{2 - i \infty}^{2 + i \infty} \frac {y^{\omega} \mathrm{d} \omega} {\omega \left(1 + \frac {\omega} {(\log x)^{1.1}}\right)^{[ \log x ] + 1}}, x > 1$$
$$\Phi (y) = \frac {1} {2 \pi i} \int_{2 – i \infty}^{2 + i \infty} \frac {y^{\omega} \mathrm{d} \omega} {\omega \left(1 + \frac {\omega} {(\log x)^{1.1}}\right)^{[ \log x ] + 1}}, x > 1$$

Reader Interactions

Để lại bình luận: Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Primary Sidebar

Chuyên mục

  • fun
  • IT
  • News
  • testing

python

Python Basic: Getting to Python (part 4)

In short, Lists are used to store multiple items in a single variable, they are convenient data structures for representing a sequence of data. In that regard, a list is similar to a string, except a string can hold only characters, however, a list can hold any Python object.

python

Python Basic: Getting to Python (part 3)

Python Functions: (user-defined or from libraries) function is a block of code which only runs when it is called, to do a complete job (module), is named, and can be called to execute multiple times at many places in the program. What happens if you don’t use function? What I can think about is repetitive works, hard to debug, hard to expand the whole code, so usually when working on a large project you need to split your code into many small modules.

Tạo một website dễ dàng với Hugo

Hôm nay chúng ta cùng thử generate 1 website với Hugo, theo như lời giới thiệu ở trang chủ “The world’s fastest framework for building websites.”

Steam_logo

DMCA.com Protection Status

Copyright ©2022 · pquan.info - All Rights Reserved ·