im experiencing a kind of weird error. I receive the "! Missing $ inserted." error message for line 727. The problem: the line is empty! In the error message he seems to load an R document that I tried to include before. However, I have deleted this line of code as I have spaces in the folder paths. Now, I can work with my file at all. Can you please help? My last save is 24h old... When i open the file with TexMaker I always receive a "File not found" error message.
Even if I shorten the document to have <727 lines, I still get an error for line 727
\documentclass[12pt,a4paper,oldfontcommands,oneside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[dvips]{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{xcolor}
\usepackage{times}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage{fancyhdr}
\usepackage{etoolbox}
\usepackage{eurosym}
\usepackage[printonlyused]{acronym}
\usepackage{booktabs}
\usepackage[bottom]{footmisc}
\setlength{\footnotemargin}{0.0cm}
\usepackage[breaklinks=true,colorlinks=true,linkcolor=black,urlcolor=black,citecolor=black,
bookmarks=true,bookmarksopenlevel=2]{hyperref}
\usepackage[nosectionbib]{apacite}
\usepackage{epstopdf}
\usepackage{geometry}
%%% PRINTING OPTIONS
\geometry{total={210mm,297mm},
left=33mm,right=33mm,
bindingoffset=0mm, top=25mm,bottom=20mm}
\OnehalfSpacing
%%% CHAPTER'S STYLE
\chapterstyle{article}
%%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS
\setsecheadstyle{\Large\bfseries\sffamily\raggedright}
\setsubsecheadstyle{\large\bfseries\sffamily\raggedright}
\setsubsubsecheadstyle{\bfseries\sffamily\raggedright}
%%% STYLE OF PAGES NUMBERING USING THE FANCYHDR PACKAGE
\pagestyle{fancy}
\fancyhf{}
\lhead{\leftmark} %%% Show Chapter left in Header
%\lhead{\leftmark} %%% Show Section left in Header
\cfoot{\thepage}
\maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered
\maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\begin{document}
\end{tabular}
\clearpage
\chapter{Results}
\section{Placeholder}
\appendix
\chapter{The Internal Ratings-Based Approach of the Basel II Concept}
\[Capital = \left\{45\times N \left[\frac{IN(PD)}{\sqrt{1-R}} + \frac{\sqrt{R} \times IN(0.999)}{\sqrt{1-R}}\right] - 45 \times PD \right\} \times \left[\frac{1+(M-2.5) \times b(PD)}{1-1.5 \times b(PD}\right]\]
\chapter{Second Appendix}
\clearpage
%\markboth{BIBLIOGRAPHY}{} %%% BIBLIOGRAPHY in Header
\bibliographystyle{apacite}
\bibliography{References}
\clearpage
\end{document}
! Missing $ inserted.
<inserted text>
$
l.727 ...is/R/Down-and-in Call/down-and-in_call.R}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Package Listings Error: File `C:/Users/User/Documents/Master Thesis/R/Down-an
d-in Call/down-and-in_call(.R)' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: R)
Enter file name:
! Emergency stop.
<read *>
l.727 ...is/R/Down-and-in Call/down-and-in_call.R}
*** (cannot \read from terminal in nonstop modes)
\documentclass{...}
and ending with\end{document}
.Call/down-and-in_call.R
for some without underscore_
may be a simple way to solve your problem.