LyX配置
- 打开文件时显示
The selected document class Article (Standard Class) requires external files that are not available. The document class can still be used, but the document cannot be compiled until the following prerequisites are installed: article.cls. reconfigure失败
Solution: - 编译缺少某个文件(.sty, .cfg)
Solution:- 在www.ctan.org搜索这个文件, 查看是哪个包的
- MiKTeX Package Manager中安装这个包
- MiKTeX Options中Refresh FNDB & Update Formats
- 安装成功后在cmd中输入
kpsewhich package.cfg
理应会看到路径
LaTeX整理文档
删除注释行^ *%.*\n
→null
删除行末注释 *%.*\n
→\n
删除超过2行的空行^( *\n){2,}
→\n
将两段连在一起, 删除末首的空格(第一行不以{
开头, 第二行不以\
, \n
, &
开头)(?<!^ *\\.*)(?<=.) *\n *(?! *[\\|\n|\&])
→
将超过2个空格变成1个(?<=.) {2,}
→