-
讨论 (0)
这个用户还没有发布过讨论 -
贡献 (1)
-
递交 (1)
最近递交
状态 题目 递交者 时间 内存 语言 递交时间 * longyitongxue 0ms 0 Bytes C++ 2025-07-09 22:35:09 * longyitongxue 0ms 0 Bytes C++ 2025-07-09 22:33:54 * longyitongxue 0ms 0 Bytes C++ 2025-07-09 22:29:22 (自测) * longyitongxue 2ms 480.0 KiB C++ 2025-07-09 22:29:20 * longyitongxue 0ms 0 Bytes C++ 2025-07-09 22:26:30 * longyitongxue 0ms 0 Bytes C++ 2025-07-09 22:25:43 P1000 A+B Problem longyitongxue 22ms 528.0 KiB C++ 2025-07-09 21:34:11 (自测) P1000 A+B Problem longyitongxue 2ms 480.0 KiB C++ 2025-07-09 21:34:07
个人简介
\(\textbf\KaTeX\) 格式手册
使用 MarkDown 输入法,一个个美元($
)表行内公式,两个美元($$
)表居中公式。
$\TeX\ \KaTeX\ \LaTeX$
显示如下:
\(\TeX\ \KaTeX\ \LaTeX\)
$$\TeX\ \KaTeX\ \LaTeX$$
显示如下:
\[
\TeX\ \KaTeX\ \LaTeX
\]
基本语法
=
\(\to=\),<
\(\to<\),>
\(\to>\),\ge
\(\to\ge\),\le
\(\to\le\),\perp
\(\to\perp\),\approx
\(\to\approx\),\ne
\(\to\ne\),\sim
\(\to\sim\)
+
\(\to+\),-
\(\to-\),\times
\(\to\times\),\div
\(\to\div\),*
\(\to*\),/
\(\to/\),\pm
\(\to\pm\),\cup
\(\to\cup\),\cap
\(\to\cap\)
字符:
二元关系符:=<>≥≤≈≠∼
二元运算符:+−×÷∗/±∪∩
注意:减号和星号有变化!
原:-,变成−(变长了)
原:*,变成∗(跑到中间了)
上下标
^
上标,_
下标。
a^b
\(\to a^b\)
a_b
\(\to a_b\)
a^{100}
\(\to a^{100}\)
a_{100}
\(\to a_{100}\)
A_5^3
\(\to A_5^3\)
分数
一般分数:1\frac{1}{2}
\(\to1\frac{1}{2}\)。
可是 \(1\frac{1}{2}\) 太小了,我们要把它调整为正常。
正常分数:1\dfrac{1}{2}
\(\to1\dfrac{1}{2}\)
根式
平方根:\sqrt{n}
\(\to\sqrt{n}\)
\(n\) 次方根:\sqrt[n]{m}
\(\to\sqrt[n]{m}\)
求和与积分
\sum_{k = 1}^{n} \frac{1}{k}
\(\to\sum_{k = 1}^{n} \frac{1}{k}\)
\int_a^b f(x) \textup{d} x
\(\to\int_a^b f(x) \textup{d} x\)
\(\sum:\)\sum
\(\int:\)\int
公式中的空格
使用\
或~
可以做出一个空格。
使用\:
可以做出一个拖不出来的空格。
例:
Hello\ World!
\(Hello\ World!\)
Hello~World!
\(Hello~World!\)
Hello\:World!
\(Hello\:World!\)
除了常见的几个空格命令外,可以通过 \hspace{长度}
自定义空格长度。eg:\hspace{.1cm}
\hspace{-.1cm}
Hello\hspace{.1cm}World!
\(Hello\hspace{.1cm}World!\)
Hello\hspace{-.1cm}World!
\(Hello\hspace{-.1cm}World!\)
插入文本
在公式中插入文本可以通过 \text{文字}
在公式中添加文字,比如:
\text{对任意的 } x > 0 \text{,有 } f(x) > 0 \text{。}
显示为
\[
\text{对任意的 } x > 0 \text{,有 } f(x) > 0 \text{。}
\]
多行的数学公式
使用 aligned
环境对齐多行公式。
\begin{aligned}
\cos(2 \theta) &= \cos^2(\theta) - \sin^2(\theta) \\
&= 2 \cos^2(\theta) - 1
\end{aligned}
显示为
\[
\begin{aligned}
\cos(2 \theta) &= \cos^2(\theta) - \sin^2(\theta) \\
&= 2 \cos^2(\theta) - 1
\end{aligned}
\]
字体、字号与颜色
字体
- 族(family):有罗马(roman)、无衬线(sans-serif)、打字机(teletype)三族,改变字体的基本外观。
- 形状(shape):有直立(upright)、意大利(italic)两种形状。
- 重量(weight):有中等(medium)、粗体(boldface)两种重量。
\textrm{KaTeX\_Main}
\(\to\textrm{KaTeX\_Main}\)
\textrm{\textit{KaTeX\_Main}}
\(\to\textrm{\textit{KaTeX\_Main}}\)
\textrm{\textbf{KaTeX\_Main}}
\(\to\textrm{\textbf{KaTeX\_Main}}\)
\textrm{\textbf{\textit{KaTeX\_Main}}}
\(\to\textrm{\textbf{\textit{KaTeX\_Main}}}\)
\textsf{KaTeX\_SansSerif}
\(\to\textsf{KaTeX\_SansSerif}\)
\textsf{\textbf{KaTeX\_SansSerif}}
\(\to\textsf{\textbf{KaTeX\_SansSerif}}\)
\textsf{\textit{KaTeX\_SansSerif}}
\(\to\textsf{\textit{KaTeX\_SansSerif}}\)
\texttt{KaTeX\_Typewriter}
\(\to\texttt{KaTeX\_Typewriter}\)
\texttt{\textit{KaTeX\_Typewriter}}
\(\to\texttt{\textit{KaTeX\_Typewriter}}\)
特别地,在数学模式下,提供了 \mathbb
、\mathcal
、\mathscr
和 \mathfrak
以供特殊数学字体使用:
\mathbb{A\sim Z\ k}
\(\to\mathbb{A\sim Z\ k}\)
\mathcal{A\sim Z\ 0\sim9}
\(\to\mathcal{A\sim Z\ 0\sim9}\)
\mathscr{A\sim Z}
\(\to\mathscr{A\sim Z}\)
\mathfrak{A\sim Z\ a\sim z\ 0\sim9}
\(\to\mathfrak{A\sim Z\ a\sim z\ 0\sim9}\)
字号
\Huge
:巨无霸
\huge
:巨大
\LARGE
:特大
\Large
:超大
\large
:大
\normalsize
:正常
\Huge
:小
\small
:超小
\footnotesize
:特小
\scriptsize
:巨小
\tiny
:超级无敌小
颜色
可以通过 {\color{颜色} 文字或公式}
或 \textcolor{颜色}{文字或公式}
改变字体颜色。例如:
a + \textcolor{#22AB22}{a + {}} a
显示为 \(a + \textcolor{#22AB22}{a + {}} a\)。
声调
\=a
\(\to\=a\)
\'a
\(\to\'a\)
\v a
\(\to\v a\)
\`a
\(\searrow\)
\(\:\:\:\:\:\`a\)
注意:
\=i
会是 \(\=i\) 而不是 \(\textitī\),所以输入法请打开。。。