4

I just switched to a new laptop, installed Miktex and Texmaker, and cannot get pdflatex to work. When started from inside Texmaker, the program runs for a few seconds, then spits out nothing. No error messages (or messages of any kind) in the log, no PDF, nothing. When run from the command line (using 'C:\Users\Name> pdflatex "D:\test.tex" ), I get a message that pdflatex is starting:

"Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Charlie Beer>pdflatex "D:\test.tex"
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit)
entering extended mode
(D:/test.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9n> and hyphenation patterns for 69 languages loaded.

C:\Users\Charlie Beer> "

then it runs for a few seconds and I get an error that the program pdflatex has stopped responding and must be closed. The test file I'm using is a pretty basic document which builds just fine on both of the other computers to which I have access. Any help on getting this to run properly would be appreciated. Thanks.

UPDATE: When I simplify my file to use only basic packages, it builds:

\documentclass[12pt]{article}  
\usepackage{amsmath}  
\usepackage{amsfonts}  

\title{A Stochastic Control Model for Energy Markets}  
\author{Charles Beer}  
\date{\today}  
\begin{document}  
\maketitle  
\section{Abstract}  
PLAIN TEXT  
\end{document}  

However, if I try to use extra packages, it seems that Miktex's package manager hangs and causes a crash:

\documentclass[12pt]{article}  
\usepackage{amsmath}  
\usepackage{amsfonts}  
\usepackage{color,soul}  
\usepackage[margin=1in]{geometry}  

\title{A Stochastic Control Model for Energy Markets}  
\author{Charles Beer}  
\date{\today}  
\begin{document}  
\maketitle  
\section{Abstract}  
PLAIN TEXT  
\end{document}  
  • This sounds very odd. Would you mind to share your text.tex with us? Maybe the culprit is in there. – Henri Menke Feb 2 '16 at 21:54
  • Sorry, I'm not that familiar with posting here. I'm looking up how to post in a readable format and will get back to you. – Charles Beer Feb 2 '16 at 22:05
  • Actually, you gave me the idea to simplify it even further (I had just pulled a page from an earlier document). If I use only basic packages, it does build. So, it appears that Miktex's package manager is not launching correctly to install new packages on the fly. Strange that I get no dialog box or error message, though. – Charles Beer Feb 2 '16 at 22:10
  • Sorry about the continual updates. Every time I try to copy my test file, it shows up with no line breaks. If I post it in a new question, it appears fine. But, in comments here, it all squishes together. – Charles Beer Feb 2 '16 at 22:16
  • check at first if your system is up-to-date. tex.stackexchange.com/a/108490/2388. If the problem persists make a bug report. – Ulrike Fischer Feb 2 '16 at 22:24
1

I was hitting exactly the same problem, and solved it by uninstalling the x64 version of MiKTeX and installing the x32 version instead. I'm now prompted to download the missing packages.

Hopefully this answer doesn't come too late!

  • 1
    Welcome to TeX.SX! It does not come too late, because the OP has already solved the issue this way according to his comment. – Heiko Oberdiek May 16 '16 at 12:05

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.