Blog Notes

Displace Lv2

My brain’s getting worse, so let’s just write it down here

Quick Start

Preview and upload

1
2
hexo s             preview
hexo g -d upload

Preview: local preview
Upload: GitHub Warehouse

Document location

1
2
3
4
5
articles Location: D:\My_Boke\Blog_Redefine\source\_posts

pictures location(local): D:\My_Boke\Blog_Redefine\themes\redefine\source\images

pictures location(will be upload): D:\My_Boke\Blog_Redefine\.deploy_git\images

MathJax Grammer

在使用 MathJax 输入数学公式时,以下是常用的数学公式语法以及格式说明:

公式类型 MathJax 语法 示例
分数 $\(\frac{a}{b}\)$ $\frac{a}{b}$
开平方根 $\sqrt{a}\)$ $\sqrt{a}$
开任意次根 $\(\sqrt[3]{a}\)$ $\sqrt[3]{a}$
幂次方 $\(a^b\)$ $a^b$
下标 $\(a_b\)$ $a_b$
求和 $\(\sum_{i=1}^n a_i\)$ $\sum_{i=1}^n a_i$
极限 $\lim_{x \to a} f(x)$ $\lim_{x \to a} f(x)$
积分 $\int_{a}^{b} f(x) \, dx$ $\int_{a}^{b} f(x) , dx$
矩阵 $\begin{matrix} a & b \\ c & d \end{matrix}$ $\begin{matrix} a & b \ c & d \end{matrix}$
小括号 $\(\left( \frac{a}{b} \right)\)$ $\left( \frac{a}{b} \right)$
中括号 $\[\left( \frac{a}{b} \right)\]$ $\left[ \frac{a}{b} \right]$
大括号 {b $\[\left( \frac{a}{b}+c \right)\]$ }-e {b $\left[ \frac{a}{b}+c \right]$ }-e
省略号 $\(a_1, a_2, \cdots, a_n\)$ $a_1, a_2, \cdots, a_n$

使用方法:

  • 内联模式:用 $...$ 包围公式,如 $a^2 + b^2 = c^2$
  • 块模式:用 $$...$$ 包围公式,显示在单独一行,如 $$\int_{a}^{b} x^2 dx$$
  • 特殊公式符和符合算式前要加\,例如$\sum$ : $\sum$
  • 外层括号用(,)没内层括号用(\left,\right)均表示为$(a)$
  • test 目前无法实现换行显示公式,疑似渲染设置问题,后续再来排查
    $$\begin{matrix} a & b \ c & d \end{matrix}$$

这些语法可帮助你在文章中准确书写常用的数学公式。

  • Title: Blog Notes
  • Author: Displace
  • Created at : 2024-05-08 00:00:00
  • Updated at : 2024-11-04 14:12:14
  • Link: https://mikumikudaifans.github.io/Displace.github.io/2024/05/08/BlogNote/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments