GeneralError when converting file to pdf

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Becca
Posts: 1
Joined: Mon Jan 27, 2020 9:15 pm

Error when converting file to pdf

Post by Becca »

I am brand new to LaTeX and have no knowledge as to how it works. I have a school assignment where I need to knit my r markdown file to pdf or HTML. I am able to get the file into LaTeX, but I receive this error message when I try to convert it to pdf. I don't even know what to look for or where to begin as I was not shown how to do any of this but was assumed I would be able to do it. Any help would be very appreciated as this is crucial to be able to submit my assignment.

Code: Select all

! Sorry, but C:\Users\HP\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\x64\pdflatex.exe did not succeed.
! The log file hopefully contains the information to get MiKTeX going again:
! C:\Users\HP\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log
Last edited by cgnieder on Sun Aug 23, 2020 8:14 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Error when converting file to pdf

Post by Stefan Kottwitz »

Hi Becca,

welcome to the forum!

Read that file: C:\Users\HP\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log That file should contain an error message that tells you why pdflatex did not succeed.

You can also post this error message here, or the complete .log file as attachment. The attachment link is below the text edit field, when writing a post.

Stefan
LaTeX.org admin
shatakshi
Posts: 1
Joined: Mon Aug 17, 2020 2:17 pm

Error when converting file to pdf

Post by shatakshi »

I have worked little bit on latex earlier. Now i bought new desktop and installed MikTex, Texstudio, installed updates of Miktex as well. I am getting same problem of pdf not getting generated. I tried uninstalling/reinstalling all softwares, tried using texmaker instead of texstudio, but same problem persisted. Following is the error from the log file:


Code: Select all

2020-08-17 17:40:05,393+0530 ERROR pdflatex - C:\Program Files\MiKTeX\miktex\bin\x64\initexmf.exe did not succeed; exitCode: 1
2020-08-17 17:40:05,393+0530 ERROR pdflatex - output:
2020-08-17 17:40:05,393+0530 ERROR pdflatex - 
Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Lenovo\AppData\Local\MiKTeX\miktex\log\initexmf.log

2020-08-17 17:40:05,393+0530 FATAL pdflatex.core - The memory dump file could not be found.
2020-08-17 17:40:05,393+0530 FATAL pdflatex.core - Data: fileName="pdflatex.fmt"
2020-08-17 17:40:05,393+0530 FATAL pdflatex.core - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp:708
2020-08-17 17:40:05,393+0530 FATAL pdflatex - The memory dump file could not be found.
2020-08-17 17:40:05,393+0530 FATAL pdflatex - Info: fileName="pdflatex.fmt"
2020-08-17 17:40:05,393+0530 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2020-08-17 17:40:05,393+0530 FATAL pdflatex - Line: 708
2020-08-17 17:40:05,393+0530 INFO  pdflatex - this process (2512) finishes with exit code 1

Please help. Attached log file for reference. Thank you.
Attachments
texify.log
(10.83 KiB) Downloaded 168 times
pdflatex.log
(34.02 KiB) Downloaded 191 times
Last edited by cgnieder on Sun Aug 23, 2020 8:15 pm, edited 1 time in total.
Post Reply