draft done

This commit is contained in:
SchwarzerYV
2024-05-15 14:53:21 +08:00
parent 4bfba5a92a
commit 1cebc5add8

View File

@ -911,22 +911,22 @@ x = \begin{cases}
### 列表 ### 列表
```latex ```latex
- First item | - First item |
- Second item | - Second item |
\begin{enumerate} \begin{enumerate}
\item First item \item First item
\item Second item \item Second item
\end{enumerate} \end{enumerate}
1. First item | 1. First item |
2. Second item | 2. Second item |
\begin{itemize} \begin{itemize}
\item First item \item First item
\item Second item \item Second item
\end{itemize} \end{itemize}
First item |First item |
Second item |Second item |
\begin{description} \begin{description}
\item First item \item First item
\item Second item \item Second item
@ -956,7 +956,7 @@ Second item
\caption{First subfigure} \caption{First subfigure}
\label{fig:sub1} \label{fig:sub1}
\end{subfigure} \end{subfigure}
\hfill % Adds horizontal space between the subfigures \hfill % 在子图之间添加水平间距
\begin{subfigure}[b]{0.45\textwidth} \begin{subfigure}[b]{0.45\textwidth}
\centering \centering
\includegraphics[width=\textwidth]{path/to/your/image2.jpg} \includegraphics[width=\textwidth]{path/to/your/image2.jpg}
@ -972,13 +972,13 @@ Second item
```latex ```latex
\begin{table}[hbpt] \begin{table}[hbpt]
\centering % Centers the table \centering % 居中表格
\caption{Example Table} \caption{Example Table}
\label{tab:example} \label{tab:example}
\begin{tabular}{|c|l|r|} % Aligns columns: center, left, right \begin{tabular}{|c|l|r|} % 对齐列:居中、居左、居右
\hline % Inserts a horizontal line \hline % 插入一条水平线
\textbf{Column 1} & \textbf{Column 2} & \textbf{Column 3} \\ \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 Data 4 & Data 5 & Data 6 \\ \hline
\end{tabular} \end{tabular}
\end{table} \end{table}
@ -992,7 +992,45 @@ LaTex排版
```latex ```latex
\usepackage[left=3cm, right=3cm, top=2cm, bottom=2cm]{geometry} or \geometry{left=3cm, right=3cm, top=2cm, bottom=2cm} \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'
``` ```
另见 另见