From b836d7744953e61a9ed92c11f68b040c118572f9 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Tue, 14 May 2024 20:15:50 +0800
Subject: [PATCH 01/14] bf test
---
docs/latex.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/latex.md b/docs/latex.md
index 69be6387f99..a19e36b55f3 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -72,7 +72,7 @@ Supported Functions
``KaTeX:\\\`{a}`` \\`{a}
| `KaTeX:\={a}` `\={a}` |
`KaTeX:\"{a}` `\"{a}` | `KaTeX:\v{a}` `\v{a}` |
`KaTeX:\^{a}` `\^{a}` | `KaTeX:\u{a}` `\u{a}` |
-`KaTeX:\r{a}` `\r{a}` |
+`KaTeX:\r{a}` `\r{a}` | `KaTeX:\mathbf{a}` `\mathbf{a}` |
### Delimiter Sizing
From 889d613a6ae30496dace382dd9d1840b51a59ab3 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 11:53:08 +0800
Subject: [PATCH 02/14] my part
---
.dockerignore | 4 +++-
.gitignore | 4 +++-
docs/latex.md | 7 +++++--
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/.dockerignore b/.dockerignore
index 4827b056d1d..90a5b6874e4 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -23,4 +23,6 @@ yarn.lock
# IDEA
*.iml
*.ipr
-*.iws
\ No newline at end of file
+*.iws
+
+*.tex
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index cd05af32993..b9fd40e346e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,4 +22,6 @@ yarn.lock
# IDEA
*.iml
*.ipr
-*.iws
\ No newline at end of file
+*.iws
+
+\demo
\ No newline at end of file
diff --git a/docs/latex.md b/docs/latex.md
index a19e36b55f3..aabf78830a1 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -72,7 +72,7 @@ Supported Functions
``KaTeX:\\\`{a}`` \\`{a}
| `KaTeX:\={a}` `\={a}` |
`KaTeX:\"{a}` `\"{a}` | `KaTeX:\v{a}` `\v{a}` |
`KaTeX:\^{a}` `\^{a}` | `KaTeX:\u{a}` `\u{a}` |
-`KaTeX:\r{a}` `\r{a}` | `KaTeX:\mathbf{a}` `\mathbf{a}` |
+`KaTeX:\r{a}` `\r{a}`
### Delimiter Sizing
@@ -202,6 +202,7 @@ Supported Functions
| `KaTex:f'` | `f'` | `KaTex:\underline{abc}` | `\underline{abc}` | `KaTex:\overleftarrow{abc}` | `\overleftarrow{abc}` |
| `KaTex:\sqrt{abc}` | `\sqrt{abc}` | `KaTex:\widehat{abc}` | `\widehat{abc}` | `KaTex:\overbrace{abc}` | `\overbrace{abc}` |
| `KaTex:\sqrt[n]{abc}` | `\sqrt[n]{abc}` | `KaTex:\widetilde{abc}` | `\widetilde{abc}` | `KaTex:\underbrace{abc}` | `\underbrace{abc}` |
+|`KaTex:\frac{d^n y}{d x^n}`| `\frac{d^n y}{d x^n}` | `KaTex:\int_{b}^{a} \,dx` | `\int_{b}^{a} \,dx` | `KaTex:\lim_{x \to \infty}` | `\lim_{x \to \infty}` |
### 分隔符 Delimiters
@@ -891,6 +892,7 @@ x = \begin{cases}
`KaTex:\LARGE AB` | `\LARGE AB` | `KaTex:\LARGE AB` | `\LARGE AB` | `KaTex:\footnotesize AB` | \footnotesize AB
`KaTex:\Large AB` | `\Large AB` | `KaTex:\Large AB` | `\Large AB` | `KaTex:\scriptsize AB` | \scriptsize AB
`KaTex:\large AB` | `\large AB` | `KaTex:\large AB` | `\large AB` | `KaTex:\tiny AB` | \tiny AB
+`KaTex:\mathcal{AB}` | `\mathcal{AB}` | `KaTex:\mathak{AB}` | `\mathak{AB}` | `KaTex:\mathbb{AB}` | `\mathbb{AB}` | `KaTex:\mathsf{AB}` | `\mathsf{AB}`
### Style 样式
@@ -900,7 +902,8 @@ x = \begin{cases}
`KaTex:\displaystyle\sum_{i=1}^n` | \displaystyle\sum_{i=1}^n | `KaTex:\textstyle\sum_{i=1}^n` | \textstyle\sum_{i=1}^n
`KaTex:\scriptstyle x` | \scriptstyle x | `KaTex:\scriptscriptstyle x` | \scriptscriptstyle x
`KaTex:\lim\limits_x` | \lim\limits_x | `KaTex:\lim\nolimits_x` | \lim\nolimits_x
-`KaTex:\verb!x^2!` | \verb!x^2!
+`KaTex:\verb!x^2!` | \verb!x^2! | `KaTeX:\mathbf{a}` `\textbf{a}` |
+`KaTeX:\mathit{a}` `\textit{a}`
另见
----
From 448025733c0124eb6d1430f991ea3f3268e929e9 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 11:59:10 +0800
Subject: [PATCH 03/14] add some font
---
docs/latex.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/latex.md b/docs/latex.md
index aabf78830a1..3b9eaa7f36a 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -903,7 +903,7 @@ x = \begin{cases}
`KaTex:\scriptstyle x` | \scriptstyle x | `KaTex:\scriptscriptstyle x` | \scriptscriptstyle x
`KaTex:\lim\limits_x` | \lim\limits_x | `KaTex:\lim\nolimits_x` | \lim\nolimits_x
`KaTex:\verb!x^2!` | \verb!x^2! | `KaTeX:\mathbf{a}` `\textbf{a}` |
-`KaTeX:\mathit{a}` `\textit{a}`
+`KaTeX:\mathit{a}` `\textit{a}` | `KaTeX:\textup{a}` `\textup{a}` | `KaTeX:\textsl{a}` `\textsl{a}` | `KaTeX:\textsc{a}` `\textsc{a}` | `KaTeX:\underline{a}` `\underline{a}`
另见
----
From 945e403df241064ebeb4fadc9e21f76f1159ff66 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 12:15:50 +0800
Subject: [PATCH 04/14] item
---
docs/latex.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/docs/latex.md b/docs/latex.md
index 3b9eaa7f36a..aad30fe68e2 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -905,6 +905,19 @@ x = \begin{cases}
`KaTex:\verb!x^2!` | \verb!x^2! | `KaTeX:\mathbf{a}` `\textbf{a}` |
`KaTeX:\mathit{a}` `\textit{a}` | `KaTeX:\textup{a}` `\textup{a}` | `KaTeX:\textsl{a}` `\textsl{a}` | `KaTeX:\textsc{a}` `\textsc{a}` | `KaTeX:\underline{a}` `\underline{a}`
+列表表示
+---
+
+'\begin{itemize}
+ \item First item
+ \item Second item
+\end{itemize}'
+
+'\begin{description}
+ \item Definition
+ \item Explanation
+\end{description}'
+
另见
----
From de733193468cc8374984b93a3cbf6ab99daf6693 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 12:19:26 +0800
Subject: [PATCH 05/14] list test
---
docs/latex.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index aad30fe68e2..3533e2feae7 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -908,15 +908,17 @@ x = \begin{cases}
列表表示
---
-'\begin{itemize}
+```latex
+\begin{itemize}
\item First item
\item Second item
-\end{itemize}'
+\end{itemize}
-'\begin{description}
+```latex
+\begin{description}
\item Definition
\item Explanation
-\end{description}'
+\end{description}
另见
----
From f48231085107dada75953c1acf19400e030ae808 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 12:46:41 +0800
Subject: [PATCH 06/14] latex
---
docs/latex.md | 67 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 57 insertions(+), 10 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index 3533e2feae7..7f8238155df 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -905,20 +905,67 @@ x = \begin{cases}
`KaTex:\verb!x^2!` | \verb!x^2! | `KaTeX:\mathbf{a}` `\textbf{a}` |
`KaTeX:\mathit{a}` `\textit{a}` | `KaTeX:\textup{a}` `\textup{a}` | `KaTeX:\textsl{a}` `\textsl{a}` | `KaTeX:\textsc{a}` `\textsc{a}` | `KaTeX:\underline{a}` `\underline{a}`
+```latex
列表表示
---
-```latex
-\begin{itemize}
- \item First item
- \item Second item
-\end{itemize}
+| Markdown | LaTeX |
+|-------------------------------|--------------------------------|
+| `1. First item`
`2. Second item` | `\begin{enumerate}`
`\item First item`
`\item Second item`
`\end{enumerate}` |
+| `- First item`
`- Second item` | `\begin{itemize}`
`\item First item`
`\item Second item`
`\end{itemize}` |
+| `**First item**`
`**Second item**` | `\begin{description}`
`\item First item`
`\item Second item`
`\end{description}` |
+% ```latex
+% \begin{enumerate}
+% \item First item
+% \item Second item
+% \end{enumerate}
+
+
+% \begin{itemize}
+% \item First item
+% \item Second item
+% \end{itemize}
-```latex
-\begin{description}
- \item Definition
- \item Explanation
-\end{description}
+
+% \begin{description}
+% \item First item
+% \item Second item
+% \end{description}
+
+图片展示
+---
+
+% 展示单张图像
+\usepackage{graphicx}
+\begin{figure}[htbp]
+ \centering
+ \includegraphics[width=0.8\textwidth]{path/to/your/image.jpg}
+ \caption{Caption for the single figure.}
+ \label{fig:singlefig}
+\end{figure}
+
+% 展示多张图像
+\usepackage{graphicx}
+\usepackage{subcaption}
+\begin{figure}[htbp]
+ \centering
+ \begin{subfigure}[b]{0.45\textwidth}
+ \centering
+ \includegraphics[width=\textwidth]{path/to/your/image1.jpg}
+ \caption{First subfigure}
+ \label{fig:sub1}
+ \end{subfigure}
+ \hfill % Adds horizontal space between the subfigures
+ \begin{subfigure}[b]{0.45\textwidth}
+ \centering
+ \includegraphics[width=\textwidth]{path/to/your/image2.jpg}
+ \caption{Second subfigure}
+ \label{fig:sub2}
+ \end{subfigure}
+ \caption{Caption for the entire figure}
+ \label{fig:mainfig}
+\end{figure}
+```
另见
----
From 9feb3f1e6db972441c7f745452c37873ea7603a4 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 13:31:29 +0800
Subject: [PATCH 07/14] add table example
---
docs/latex.md | 58 +++++++++++++++++++++++++++++++--------------------
1 file changed, 35 insertions(+), 23 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index 7f8238155df..50bb9ce8f09 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -909,30 +909,29 @@ x = \begin{cases}
列表表示
---
-| Markdown | LaTeX |
-|-------------------------------|--------------------------------|
-| `1. First item`
`2. Second item` | `\begin{enumerate}`
`\item First item`
`\item Second item`
`\end{enumerate}` |
-| `- First item`
`- Second item` | `\begin{itemize}`
`\item First item`
`\item Second item`
`\end{itemize}` |
-| `**First item**`
`**Second item**` | `\begin{description}`
`\item First item`
`\item Second item`
`\end{description}` |
-% ```latex
-% \begin{enumerate}
-% \item First item
-% \item Second item
-% \end{enumerate}
-
-
-% \begin{itemize}
-% \item First item
-% \item Second item
-% \end{itemize}
+```latex
+ - First item
+ - Second item
+\begin{enumerate}
+ \item First item
+ \item Second item
+\end{enumerate}
+
+ 1. First item
+ 2. Second item
+\begin{itemize}
+ \item First item
+ \item Second item
+\end{itemize}
-
-% \begin{description}
-% \item First item
-% \item Second item
-% \end{description}
-
-图片展示
+First item
+Second item
+\begin{description}
+ \item First item
+ \item Second item
+\end{description}
+
+图片和表格展示
---
% 展示单张图像
@@ -965,6 +964,19 @@ x = \begin{cases}
\caption{Caption for the entire figure}
\label{fig:mainfig}
\end{figure}
+
+% 表格示例
+\begin{table}[ht]
+ \centering % Centers the table
+ \caption{Example Table}
+ \label{tab:example}
+ \begin{tabular}{|c|l|r|} % Aligns columns: center, left, right
+ \hline % Inserts a horizontal line
+ \textbf{Column 1} & \textbf{Column 2} & \textbf{Column 3} \\ \hline
+ Data 1 & Data 2 & Data 3 \\ % Row of data
+ Data 4 & Data 5 & Data 6 \\ \hline
+ \end{tabular}
+\end{table}
```
另见
From 4bfba5a92ad554734b69e0e9f92c1f1282508ecf Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 14:24:53 +0800
Subject: [PATCH 08/14] Adjusting Margins and Page Size in LaTeX
---
docs/latex.md | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index 50bb9ce8f09..2c38a96b69a 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -905,10 +905,11 @@ x = \begin{cases}
`KaTex:\verb!x^2!` | \verb!x^2! | `KaTeX:\mathbf{a}` `\textbf{a}` |
`KaTeX:\mathit{a}` `\textit{a}` | `KaTeX:\textup{a}` `\textup{a}` | `KaTeX:\textsl{a}` `\textsl{a}` | `KaTeX:\textsc{a}` `\textsc{a}` | `KaTeX:\underline{a}` `\underline{a}`
-```latex
-列表表示
+列表,图片,表格表示
---
+### 列表
+
```latex
- First item
- Second item
@@ -930,10 +931,11 @@ Second item
\item First item
\item Second item
\end{description}
+```
-图片和表格展示
----
+### 图片
+```latex
% 展示单张图像
\usepackage{graphicx}
\begin{figure}[htbp]
@@ -964,9 +966,12 @@ Second item
\caption{Caption for the entire figure}
\label{fig:mainfig}
\end{figure}
+```
-% 表格示例
-\begin{table}[ht]
+### 表格
+
+```latex
+\begin{table}[hbpt]
\centering % Centers the table
\caption{Example Table}
\label{tab:example}
@@ -979,6 +984,17 @@ Second item
\end{table}
```
+LaTex排版
+----
+
+### 调整页边距和页面类型
+
+```latex
+\usepackage[left=3cm, right=3cm, top=2cm, bottom=2cm]{geometry} or \geometry{left=3cm, right=3cm, top=2cm, bottom=2cm}
+
+\usepackage[a4paper]{geometry} % a5paper, b5paper, letterpaper, etc.
+```
+
另见
----
From 1cebc5add8e07f0d969200f31bb771229c28a184 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 14:53:21 +0800
Subject: [PATCH 09/14] draft done
---
docs/latex.md | 62 +++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 50 insertions(+), 12 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index 2c38a96b69a..537e06a4651 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -911,22 +911,22 @@ x = \begin{cases}
### 列表
```latex
- - First item
- - Second item
+| - First item |
+| - Second item |
\begin{enumerate}
\item First item
\item Second item
\end{enumerate}
- 1. First item
- 2. Second item
+| 1. First item |
+| 2. Second item |
\begin{itemize}
\item First item
\item Second item
\end{itemize}
-First item
-Second item
+|First item |
+|Second item |
\begin{description}
\item First item
\item Second item
@@ -956,7 +956,7 @@ Second item
\caption{First subfigure}
\label{fig:sub1}
\end{subfigure}
- \hfill % Adds horizontal space between the subfigures
+ \hfill % 在子图之间添加水平间距
\begin{subfigure}[b]{0.45\textwidth}
\centering
\includegraphics[width=\textwidth]{path/to/your/image2.jpg}
@@ -972,13 +972,13 @@ Second item
```latex
\begin{table}[hbpt]
- \centering % Centers the table
+ \centering % 居中表格
\caption{Example Table}
\label{tab:example}
- \begin{tabular}{|c|l|r|} % Aligns columns: center, left, right
- \hline % Inserts a horizontal line
+ \begin{tabular}{|c|l|r|} % 对齐列:居中、居左、居右
+ \hline % 插入一条水平线
\textbf{Column 1} & \textbf{Column 2} & \textbf{Column 3} \\ \hline
- Data 1 & Data 2 & Data 3 \\ % Row of data
+ Data 1 & Data 2 & Data 3 \\ % 数据
Data 4 & Data 5 & Data 6 \\ \hline
\end{tabular}
\end{table}
@@ -992,7 +992,45 @@ LaTex排版
```latex
\usepackage[left=3cm, right=3cm, top=2cm, bottom=2cm]{geometry} or \geometry{left=3cm, right=3cm, top=2cm, bottom=2cm}
-\usepackage[a4paper]{geometry} % a5paper, b5paper, letterpaper, etc.
+\usepackage[a4paper]{geometry} % 另有a5paper, b5paper, letterpaper等格式
+```
+
+### 页面分割和布局
+
+```latex
+\quad % 添加空格
+\qquad % 双空格
+\vspace{} % 添加空行
+\newpage % 开始新的一页。
+\clearpage % 清除当前页,并处理所有未处理的浮动体。
+\vfill % 在当前页面的剩余空间中插入垂直空白。
+```
+
+### 页面页眉和页脚
+
+```latex
+\usepackage{fancyhdr}
+\pagestyle{fancy}
+
+\fancyhf{} % 清除所有页眉和页脚字段
+\fancyhead[L]{Left header} % 左页眉
+\fancyhead[C]{Center header} % 中页眉
+\fancyhead[R]{Right header} % 右页眉
+\fancyfoot[L]{Left footer} % 左页脚
+\fancyfoot[C]{\thepage} % 页脚中央的页码
+\fancyfoot[R]{Right footer} % 右页脚
+```
+
+文献管理
+----
+
+### bib文献管理
+
+```latex
+\cite{example} % 引用
+
+\bibliographystyle{plain} % 设定引用格式
+\bibliography{references} % 假设.bib文件名为 'references.bib'
```
另见
From 0a9251dad69f9c388895fcdd2bc8107439610d85 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 16:27:49 +0800
Subject: [PATCH 10/14] add overset and underset function
---
docs/latex.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/docs/latex.md b/docs/latex.md
index 537e06a4651..ef19d861515 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -156,6 +156,7 @@ Supported Functions
`KaTex:\sout{abc}` | `\sout{abc}` | `KaTex:\boxed{\pi=\frac c d}` | `\boxed{\pi=\frac c d}`
`KaTex:\$a_{\angl n}` _MD语法冲突_ | `$a_{\angl n}` | `KaTex:a_\angln` | `a_\angln`
`KaTex:\phase{-78^\circ}` | `\phase{-78^\circ}`
+`KaTex:\overset{a}{B}` | `\overset{a}{B}` | `KaTex:\underset{a}{B}` | `\underset{a}{B}`
\tag{hi} x+y^{2x}
@@ -1033,6 +1034,18 @@ LaTex排版
\bibliography{references} % 假设.bib文件名为 'references.bib'
```
+其他
+----
+
+### URL
+
+```latex
+\usepackage{hyperref} % 加载 hyperref 包以增强 PDF 文档的交互性,如添加超链接和书签。
+
+\href{URL}{text} % 创建一个指向 URL 的超链接。
+\url{URL} % 显示 URL 并作为链接。
+```
+
另见
----
From 0ad226479c72925acfc7c571d9ec6e46b87a1f95 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 16:34:31 +0800
Subject: [PATCH 11/14] colour and box for text
---
docs/latex.md | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index ef19d861515..0a974895d57 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -1022,7 +1022,7 @@ LaTex排版
\fancyfoot[R]{Right footer} % 右页脚
```
-文献管理
+其他
----
### bib文献管理
@@ -1034,9 +1034,6 @@ LaTex排版
\bibliography{references} % 假设.bib文件名为 'references.bib'
```
-其他
-----
-
### URL
```latex
@@ -1046,6 +1043,15 @@ LaTex排版
\url{URL} % 显示 URL 并作为链接。
```
+### 颜色和盒子
+
+```latex
+\usepackage{color} 使用 color 包来给文本添加颜色。
+
+\color{color} 设置文本颜色。
+\fbox{content} 在内容周围创建一个边框。
+```
+
另见
----
From 65c4fed894938abc72df3901c9f21e893bd5d1cc Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 16:39:31 +0800
Subject: [PATCH 12/14] format correct markdown
---
docs/latex.md | 45 +++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index 0a974895d57..5b1b849d718 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -999,12 +999,13 @@ LaTex排版
### 页面分割和布局
```latex
-\quad % 添加空格
-\qquad % 双空格
-\vspace{} % 添加空行
-\newpage % 开始新的一页。
-\clearpage % 清除当前页,并处理所有未处理的浮动体。
-\vfill % 在当前页面的剩余空间中插入垂直空白。
+\quad | 添加空格
+\qquad | 双空格
+\vspace{} | 增加纵向间距
+\hspace{} | 增加横向间距
+\newpage | 开始新的一页。
+\clearpage | 清除当前页,并处理所有未处理的浮动体。
+\vfill | 在当前页面的剩余空间中插入垂直空白。
```
### 页面页眉和页脚
@@ -1013,13 +1014,13 @@ LaTex排版
\usepackage{fancyhdr}
\pagestyle{fancy}
-\fancyhf{} % 清除所有页眉和页脚字段
-\fancyhead[L]{Left header} % 左页眉
-\fancyhead[C]{Center header} % 中页眉
-\fancyhead[R]{Right header} % 右页眉
-\fancyfoot[L]{Left footer} % 左页脚
-\fancyfoot[C]{\thepage} % 页脚中央的页码
-\fancyfoot[R]{Right footer} % 右页脚
+\fancyhf{} | 清除所有页眉和页脚字段
+\fancyhead[L]{Left header} | 左页眉
+\fancyhead[C]{Center header} | 中页眉
+\fancyhead[R]{Right header} | 右页眉
+\fancyfoot[L]{Left footer} | 左页脚
+\fancyfoot[C]{\thepage} | 页脚中央的页码
+\fancyfoot[R]{Right footer} | 右页脚
```
其他
@@ -1028,28 +1029,28 @@ LaTex排版
### bib文献管理
```latex
-\cite{example} % 引用
+\cite{example} | 在文本中引用
-\bibliographystyle{plain} % 设定引用格式
-\bibliography{references} % 假设.bib文件名为 'references.bib'
+\bibliographystyle{plain} | 设定引用格式
+\bibliography{references} | 假设.bib文件名为 'references.bib'
```
### URL
```latex
-\usepackage{hyperref} % 加载 hyperref 包以增强 PDF 文档的交互性,如添加超链接和书签。
+\usepackage{hyperref} | 加载 hyperref 包以增强 PDF 文档的交互性,如添加超链接和书签。
-\href{URL}{text} % 创建一个指向 URL 的超链接。
-\url{URL} % 显示 URL 并作为链接。
+\href{URL}{text} | 创建一个指向 URL 的超链接。
+\url{URL} | 显示 URL 并作为链接。
```
### 颜色和盒子
```latex
-\usepackage{color} 使用 color 包来给文本添加颜色。
+\usepackage{color} | 使用 color 包来给文本添加颜色。
-\color{color} 设置文本颜色。
-\fbox{content} 在内容周围创建一个边框。
+\color{color} | 设置文本颜色。
+\fbox{content} | 在内容周围创建一个边框。
```
另见
From 8d92c6e073dd0f1fff0ca8de4735484576ba3d03 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 16:47:52 +0800
Subject: [PATCH 13/14] Add support for multiple columns
---
docs/latex.md | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/latex.md b/docs/latex.md
index 5b1b849d718..ea9f2b40b37 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -1053,6 +1053,16 @@ LaTex排版
\fbox{content} | 在内容周围创建一个边框。
```
+### 多栏布局
+
+```latex
+\usepackage{multicol} | 使用 multicol 包创建多栏文本。
+
+\begin{multicols}{num} ... \end{multicols} | 开始一个多栏环境,其中 num 指定列数。
+\onecolumn | 文档从当前位置开始变为单列格式
+\twocolumn | 文档从当前位置开始变为双列格式
+```
+
另见
----
From f09e34ad49c794e47a56b3713d4d9c9022b0e602 Mon Sep 17 00:00:00 2001
From: SchwarzerYV <103877999+SchwarzerYV@users.noreply.github.com>
Date: Wed, 15 May 2024 16:49:59 +0800
Subject: [PATCH 14/14] longtable added and little changes
---
docs/latex.md | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index ea9f2b40b37..e42cff0e771 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -972,7 +972,7 @@ x = \begin{cases}
### 表格
```latex
-\begin{table}[hbpt]
+\begin{table}[hbpt] % 使用 longtable 包创建可以跨页的表格
\centering % 居中表格
\caption{Example Table}
\label{tab:example}
@@ -1003,9 +1003,9 @@ LaTex排版
\qquad | 双空格
\vspace{} | 增加纵向间距
\hspace{} | 增加横向间距
-\newpage | 开始新的一页。
-\clearpage | 清除当前页,并处理所有未处理的浮动体。
-\vfill | 在当前页面的剩余空间中插入垂直空白。
+\newpage | 开始新的一页
+\clearpage | 清除当前页,并处理所有未处理的浮动体
+\vfill | 在当前页面的剩余空间中插入垂直空白
```
### 页面页眉和页脚
@@ -1038,27 +1038,27 @@ LaTex排版
### URL
```latex
-\usepackage{hyperref} | 加载 hyperref 包以增强 PDF 文档的交互性,如添加超链接和书签。
+\usepackage{hyperref} | 加载 hyperref 包以增强 PDF 文档的交互性,如添加超链接和书签
-\href{URL}{text} | 创建一个指向 URL 的超链接。
-\url{URL} | 显示 URL 并作为链接。
+\href{URL}{text} | 创建一个指向 URL 的超链接
+\url{URL} | 显示 URL 并作为链接
```
### 颜色和盒子
```latex
-\usepackage{color} | 使用 color 包来给文本添加颜色。
+\usepackage{color} | 使用 color 包来给文本添加颜色
-\color{color} | 设置文本颜色。
-\fbox{content} | 在内容周围创建一个边框。
+\color{color} | 设置文本颜色
+\fbox{content} | 在内容周围创建一个边框
```
### 多栏布局
```latex
-\usepackage{multicol} | 使用 multicol 包创建多栏文本。
+\usepackage{multicol} | 使用 multicol 包创建多栏文本
-\begin{multicols}{num} ... \end{multicols} | 开始一个多栏环境,其中 num 指定列数。
+\begin{multicols}{num} ... \end{multicols} | 开始一个多栏环境,其中 num 指定列数
\onecolumn | 文档从当前位置开始变为单列格式
\twocolumn | 文档从当前位置开始变为双列格式
```