• Skip to main content
  • Skip to primary sidebar
…

...

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

  • Home
  • Giới thiệu
You are here: Home / IT / Mathjax: Display math formula for website

Mathjax: Display math formula for website

01/02/2020 tác giả: Mạnh Hùng Leave a Comment

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

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • fun
  • IT
  • News
Hugo website

Building a Modern Website with Hugo: A Complete Beginner’s Guide

Hugo is a powerful static site generator built with the Go programming language. It transforms your templates and content into a blazing-fast static website, perfect for blogs, portfolios, and documentation. Unlike content management systems like WordPress that rely on databases, Hugo builds complete HTML pages that you can host anywhere, often for free. The latest versions of Hugo, such as v0.152.2,

trumvps

TRUMVPS: Sự Lựa Chọn Hàng Đầu Với VPS Giá Rẻ Chất Lượng

TRUMVPS, một nhà cung cấp dịch vụ VPS hàng đầu tại Việt Nam, đang trở thành lựa chọn lý tưởng cho hàng ngàn khách hàng nhờ chất lượng vượt trội và dịch vụ tận tâm.

DMCA.com Protection Status

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