1

I had a book that contains the varwidth package. Until now everything was OK, but finally this error appeared:

Sorry, but "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe" did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\HP 250\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log

This problem appeared after that problem. I don't know if they are related. What do you believe? How can I solve it?

Here is the log-file and this is my code:

\documentclass[a4paper,11pt,twoside]{book}
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}

\usepackage{varwidth}

\begin{document}

   text

\end{document}

Thank's in advanced!

15
  • No issues on TeX Live. Have you considered completely reinstalling MikTeX?
    – daleif
    Feb 7 '19 at 9:35
  • The error message doesn't say anything at at about the source of the problem. Does the file compile if you remove varwidth? Feb 7 '19 at 9:44
  • @UlrikeFischer , yes it compiles if I remove varwidth from the code I posted. I 'm saying "from the code I posted", because if I delete it from the book the error appears again. So, I suppose that an other package has problem too. Feb 7 '19 at 9:54
  • BTW: The log location you cite, seems odd, what is explicitly in the log for the document.
    – daleif
    Feb 7 '19 at 9:55
  • Then varwidth is probably not installed and miktex has problems to install it one the fly. Try to find the miktex-console and start it. Then search in the package list for varwidth and try to install it manually - if it doesn't work, you hopefully will at least get a better error message saying what doesn't work (e.g. proxy). Feb 7 '19 at 9:58
2

With my current MiKTeX pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7050 64-bit) (preloaded format=pdflatex 2019.4.12) I can compile your give code without any errors or warnings ...

For me it seems your windows system is broken ...

Try the following steps:

  1. Shutdown your windows, wait 1 minute (to get the hdd stop running) and start your computer.
  2. Try to compile now again your given code. Result? It compiles: Good! Error message? Add the complete error message to your question please ...
  3. If the error message is still there try to deinstall MiKTeX (use windows-key + s, then type software to find the windows tool to deinstall software. Choose MiKTeX 2.9 to be deleted.). Check that the directories containing the MikTeX code with MiKTeX 2.9 are deleted on your hdd. Check if you have still entries for MiKTeX 2.9in your registry ... Report the result in your question ...
  4. Shutdown the computer, restart it after a minute (Yes windows loves to be rebooted ... Do not omit this step, that could result in bad results!).
  5. If you have a registry cleaner run it to get rid of all entries for MiKTeX 2.9 in the registry (be careful, a wrong step here can completly ruin your windows with the result that you have to install windows OS new!!!)
  6. Reboot the computer!
  7. Download the current complete (netinstaller) MiKTeX install program from the homepage of MiKTeX and run it. Make sure it terminates normaly!
  8. Reboot the computer.
  9. Compile your given code again. No errors, okay. Errors: well I guess your system is so havily damaged you shout completly reinstall the computer ...
5
  • thanks for your answer! The problem has solved by deleting and reinstalling MiKTeX. So I don't know what would happen if I followed your advise. Jul 16 '19 at 15:44
  • 1
    @KώσταςΚούδας Well, if reinstalling already worked, great, then never change a running system :-) Then your older question is obsolete?
    – Mensch
    Jul 16 '19 at 20:28
  • Yes, is obsolete... Jul 16 '19 at 22:13
  • 1
    @KώσταςΚούδας Can you vote to close it? If you want to delete it can you please delete the link in your question here to that obsolete question? Perhaps add a sentence describing the issue you had ....
    – Mensch
    Jul 16 '19 at 22:18
  • I agree. What reason should I check? Jul 17 '19 at 16:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.