PdfLateX hangs on a single-line unnumbered equation,
here is a (possibly) minimal example:
\documentclass[english,pointlessnumbers, abstracton, headsepline, open=any]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,headsep=3cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}
\usepackage{prettyref}
\usepackage{refstyle}
\usepackage{float}
\usepackage{units}
\usepackage{textcomp}
\usepackage{url}
\usepackage{amsmath}
\usepackage{makeidx}
\makeindex
\usepackage{graphicx}
\usepackage{esint}
\PassOptionsToPackage{normalem}{ulem}
\usepackage{ulem}
\usepackage{nomencl}
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=4,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\let\pr@chap=\pr@cha
\AtBeginDocument{\providecommand\figref[1]{\ref{fig:#1}}}
\AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}}
\AtBeginDocument{\providecommand\eqref[1]{\ref{eq:#1}}}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\RS@ifundefined{subref}
{\def\RSsubtxt{section~}\newref{sub}{name = \RSsubtxt}}
{}
\RS@ifundefined{thmref}
{\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
{}
\RS@ifundefined{lemref}
{\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% Special symbols as (c), �
\usepackage{textcomp}
% Custom enumeration lists
\usepackage{enumerate}
% Line spacing
% \usepackage{setspace}
% \usepackage[onehalfspacing]{setspace}
\usepackage[doublespacing]{setspace}
\usepackage{ %a4wide,
ellipsis, fixltx2e, mparhack, % correct errors with margins
booktabs, longtable % better tables
}
\usepackage[automark]{scrpage2} % Page number at bottom right
\automark[chapter]{chapter}
\clearscrheadfoot
\ohead{\\\headmark} % Paragraph heading
\ofoot[\pagemark]{\pagemark}
\setheadsepline{1pt} % Header bottom line
\setfootsepline{0pt} % Footnote top line
\setfootbotline{0pt} % Footnote bottom line
% Better justify
\usepackage{microtype}
\usepackage{ifpdf} % part of the hyperref bundle
\ifpdf % if pdflatex is used
% Set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}
{\usepackage[scaled=0.92]{helvet}
\usepackage{mathptmx}
\usepackage{courier} }
\fi
% Increase distance between the caption table and the table
\newcommand{\@ldtable}{}
\let\@ldtable\table
\renewcommand{\table}{ %
\setlength{\@tempdima}{\abovecaptionskip} %
\setlength{\abovecaptionskip}{\belowcaptionskip} %
\setlength{\belowcaptionskip}{\@tempdima} %
\@ldtable}
% Table column height
\renewcommand{\arraystretch}{1.5}
\begin{document}
\tracingall
\[
m=m_{0}+\delta_{M}M_{s}, % INFINITE LOOP
\]
\end{document}
Gives:
\[ ->\x@protect \[\protect \[
\x@protect #1->\ifx \protect \@typeset@protect \else \@x@protect #1\fi
#1<-\[
{\ifx}
{true}
{\else}
{\relax}
\[ ->\x@protect \[\protect \[
\x@protect #1->\ifx \protect \@typeset@protect \else \@x@protect #1\fi
#1<-\[
{\ifx}
{true}
{\else}
{\relax} ...
\documentclass{...}
and ending with\end{document}
.\tracingall
and friends). Thus it helps, if you can generate a MWE. Remove sections, chapters, pages, packages, ..., which are not involved or are causing the hanging.\tracing all
anywhere after\begin{document}
or where?\tracing
command just before the addition. with luck, something will happen to make the job crash instead of hang, and then you'd have the benefit of a log to check. if not, and it does hang, figure out how to interrupt the job andx
out of it to preserve the log. a likely problem is a redefined command that references its own name in a definition (or a chain of definitions). good luck.