$\mathrm{\LaTeX}$ 入门
$\mathrm{\TeX\,Live}$
$\mathrm{\TeX\,Live}$ 下载
- TeX Live 清华镜像站:https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/
- MacTeX(MacOSX 系统版) 官网:https://www.tug.org/mactex/
$\mathrm{\TeX\,Live}$ 安装
安装免坑指南
- 安装时关闭杀毒软件
- 路径以及用户名不使用中文、特殊符号
安装手册
- 官方安装手册:https://tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf
- 啸行的指南:http://tug.ctan.org/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf
$\mathrm{\TeX\,Live}$ 更新宏包
- 管理员命令提示符
Windows+R
输入cmd
回车,输入命令:tlmgr update --self --all
在线编辑 LaTeX
- ShareLaTeX:https://www.sharelatex.com/login
- texpage:https://www.texpage.com/
编辑器
$\mathrm{\TeX}$studio编辑器
- $\mathrm{\TeX}$studio下载:https://www.texstudio.org/
- -shell-escape:https://zhuanlan.zhihu.com/p/60996450
LaTeX的基本框架代码如下:1
2
3
4\documentclass{ctexart}
\begin{document}
你好,\LaTeX
\end{document}
入门文档
- 一份不太简短的 $\mathrm{\LaTeX2e}$ 介绍: https://mirrors.tuna.tsinghua.edu.cn/CTAN/info/lshort/chinese/
- 《$\mathrm{\LaTeX}$ 入门》 刘海洋
- 查询宏包说明文档:windows+R 运行输入
texdoc 宏包名
相对靠谱的模板
Beamer模板
- 萧山Beamer:http://www.latexstudio.net/archives/12191
- 毕业答辩beamer:http://www.latexstudio.net/archives/649
书籍模板
基础问题
常用宏包的中文本地化:https://github.com/latexstudio/LaTeXPackages-CN
图表
- $\mathrm{\LaTeX2e}$ 插图指南:http://www.latexstudio.net/archives/10738
- EXCLE 转 $\mathrm{\LaTeX}$ 表格:https://ctan.org/tex-archive/support/excel2latex/
符号
- The Comprehensive $\mathrm{\LaTeX}$ Symbol List:windows+R 运行输入
texdoc symbols-a4
- Detexify:http://detexify.kirelabs.org/classify.html
- Unicode 符号
\symbol{<十进制编码>}
\symbol{'<八进制编码>}
\symbol{"<十六进制编码>}
\symbol{`<字符形式(特殊符号须加转义符\)>}
$\mathrm{\LaTeX}$ 错误排查
MWE 最小工作示例
二分法:检查代码问题、检查宏包冲突
- 检查代码问题:复制一份相同文件 → 删除一半代码 → 编译
- 成功/失败 → 测试另一半代码是否正确 → 只有一半成功 → 继续二分 ┈ → 无法再精简代码
- 均失败 → 将内容全部删除 → 测试宏包冲突
- 检查宏包冲突:复制一份相同文件 → 将内容全部删除 → 编译
- 成功:大概率不是宏包冲突
- 失败:宏包冲突 → 尝试删除一半宏包/调换宏包顺序
$\mathrm{\LaTeX}$ 提问指南
- QQ群
- 论坛
- $\mathrm{\LaTeX}$ Stack Exchange:https://tex.stackexchange.com/
$\mathrm{\LaTeX}$ 进阶
$\mathrm{\LaTeX}$ 命令行编译
Windows+R
输入 cmd
回车,输入 cd /d 文件路径
,例如:cd /d C:\Users\hy\Desktop\gougu
- 未调用minted宏包
xelatex 文件名
,例如:xelatex document - 调用minted宏包
xelatex -shell-escape 文件名
,例如:xelatex -shell-escape document - 参考文献
bibtex 文件名
biber 文件名
- 索引:
makeindex 文件名
进阶学习资料
- 宏包基本架构:clsguide.pdf、usrguide.pdf
- 一些辅助宏包:ifthen宏包、etoolbox宏包
大牛专栏
李阿玲
刘海洋
G Grindelwald
- G Grindelwald的知乎主页:https://www.zhihu.com/people/function_null/answers
慕子
XiangdongZeng
- XiangdongZeng的博客:https://stone-zeng.github.io/
- stone-zeng的知乎主页:https://www.zhihu.com/people/stone-zeng-32
孟晨
$\mathrm{\LaTeX}$ 入土
本节的参考资料:https://www.zhihu.com/question/393969532
TeX/LaTeX底层命令参考资料
底层的TeX命令
- 《The $\mathrm{\TeX}$ Book》 高德纳
- 《$\mathrm{\TeX}$ by Topic》:https://mirrors.tuna.tsinghua.edu.cn/CTAN/info/texbytopic/TeXbyTopic.pdf
LaTeX内核和标准文档类命令
- source2e.pdf:LaTeX2e内核的源代码
- classes.pdf:LaTeX标准文档类的源代码
- macros2e.pdf
$\mathrm{\LaTeX3}$ 参考资料
- interface3.pdf
$\mathrm{\LaTeX}$开发字体参考资料
- fntguide.pdf