overleaf在线使用LaTeX踩坑与解决方案

您所在的位置:网站首页 overleaf怎么下载模板压缩包 overleaf在线使用LaTeX踩坑与解决方案

overleaf在线使用LaTeX踩坑与解决方案

2023-11-18 04:51| 来源: 网络整理| 查看: 265

1、刚开始导入后编译就不通过, 报错: This compile didn’t produce a PDF. This can happen if: There is an unrecoverable LaTeX error. If there are LaTeX errors shown below or in the raw logs, please try to fix them and compile again. The document environment contains no content. If it’s empty, please add some content and compile again. This project contains a file called output.pdf. If that file exists, please rename it and compile again.

解决方案:更改编译器为XeLaTeX,更改主入口为写文章的那个文件(默认一般为main) 在这里插入图片描述

2、编辑过程中latex能编译通过但是pdf为空白

解决方案:代码问题,查看log,回退到上一步找到出错的代码,可能是代码中汉字的问题

3、段与段落之间回车后并没有分段

在这里插入图片描述 解决方案:LaTeX段落的区分需要回车两次,即第二段和第一段之间至少要有一空行。

4、下标的错误,Double subscript : x_i_j 在这里插入图片描述

解决方案:用括号把他们括起来表示一个下标V=[v_{ij}] 或者使用$v_{i j}$

5、图片居中后面的文字也居中了

解决方案: 1)用括号把居中图片代码括起来,且回括号一定要空两行

{\centering\includegraphics[width=12cm]{Content/network.jpg} }

2)使用\begin{center}和\end{center}框选需要居中的部分

6、Underfull \hbox (badness 10000) in paragraph underfull是说该处排版内容太稀疏了(badness 10000)是TeX衡量排版效果好不好的一个尺度; 如果是Overfull则是说该处内容太多,超出了设定的印刷范围,这多数是由于系统无法找到合适的自动换行点造成的。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3