I'm trying write a report in LaTeX but TeXstudio won't let me. All I have is this:
\documentclass[a4paper,11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{graphicx}
\title{----}
\author{---\\By: ----}
\begin{document}
\maketitle
\paragraph{1}
\paragraph{2}
\subparagraph{Red}$\\$
\includegraphics{Red}
\subparagraph{Blue}$\\$
\includegraphics{Blue}
\end{document}
But when I click F1 to compile, TeXstudio spits this message:
Error: Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode "Prelab1".tex
What is the problem? Why can't I compile?
P.S: Ever since I switched from Ubuntu back to windows, writing LaTeX documents has been a massive pain T.T. What is the best LaTeX editor that won't give me a problem every single second?
pdflatex Prelab1
)? Seems like you distribution is not correctly set up.cd
to your TeX file and compile your document from there withpdflatex Prelab1
. This tests if your TeX distribution is correctly installed at all.