使用Latex编译tex生成pdf的时候出现了这个错误。
理论上是不应的。
因为我只是复制了一个文件夹,然后改了一个名字而已。
出现问题,总的解决。
网路上有人Sorry, but pdflatex did not succeed有一个特别好的回答,我就直接复制了:

The comments already provide good information. Much of it has been written many times, in response to many users, who have problems with (Mik)TeX on Windows, using a GUI. Commenters, please forgive me if I attempt to summarize your info as an answer:
I am specifically addressing users who have used TeX before, in any content. So the question is “Why does it not work now, when it worked in the past?” rather than “Help me, I know nothing about TeX.”
(1) Windows has various file permission strategies, which sometimes confuse a program installer. This is especially the case when you computer has migrated through Windows 7-8-10, but also applies to those using a fixed version of Windows.
One tactic is to perform an “administrative install” of TeX. To do that, right-click on the installer, and pick from the context menu. You will get a warning message. This can only be done if you are an administrator, of course. However, I advise against installing any program on Windows with administrative rights. The program will likely install, but you are inviting trouble.
Another alternative (which I heartily recommend) is to get a “portable” installer for your TeX system. MikTeX has a portable version. TeXLive can also be installed in portable fashion, using the same installer as you ordinarily would use.
Then, you install TeX into a convenient sub-folder of your user home directory (preferably avoiding paths with spaces or underscores in the name). You can even install to a USB. And, when finished, you can copy the installation and use the copy on a different computer.
If the issue involves file permissions, the portable installation avoids those issues, without requiring administrative rights.
(2) Sometimes, the problem involves an interaction between the GUI (TeXStudio, WinEdt, etc.) and the TeX installation.
To see if this is the case, attempt to compile your document via command line.
If your TeX installation is not portable, do this: Open a command prompt in the directory where your *.tex document is located. Then type whichever one of these commands is closest to what you are trying to do:
pdflatex nameofyourdocument.tex
lualatex nameofyourdocument.tex
xelatex nameofyourdocument.tex
If that fails, then the problem is with the TeX installation rather than the GUI. If it succeeds (look for the PDF in the same folder) then the problem is an interaction with the GUI.
If instead your TeX installation is portable, then (in Windows) launch it, so that its menu appears. From its menu, choose a command prompt. Then do the above.
(3) If you are using a GUI and it cannot locate TeX at all, then use its program menu, and see if you can change something in the configuration, where it will look for TeX binary files.
(4) This does not solve every problem. But it does seem to address most issues on Windows.
(5) On the other hand, the most common problem among Linux users is having a distro-installed TeX (or portions remaining from previous installation) conflicting with a manually-installed TeX.

简短解说就是要确定是tex出问题了,还是gpi界面出问题了。
终端运行下面的命令:

pdflatex nameofyourdocument.tex
lualatex nameofyourdocument.tex
xelatex nameofyourdocument.tex

果不其然,我的出错了,提示:

2021-05-02 16:49:01,974+0800 INFO  pdflatex - mpm: package repository digest: b2158409da406b706beff7147014b152
2021-05-02 16:49:04,563+0800 INFO  pdflatex - mpm: going to download 350384 bytes
2021-05-02 16:49:04,564+0800 INFO  pdflatex - mpm: going to install 5 file(s) (1 package(s))
2021-05-02 16:49:05,929+0800 INFO  pdflatex - mpm: downloading https://mirror.bjtu.edu.cn/CTAN/systems/win32/miktex/tm/packages/soul.tar.lzma...
2021-05-02 16:49:06,710+0800 INFO  pdflatex - mpm: 0.35 MB, 3.63 Mbit/s
2021-05-02 16:49:06,782+0800 INFO  pdflatex - mpm: extracting files from soul.tar.lzma...
2021-05-02 16:49:19,309+0800 FATAL pdflatex - The installed file does not exist.
2021-05-02 16:49:19,309+0800 FATAL pdflatex - Info: fileName="C:\Users\*yourusername*\AppData\Local\Programs\MiKTeX 2.9\tex/latex/soul\soul.sty"

说的就是明明已经下载好了,都解压了,然而提示“The installed file does not exist.”

可能是命令行不中用了?

接下来就手动下载安装一个soul.sty文件。

来学习一下LaTeX .sty文件缺失解决办法:
总结一下:

  1. 官网下载对应的压缩包;
  2. 命令行运行:latex soul.ins,就会生成soul.sty
  3. 拷贝soul.sty文件到安装位置下的*/tex/latex/graphics/下(提示:找不到安装位置可以开始找到应用程序,右键开打安装位置)
  4. 终端运行texhash刷新

上面的问题就解决了,嗯,出现了新的问题:
latex运行报错:Package inputenc Error: Invalid UTF-8 byte “A1
这个问题好解决,文件开头添加一行编码指定的代码就行:

\UseRawInputEncoding

