[目录]
Latex介绍及安装
TeX 已经很老了,它在 1982 年以后基本就没有变化过。但是你相信世界上有如此完美的程序吗?它几乎没有bug, 而且你可以在几乎任何计算机上使用它,从PC机到Cray巨型机。经过几十年的风霜,它仍然是文档排版界的 “No.1”, “state-of-the-art”.它的王牌地位明显还将在21世纪继续保持!
安装教程,只看第一部分。若你想使用Vscode对程序进行编译则继续看完。
出现这样的问题,解决方案如下:
- 在系统变量中 path 中添加变量 C:\Windows\System32 ;
- 重启电脑;
- 管理员cmd运行 fmtutil-sys —all ;
Texstudo编译器,可以辅助编写程序。当然你用Texlive自带的Texwoks也行,愿意瞎搞用Vscode也行。
- Texstudo编译器优点:
- 具有自动补齐的功能,可提高编写效率,也是许多大佬使用的TeX编辑器;
- 在编译的功能上,明显强于Texworks和WinEdt10;
- 可一边编写代码,一边预览输出的文档效果。
- Texstudo编译器优点:
版本更新—在cmd中运行 tlmgr update —all
命令编译自行探索,这里只提供可视化操作过程
Latex 结构
Latex常用宏包
1 | \usepackage{amsmath} %数学公式 |
- 宏包问题详见此处:[LaTeX 指南] 功能性宏包推荐
数学建模模板
精心编写适合数学建模论文编撰!
1 | %定调文章格式 |
模块插入
1 插入图片
在可选项进行设置:
1 | \begin{figure}[H] |
- 语法: \includegraphics [可选项]{文件};
- 格式:ESP、PDF、PNG、JPG、BMP 可导入。
1 |
|
2 插入表格
- 代码实现三线表
1
2
3
4
5
6
7
8
9
10
11
12\begin{table}[!htbp]
\centering
\caption{\kaishu 标题}
\begin{tabular}{c c c}
\toprule[1.5pt]
符号 &含义 & 单位 \\
\midrule[1pt]
$ R $ &鼓面半径 &$ 0.2m $ \\
\toprule[1.5pt]
\end{tabular}
\end{table}
3 插入数学公式
此处仅仅只放环境代码,具体 数学语法 见这里。
版面设计
1 纸张大小
%导入版面设置的宏包— \usepackage{geometry}
使用命令: \geometry{papersize={宽, 高}}
如: \geometry{papersize={20cm, 15cm}}
2 边距设置
- 导入版面设置的宏包— \usepackage{geometry}
- 使用命令:
1
2
3
4
5\geometry{left 左边距
\righ 右边距
\top 上边距
\bottom 下边距
\geometry{left=5cm,right=5cm,top=5cm,bottom=5cm}
3、改变Section编号
1 | \renewcommand\thesection{\arabic{section}} |
- arabic 阿拉伯数字
- roman 小写的罗马数字
- Roman 大写的罗马数字
- alph 小写字母
- Alph 大写字母
4、取消段落首行缩进
1 | \noindent |