LaTeX 资源及学习路径

本文档最后更新于 2019年10月20日.

前言

项目主页

源代码
GitHub
在线文档
Read the Docs

谁适合使用 TeX

  1. 存在需求规定必须使用 TeX, 且需求时间较长, 为三个月及以上, 同时以后仍有要求使用 TeX 的类似需求;
  2. 对格式化文本感兴趣, 且希望通过代码生成自己中意的PDF文件.

谁不适合使用 TeX

  1. 没有必须使用 TeX 的需求, 或需求时间较短 (此时建议采取外包);
  2. 英文不足以读懂以下句子.

LaTeX is a typesetting system that is very suitable for producing scientific and mathematical documents of high typographical quality. It is also suitable for producing all sorts of other documents, from simple letters to complete books. LaTeX uses TeX as its formatting engine.

TeX 术语中文规约

请参考 知乎, 其中共介绍了以下术语:

  • CTeX
    • CTeX 社区
    • CTeX 套装
    • ctex 宏包 ∈ CTeX 宏集

如何解决问题

可以参考 How to fix problems in R. 首先, 你应该知道 提问的智慧.

其次, 你有几个寻求帮助的高效途径 (以下依照优先级按照降序排列)

  1. 查找书籍或者 正规 的文档 (例如 install LaTeX, lshort, 刘海洋的书籍 <LaTeX 入门>等).
  2. 根据 关键词 使用搜索引擎搜索 (例如 Google, Bing).
  3. 向校内的 LaTeX 用户群咨询, 或者咨询老师与同学.
  4. 向社区寻求帮助 (例如 LaTeX Studio, CTeX forum, StackExchange).

快速获取文档提到的全部资料

请参照 附录 A.

联系我们

Contact Iydon @ email.

LaTeX 学习路线

阅读文档

_images/1.jpg

其中刘海洋的书籍 <LaTeX 入门>如下:

_images/14.jpg

解决问题

_images/10.jpg _images/8.jpg

LaTeX 相关资源

查找宏包文档

如果想查找宏包的介绍文档, 首先推荐的就是在命令行使用 texdoc 命令查看宏包的正式文档.

$ texdoc --help
Usage: texdoc [OPTION...] NAME...

Try to find appropriate TeX documentation for the specified NAME(s).
Alternatively, perform the given ACTION and exit.

Options:
  -w, --view        Use view mode: start a viewer. (default)
  -m, --mixed       Use mixed mode (view or list).
  -l, --list        Use list mode: show a list of results.
  -s, --showall     Use showall mode: show also "bad" results.

 ...

TeX 编译过程

请阅读 编译过程及部分中间文件的用途.

Tikz 入门

请阅读 LaTeX Studio 上面的回答: Tikz.

字体

To be continued.

参考文献

To be continued.

附录 A - 快速获取资料

下载 TeX 发行版

如果访问 OverLeaf 方便, 同时电脑硬盘局限, 请首先考虑使用 OverLeaf 进行云端编译. 否则如果电脑容量充足 (至少需要 8G), 可以考虑下载 TeX 发行版进行本地编译, 对于完全没有或只有一点接触过 TeX 的人来说, 推荐使用 TeX Live, 因为省去折腾下载安装宏包的麻烦, 可以更好地学习使用 TeX.

请手动打开以下链接下载 TeX 发行版, 链接虽为 CTAN 镜像网站, 但其会自动重定向至较快的镜像网站进行下载. 如需指定镜像网址, 请访问 镜像列表 进行进一步的选择.

TeX Live:
https://mirrors.ctan.org/systems/texlive/Images/texlive2019.iso
MiKTeX:
https://mirrors.ctan.org/systems/win32/miktex/source/miktex-2.9.7140.tar.xz
MacTeX:
https://mirrors.ctan.org/systems/mac/mactex/MacTeX.pkg

安装 TeX 发行版

请参照 啸行 大哥所整理的文档 install-latex. 最初创作文档的契机来自于许多人无法打开图形界面, 啸行 大哥只能一点点地解释命令行, 为提高效率, 所以将常见问题整理成文档的形式. 文档中介绍了在不同的系统上如何安装, 卸载与更新 TeX Live, 同时介绍了 TeX 中常用的编辑器 - TeXstudio. 请通过以下命令下载文档.

https://github.com/OsbertWang/install-latex/releases/download/v6.2/Install-LaTeX.pdf

安装 TeX 编辑器

TeXstudio:
# Windows
https://github.com/texstudio-org/texstudio/releases/download/2.12.16/texstudio-2.12.16-win-qt5.exe

# MacOS
https://github.com/texstudio-org/texstudio/releases/download/2.12.16/texstudio-2.12.16-osx.dmg

# Linux
echo 'DIY (do it yourself)'
其他编辑器:请参照相应文档进行配置.

下载 TeX 入门文档

如果已经安装 TeX 发行版, 请在命令行运行 texdoc lshort-zh, 否则运行以下命令下载入门文档.

http://mirrors.ctan.org/info/lshort/chinese/lshort-zh-cn.pdf

附录 B - 作者需检查的更新

TeX Live:texlive2019.iso
MiKTeX:miktex-2.9.7140.tar.xz
MacTeX:mactex-20190508.pkg
Install LaTeX:v6.2
TeXstudio:2.12.16

附录 C - 表情包

_images/3.jpg _images/5.jpg _images/6.jpg _images/12.jpg _images/13.jpg