这下子,生成了熟悉的PDF。

Sorry, but pdflatex did not succeed相关推荐

  1. LaTeX技巧006:使用pdfLaTeX时,添加PDF文件属性的方法

    PDF文件中含有标题.主题.作者.关键字等属性.这些属性,在Acrobat Reader或者Foxit Reader中可以通过"文件"菜单下的"属性"查看,在A ...

  2. Package CJK Error: Invalid character code. 问题解决方法--xelatex和pdflatex编译的转换

    Package CJK Error: Invalid character code. 问题解决方法--xelatex和pdflatex编译的转换 解决方法:添加格式说明信息 将下面语句: \docum ...

  3. TeX 家族(TeX, pdfTeX, XeTeX, LuaTeX, LaTeX, pdfLaTeX, XeLaTeX …)

    TeX 家族 带有 TeX 的词,仅仅是本文就已经提到了 TeX, LaTeX, XeLaTeX.通常中国学生面对不了解意思的一群形近单词,都会有一种「本能的恐惧」(笑~). 因此,「大神们」在为新手 ...

  4. pdfLaTeX和XeLaTeX

    最近写论文,借用IEEEtran模板时,发现一个问题--编译后标题和摘要没加粗! 最后将默认编译器XeLaTeX改为pdfLaTeX. 原因如下: pdfLaTeX是比较原始的版本,对Unicode的 ...

  5. Session 'app': Installation did not succeed.The application could not be installed: INSTALL FAILED I

    在Android Studio中使用模拟器进行调试的时候,会出现错误信息无法进行模拟器调试 错误信息 Session 'app': Installation did not succeed.The a ...

  6. Fast dev didn't succeed, trying another location

    Android 调试时,出现快盘加载失败问题.调试输出如下: Fast dev didn't succeed, trying another location 解决办法: 将项目属性->Andr ...

  7. Tex, LaTex, pdflatex, xelatex, xetex等的区别和关系

    概念: TeX:一种宏语言. Plain Tex: Tex中的一个最基本的宏集合与TeX的基础语言构成的一种格式. LaTex: Tex中的一个宏集合,构成一种与 Plain TeX 不一样的格式. ...

  8. 还是关于pdflatex生成的文件复制粘贴出现乱码问题

    高手在人间-- 一直没有解决这个问题,使用pdflatex命令生成的pdf文档,在复制粘贴过程中,出现乱码问题,后来找到这个网页: http://hi.baidu.com/pcghost/item/b ...

  9. 【web安全】从2022中科大hackgame web中学习pdflatex RCE和python反序列化

    ctf比赛地址:https://hack.lug.ustc.edu.cn 大佬博客里wp写的很清楚了,官方wp也写的很好,我比不过大佬,只能把基础多讲一些(大佬在tttang把wp全发了T0T) 官方 ...

最新文章

  1. windows 2008创建群集“xxx”时出错。由于超时时间已过,该操作返回
  2. matlab程序怎么改,修改matlab程序
  3. [转]面向对象(1、三大特征;2、六大原则)
  4. 台式计算机驱动程序未被安装,电脑未能成功安装设备驱动程序怎么办
  5. websocket学习总结记录
  6. matlab仿真三相交流电路,三相交流调压电路的MATLAB仿真
  7. 你真的弄清楚FocalLoss的细节了吗?
  8. 70 行 Python 代码写春联,行书隶书楷书随你选
  9. 8脚 tja1050t_TJA1050芯片手册.pdf
  10. ios:应用发布蒲公英流程
  11. 第四节(4.4) 维修技巧 电路图识图
  12. 百度云c++语言模拟器,Android模拟器中运行纯C++程序(一)
  13. 基于Java+Swing+Socket实现中国象棋-网络版
  14. 记录一次有点意思的阿里云服务器被黑的经历
  15. 阿里云自助建站+模板建站+功能定制建站如何选择,详细教程
  16. [经典面试题]排列组合专题
  17. 计算机人脸识别算哪个专业,人脸识别属于计算机什么领域(图文)
  18. 去外包公司的伙伴们小心了!——亲身经历,数数外包公司的坑
  19. 消费者详解-消费消息(1)
  20. linux 程序更新使用U盘,linux下如何使用U盘?

热门文章

  1. css框架bootstrap ie,前端开发必备的10个Bootstrap工具
  2. 计算机常用英语单词1500
  3. 谷歌浏览器不能使用opener属性的问题和解决
  4. 30系显卡怎么配置rangenet++和SuMa++
  5. IDEA 读取maven本地仓库jar包,而不是读取module项目代码的解决方案
  6. Angular Material 学习笔记 Chips
  7. b2b2c商城系统开发
  8. 凑个热闹,发布一下Consolas和雅黑的混合字体
  9. MBA-day19 如果p则q矛盾关系p 且非q
  10. 联通签到php,联通营业厅微博双签(云函数自动签到)