From bf661795212db463c9fbb51c2652f6358c1a2622 Mon Sep 17 00:00:00 2001 From: 24OI-bot <15963390+24OI-bot@users.noreply.github.com> Date: Thu, 22 Aug 2019 03:36:11 -0400 Subject: [PATCH] style: format markdown files with remark-lint --- docs/intro/htc.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/intro/htc.md b/docs/intro/htc.md index be6ecc08..a2a5fa69 100644 --- a/docs/intro/htc.md +++ b/docs/intro/htc.md @@ -90,7 +90,7 @@ LaTeX 作为公式排版的首选,我们应当正确地使用它。因此对 如果遇到没有预先定义好的需要使用 Roman 体的 **函数名** ,我们可以使用 `$\operatorname{something}$` 来产生,如我们可以使用 `$\operatorname{lcm}$` 产生正体的最小公倍数(函数)符号。同理,产生 Roman 体的 **常量** 应用 `$\mathrm{}$` ;其他非数学内容,包括英文、特殊符号等,一律使用 `$\text{}$` 。中文我们则建议不放在 LaTeX 公式中。 -2. 在不会引起歧义的情况下,请用 `$\times$` 代替星号,叉乘请使用 `$\times$` ,点乘请使用 `$\cdot$` 。如 $a\times b$, $a\cdot b$ ,而不是 $a\ast b$ 。 +2. 在不会引起歧义的情况下,请用 `$\times$` 代替星号,叉乘请使用 `$\times$` ,点乘请使用 `$\cdot$` 。如 $a\times b$ , $a\cdot b$ ,而不是 $a\ast b$ 。 3. 请用 `$\cdots$` (居于排版基线与顶线中间), `$\ldots$` (居于排版基线的位置), `$\vdots$` (竖着的省略号)或 `$\dots$` (自动调整)代替 `$...$` 。如 `$a_1,a_2,\ldots,a_n$` ,而不是 `$a_1,a_2,...,a_n$` 。 @@ -112,19 +112,19 @@ LaTeX 作为公式排版的首选,我们应当正确地使用它。因此对 我们可以使用一个表格来总结一下上述内容。注意本表格没有举出所有符号的用法,只给出常见的错误。类似的情况类比即可。 -| 不符合规定的用法 | 渲染效果 | 符合规定的用法 | 渲染效果 | -| ---------------------- | --------------- | ---------------------------------- | ----------------------------- | -| `$log, ln, lg$` | $log, ln, lg$ | `$\log$, $\ln$, $\lg$` | $\log$, $\ln$, $\lg$ | -| `$sin, cos, tan$` | $sin, cos, tan$ | `$\sin$, $\cos$, $\tan$` | $\sin$, $\cos$, $\tan$ | -| `$gcd, lcm$` | $gcd, lcm$ | `$\gcd$, $\operatorname{lcm}$` | $\gcd$, $\operatorname{lcm}$ | -| `$ 小于 a 的质数 $` | $ 小于 a 的质数 $ | `小于 $a$ 的质数` | 小于 $a$ 的质数 | -| `$...$` | $...$ | `$\cdots$, $\ldots$, $\vdots$, $\ddots$` | $\cdots$, $\ldots$, $\vdots$, $\ddots$ | -| `$a*b$` (两个数相乘) | $a*b$ | `$a\times b$, $a\cdot b$` | $a\times b$, $a\cdot b$ | -| `$SPFA$` (英文名称) | $SPFA$ | `SPFA` | SPFA | -| `$a==b$` | $a==b$ | `$a=b$` | $a=b$ | -| `$f[i][j][k]$` | $f[i][j][k]$ | `$f_{i,j,k}$, $f(i,j,k)$` | $f_{i,j,k}$, $f(i,j,k)$ | -| `$R,N^*$` (集合) | $R,N^*$ | `$\mathbf{R}$, $\mathbf{N}^*$` | $\mathbf{R}$, $\mathbf{N}^*$ | -| `$\emptyset$` | $\emptyset$ | `$\varnothing$` | $\varnothing$ | +| 不符合规定的用法 | 渲染效果 | 符合规定的用法 | 渲染效果 | +| ------------------- | ----------------- | ------------------------------------------ | ------------------------------------------- | +| `$log, ln, lg$` | $log, ln, lg$ | `$\log$, $\ln$, $\lg$` | $\log$ , $\ln$ , $\lg$ | +| `$sin, cos, tan$` | $sin, cos, tan$ | `$\sin$, $\cos$, $\tan$` | $\sin$ , $\cos$ , $\tan$ | +| `$gcd, lcm$` | $gcd, lcm$ | `$\gcd$, $\operatorname{lcm}$` | $\gcd$ , $\operatorname{lcm}$ | +| `$ 小于 a 的质数 $` | $小于 a 的质数$ | `小于 $a$ 的质数` | 小于 $a$ 的质数 | +| `$...$` | $...$ | `$\cdots$, $\ldots$, $\vdots$, $\ddots$` | $\cdots$ , $\ldots$ , $\vdots$ , $\ddots$ | +| `$a*b$` (两个数相乘) | $a*b$ | `$a\times b$, $a\cdot b$` | $a\times b$ , $a\cdot b$ | +| `$SPFA$` (英文名称) | $SPFA$ | `SPFA` | SPFA | +| `$a==b$` | $a==b$ | `$a=b$` | $a=b$ | +| `$f[i][j][k]$` | $f[i][j][k]$ | `$f_{i,j,k}$, $f(i,j,k)$` | $f_{i,j,k}$ , $f(i,j,k)$ | +| `$R,N^*$` (集合) | $R,N^*$ | `$\mathbf{R}$, $\mathbf{N}^*$` | $\mathbf{R}$ , $\mathbf{N}^*$ | +| `$\emptyset$` | $\emptyset$ | `$\varnothing$` | $\varnothing$ | ### Markdown 格式与主题扩展格式要求 @@ -163,25 +163,25 @@ LaTeX 作为公式排版的首选,我们应当正确地使用它。因此对 例如: -> **Input.** The edges of the graph $e$, where each element in $e$ is $(u, v, w)$ denoting that there is an edge between $u$ and $v$ weighted $w$. +> **Input.** The edges of the graph $e$ , where each element in $e$ is $(u, v, w)$ denoting that there is an edge between $u$ and $v$ weighted $w$ . > -> **Output.** The edges of the MST of the input graph. +> **Output.** The edges of the MST of the input graph. > -> **Method.** +> **Method.** > -> $result \gets \varnothing$ +> $result \gets \varnothing$ > -> sort $e$ into nondecreasing order by weight $w$ +> sort $e$ into nondecreasing order by weight $w$ > -> **for** each $(u, v, w)$ in the sorted $e$ +> **for** each $(u, v, w)$ in the sorted $e$ > ->     **if** $u$ and $v$ are not connected in the union-find set +> **if** $u$ and $v$ are not connected in the union-find set > ->         connect $u$ and $v$ in the union-find set +> connect $u$ and $v$ in the union-find set > ->         $result \gets result\ \bigcup\ \{(u, v, w)\}$ +> $result \gets result\ \bigcup\ \{(u, v, w)\}$ > -> **return** $result$ +> **return** $result$ ```markdown > **Input.** The edges of the graph $e$, where each element in $e$ is $(u, v, w)$ denoting that there is an edge between $u$ and $v$ weighted $w$. -- 2.11.0