https://github.com/MatNoble/LaTeX-Document
LaTeX Templates for Document
https://github.com/MatNoble/LaTeX-Document
emacs latex latex-document latex-template tex
Last synced: about 2 months ago
JSON representation
LaTeX Templates for Document
- Host: GitHub
- URL: https://github.com/MatNoble/LaTeX-Document
- Owner: MatNoble
- License: lppl-1.3c
- Created: 2019-12-05T15:48:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T16:31:43.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T01:38:02.486Z (2 months ago)
- Topics: emacs, latex, latex-document, latex-template, tex
- Language: TeX
- Homepage: https://github.com/MatNoble/LaTeX-Document
- Size: 6.58 MB
- Stars: 79
- Watchers: 5
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaTeX-Document 中英文科技文档模板
> **特色:** 为文章增加红, 蓝, 黄, 绿四色(Google 配色), 使文章不再单调. 定理部分借鉴 [这里](https://github.com/kalxd/morelull)
模板源代码有适当注释, 简单易懂, 易上手, 易自定义. 有问题, 欢迎提交 [Issues](https://github.com/MatNoble/LaTeX-Document/issues)
### 使用说明
```shell
git clone [email protected]:MatNoble/LaTeX-Document.git
```
克隆到本地即可使用.预览
### 英文预览
[更多预览](https://drive.google.com/file/d/1aq4GngbqB-ty3wNo9SMGSE3o_c6jwWtd/view)
### 中文预览
[更多预览](https://drive.google.com/file/d/1Ox999cE1c-ULVYXXrcWTJJ_JSN8Ymidm/view)
字体问题
### 公式字体
```
\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/adobe-fonts/source-han-serif/releases/tag/1.001R)
- [思源黑体](https://github.com/adobe-fonts/source-han-sans/releases/tag/2.001R)
思源字体是开源的,更好看的宋体和黑体。[由 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}
```## 授权情况
本模板代码按 [LPPL v1.3c 协议](https://github.com/MatNoble/LaTeX-Document/blob/master/LICENSE) 授权## 联系方式
- Blog: [matnoble.github.io](https://matnoble.github.io/)
- Mail: [[email protected]](mailto:[email protected])