安装 - nju-lug/NJUThesis GitHub Wiki

主流 TeX 发行版包括 TeX Live 和 MiKTeX 两种。一般建议 Windows 和 macOS 用户使用轻量化的 MiKTeX 套件。

如果你真的嫌 TeX Live 完整版太庞大,这里也提供了一个奇技淫巧。

下表是目前经过测试的环境。如果有其他可用不可用的环境,欢迎补充。

OS Tex 测试情况
Windows 10 TeX Live 2021
Windows 10 MikTex
Windows 10 TeX Live 2020 ×
Ubuntu 20.04 TeX Live 2021
南大TeX TeX Live 2021
Overleaf TeX Live 2021

TeX Live

常规方法

  1. 下载安装镜像

    为了避免网络波动造成的影响,首要推荐使用完整的 ISO 镜像作为安装源,可以从南大镜像站下载。

  2. 安装后的事情

    设置为使用南大源。

    更新全部宏包。

奇技淫巧

如果仅仅是使用本模板,可以采取最小化安装的方法。

Windows 和 Linux 用户可以从南大镜像站的 CTAN 页面下载 install-tl.zip,解压后得到安装脚本。设置为使用南大镜像源,然后以 infrastracture-only 模式安装。

随后以管理员身份打开终端,输入

tlmgr update --self
tlmgr install algorithms alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex blindtext booktabs caption chemfig cleveref cm-unicode colortbl csquotes ctex dashundergaps diagbox emptypage enumitem everypage fancyhdr fancyvrb fandol float footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools mhchem microtype multirow natbib newcomputermodern ninecolors njuvisual ntheorem pict2e physics preview psnfss setspace simplekv siunitx standalone symbol tabularray tex-gyre tex-gyre-math threeparttable translator underscore unicode-math url wrapfig xits xstring zhlipsum zref

添加环境变量后即可使用。

MiKTeX

南大镜像站下载安装,首次使用前使用 MiKTeX Console 更新全部宏包。