Test

1. 代码测试

(1) C++

1
2
3
4
5
6
7
#include <iostream>
using namespace std;

int main(int argc, char *argv) {
cout << "Hello World!" << endl;
return 0;
}

(2) java

1
2
3
4
5
public class Main {
public static void main(String...args) {
System.out.println("Hello World!");
}
}

2. Latex测试

\[ \sum_{n=1}^{\infty}a_{i} \]

\[ \begin{aligned} m&=\sum_{i}k_if(p+k_ih)\\ &=\sum_{i}k_i(f(p+k_ih)-f(p))\\ &=\sum_{i}k_i(\nabla_{k_i}{f(p))}\\ \end{aligned} \]

  • \(\text{mathcal}\)
    • \(\mathcal{0123456789}\)
    • \(\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathcal{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathcal{Veach\ Ajar}\)
  • \(\text{mathscr}\)
    • \(\mathscr{0123456789}\)
    • \(\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathscr{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathscr{Veach\ Ajar}\)
  • \(\text{mathit}\)
    • \(\mathit{0123456789}\)
    • \(\mathit{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathit{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathit{Veach\ Ajar}\)
  • \(\text{mathrm}\)
    • \(\mathrm{0123456789}\)
    • \(\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathrm{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathrm{Veach\ Ajar}\)
  • \(\text{mathnormal}\)
    • \(\mathnormal{0123456789}\)
    • \(\mathnormal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathnormal{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathnormal{Veach\ Ajar}\)
  • \(\text{mathbb}\)
    • \(\mathbb{0123456789}\)
    • \(\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathbb{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathbb{Veach\ Ajar}\)
  • \(\text{mathfrak}\)
    • \(\mathfrak{0123456789}\)
    • \(\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\)
    • \(\mathfrak{abcdefghijklmnopqrstuvwxyz}\)
    • \(\mathfrak{Veach\ Ajar}\)

3. 图片测试

4. mermaid 测试

graph LR;
A[学生];
B{选修};
C[课程];
A---B---C;

5. pdf