# LaTeX-Document
**Repository Path**: h2hermit/LaTeX-Document
## Basic Information
- **Project Name**: LaTeX-Document
- **Description**: LaTeX Templates for Document
- **Primary Language**: Unknown
- **License**: LPPL-1.3c
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-07-18
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# LaTeX-Document 中英文科技文档模板
自用中英文文档模板(数学).
为文章增加红, 蓝, 黄, 绿四色(Google 配色), 使文章不再单调. 定理部分借鉴[这里](https://github.com/kalxd/morelull)
模板源代码有适当注释, 简单易懂, 易上手, 易自定义.
有任何问题, 欢迎提交[Issues](https://github.com/MatNoble/LaTeX-Document/issues)!
## 预览
### 英文预览
[更多预览](https://drive.google.com/file/d/1aq4GngbqB-ty3wNo9SMGSE3o_c6jwWtd/view)
### 中文预览
[更多预览](https://drive.google.com/file/d/1Ox999cE1c-ULVYXXrcWTJJ_JSN8Ymidm/view)
## 使用说明
`git clone git@github.com:MatNoble/LaTeX-Document.git` 到本地即可使用.
### 公式字体
```
\usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo,amsbb,eucal]{mtpro2}
% \usepackage{newtxtext,newtxmath} % New Times Roman
% \usepackage{mathptmx} % 打印 times
% \usepackage{charter} % 屏读
% \usepackage{fourier}
```
*注: mtpro2 字体需自行安装*
### 中文字体
中文版需要下载安装字体[在这里](https://github.com/MatNoble/Fonts)
- 思源宋体
- 思源黑体
- Kaiti
思源字体是开源的,更好看的宋体和黑体。[由 Adobe 和 Google 合作开发](https://source.typekit.com/source-han-serif/cn/)
### 代码环境
[Minted](https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted) 是 Latex 上非常好用的代码高亮工具, 可以借助 Python 包 Pygement 根据不同的语法高亮.
需要安装 python, 然后使用工具安装 pygments. 这里假设你已经安装了 pip 和相关 Python.
1. `pip install Pygments`;
2. 使用 xelatex 编译的时候需要加上参数 `–shell-escape`.
效果如下:
若不使用代码环境, 在对应的 `.sty` 文件中把对应代码注释掉即可.
```
% 代码高亮
% \RequirePackage{minted}
% \usemintedstyle{emacs}
```
### Using Emacs as LaTeX editor
#### Table
[使用 Emacs 制作 LaTeX 表格](https://matnoble.me/posts/using-emacs-to-make-latex-table/)
## 关注我吧
## 授权情况
本模板代码按[LPPL v1.3c 协议](https://github.com/MatNoble/LaTeX-Document/blob/master/LICENSE)授权
## 联系方式
Mail: [hustmatnoble@gmail.com](mailto:hustmatnoble@gmail.com)