MathJax
MathJaxλ λ§ν¬λ€μ΄ κΈ°λ°μ μ¬μ΄νΈμμ λ리 μ¬μ©λλ $\LaTeX$ μμ λ λλ§ JS λΌμ΄λΈλ¬λ¦¬μ
λλ€.
μ΄ ν¬μ€νΈλ μ κ° MathJaxλ₯Ό μ¬μ©νλ©΄μ κ²½νν κ²λ€κ³Ό λμμ΄ λ μλ£λ€μ μ 리νλ ν¬μ€νΈμ
λλ€ :)
MathJax 곡μ λνλ¨ΌνΈ
- TeX and LaTeX math delimiters1
- λ§ν¬λ€μ΄ λ΄μμ MathJax λ λλ§μ μ°λ
$μ λ¬λ¬λ₯Ό νμν λ μ°λ $μ ꡬλΆμ λν λ¬Έμμ λλ€.processEscapes: trueλ‘ ν΄κ²°ν μ μμ΅λλ€.
- λ§ν¬λ€μ΄ λ΄μμ MathJax λ λλ§μ μ°λ
- The TeX/LaTeX Extension List
- equation numberingμ μν΄
amsextensionμ μ¬μ©νκΈ°λ ν©λλ€.
- equation numberingμ μν΄
- Automatic Equation Numbering
tag: amsμ\begin{equation} ... \end{equation}ꡬ문μ μ΄μ©ν΄ μ μ©ν μ μλ€.
LaTeX / MathJax λ¬Έλ²
λͺ¨λ μ μ§λ μκ³ , ν·κ°λ¦¬λ λ¬Έλ²λ§ μ λλ‘ νκ² μ΅λλ€.
- μ€κ΄νΈ
{ }:inlineMathvs.displayMathinlineMath:\\{ ... \\}μΌλ‘ μ¬μ©displayMath:\{ ... \}μΌλ‘ μ¬μ©
- Scalable μ€κ΄νΈ
ininteMath:\left\\{ ... \right\\}displayMath:\left\{ ... \right\}- EX) $\left\{\dfrac{x}{y}\right\}$
- λΆμ; fraction
\frac{}{}: $\frac{x}{y}$\dfrac{}{}: $\dfrac{x}{y}$\tfrac{}{}: $\tfrac{x}{y}$\fracκ³Ό\tfracμinlineμμ κ±°μ μ°¨μ΄κ° μ λκ³ ,displayμμλ μ°¨μ΄κ° λͺ νν λνλλ€.- λ°λ©΄μ
\dfracκ³Ό\fracμdisplayμμ κ±°μ μ°¨μ΄κ° μ λλ€.
οΌ (display) frac
\[\frac{x^3+5x^2+4}{x^2-2}(x+6)^2\]οΌ (display) tfrac
\[\tfrac{x^3+5x^2+4}{x^2-2}(x+6)^2\]οΌ (display) dfrac
\[\dfrac{x^3+5x^2+4}{x^2-2}(x+6)^2\]- Alignment
- μμ μ¬λ¬ κ°λ₯Ό νμμ λ§μΆ° μμ±ν λ μ¬μ©νλ€.
\begin{aligned} ax &= ay \\ x &= y \end{aligned}
- μμ μ¬λ¬ κ°λ₯Ό νμμ λ§μΆ° μμ±ν λ μ¬μ©νλ€.
- disjoint union
- 곡μ $\LaTeX$μμ
\uplus$\uplus$λ§ μ§μνλ κ² κ°λ€. {\cup\mkern-13mu\cdot\mkern5mu}λ₯Ό ν΅ν΄μ ${\cup\mkern-13mu\cdot\mkern5mu}$ κΈ°νΈλ₯Ό μ§μ 컀μ€ν ν΄μΌ νλ€.- λλ μ λμ½λ λ¬Έμ
βλ₯Ό μ§μ λ£λ λ°©λ²λ μλ€. $β$
- 곡μ $\LaTeX$μμ
mathjax-support
μ κ° μ°λ MathJax λΌμ΄λΈλ¬λ¦¬λ₯Ό λΆλ¬μ€λ html νμΌμ
λλ€.
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(','\\)']],
displayMath: [ ['$$', '$$'], ['\\[','\\]'] ], // ok to remove
processEscapes: true, // make distinguishable with $ and \$.
categories: 'ams', // equation numbering
}
};
</script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>
MathJax 곡μ λ¬Έμμ λ°λ₯Έ μλμ ꡬ문μ ν΅ν΄ MathJaxμ latest λ²μ μ λ‘λν μ μμ΅λλ€.
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>
κ·Έ μΈμ Reference
- Wikipedia/List of mathematical symbols by subject
- Detexify
- μ¬λ³Όλ§ μκ³ μ νν μ΄λ¦μ λͺ¨λ₯΄λ ꡬ문μ νκΈ°λ‘ μ°Ύμ μ μκ² ν΄μ€λ€.
- Overleaf/Mathematical fonts
-
delimiter: κ΅¬λΆ λ¬Έμ; μμ μ¬μ΄ κ²½κ³λ₯Ό μ§μ νλ μ¬μ©νλ νλμ λ¬Έμ. CμΈμ μΈλ―Έμ½λ‘
;κ° λνμ μΈ μμ΄λ€.Β ↩