文章目录
Miscellaneous
使用镜像 tlmgr mirror
tuna.tsinghua
CTAN (The Comprehensive TeX Archive Network) 镜像源可以使用 TeX Live 管理器 tlmgr 更改
- 永久更改镜像源,在命令行中执行:
tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
- 临时切换镜像源,可以用如下命令:
tlmgr update --all --repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
其中的 update --all 指令可根据需要修改。
语法检查 Grammer check
安装LanguageTool
1、Download windows app
2、Download texstudio integration
Reference
将从链接2中下载的文件解压后,进入解压文件夹并在dos中进入该路径,在命令行中输入:
java -jar .\languagetool.jar
弹出下面这个界面
设置结束后dos出现下面命令
配置 texstudio
注意是java 配置是javaw
default language 一定要选上
BUG’s
卸载texlive2020 安装texlive2021 后报错
expl3.sty:77: LaTeX3 Error: Mismatched LaTeX support files detected
Reference
在DOS中输入下面指令
fmtutil-sys --all
latex error “undefined control sequence” \begin{document}
这种情况一般有三种情况:
- 包含了过时地包,\usepackage{} 注释掉后一个一个添加排除
- 排版问题,\begin{document}放置的位置与
模板
定义的位置不同,需要看模板说明调整?? - \begin{document}前有语法错误, 比如:
\documentclass[a4paper,fleqn]{cas-sc} 后必须使用\usepackage[authoryear,longnamesfirst]{natbib}