0

I am trying to run my LaTeX file but it keeps coming up with the message above. All I tried to do was insert an equation and it all of a sudden happened. I haven't got the pdf open and my document starts like this:

\documentclass[12pt]{report}
\usepackage{a4,amsmath,amssymb,url}
\usepackage[active]{srcltx}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{mathrsfs}
\graphicspath{ {C:/Users/Edd/Documents/uni/uni maths/Year 3/investigatoin/} }
\usepackage[utf8]{inputenc}
\renewcommand{\thesection}{\arabic{section}}
\setlength{\parskip}{0.5cm}

\title{Computing and Computability}
\author{Edward J. Russell}
\begin{document}
\maketitle
\tableofcontents

and ends like this:

\bibliography{bibfile}
\bibliographystyle{plain}
\end{document}
  • 1
    It would be more useful to show the part of the document that generates the error than the parts that don't. Or at least show the exact lines from the log file that show the error. – David Carlisle Mar 18 '15 at 20:53
  • For what it's worth, spaces in your file paths could be a problem. You need to use quotes for these and/or see How to include graphics with spaces in their path?. – Werner Mar 18 '15 at 21:30
  • It was working fine without the quotes around the file path for my pictures. The errors it comes up with are the one in the title for line one and "I can't write on the file 'investigation.pdf'. Please type another file name for output" for line 15 which is the line \maketitle. – Edd Russell Mar 19 '15 at 9:14
1
"I can't write on the file 'investigation.pdf'. 
Please type another file name for output" 

for line 15 which is the line \maketitle

that is not really a TeX error, the title just happens to be the start of the typeset text so the point at which Tex starts producing the output pdf file.

It is blocked from creating that file, this could be one of several reasons none directly connected to the specifics of the TeX code. The system could be banning writing to that file or that folder due to use access settings or (most commonly) adobe acrobat or some other application could be holding the file open and blocking write access or various other system or network effects.

David

| improve this answer | |

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.