Text FormattingSuddenly stopped compiling

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rsmnsu
Posts: 4
Joined: Mon Nov 13, 2017 8:02 pm

Suddenly stopped compiling

Post by rsmnsu »

Hi, I am working on a paper, which was completed and working fine yesterday.
Suddenly today it is not compiling.
The body is as below

Code: Select all

\documentclass[12pt,english]{article}
\usepackage{graphicx} % for graphics
%\usepackage[draft]{graphicx} % temporarily turn off graphicx
%\usepackage{subfig}
%\setcounter{lofdepth}{2}
\usepackage{caption}  % Enable figure captions or figure notes
\usepackage{subcaption} %Further enable sub captions
\usepackage{booktabs} %for table
\usepackage{amsmath} %for equations and mathematical symbols
\usepackage{rotating} %for table rotation
\usepackage{lscape}
\usepackage{float} % allow tables to self adjust
\usepackage{morefloats}
\usepackage{booktabs,caption,fixltx2e}
\usepackage[flushleft]{threeparttable}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{subcaption}
\usepackage{hyperref} % allow hyper referencing
\usepackage{breakcites}
\usepackage{csquotes}
\usepackage{amssymb} % for mathmatical symbols
\usepackage{enumerate} % to get all that enumeration offers
\captionsetup{font=footnotesize}
\usepackage[round]{natbib} % for bibliography
\bibliographystyle{cambridgeauthordate}
%{plainnat} % regular bibliography
\usepackage[usenames, dvipsnames]{color} % coloring fonts
%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{multirow}
\usepackage{esint}
\usepackage[toc,page]{appendix}
\renewcommand{\cite}{\citeyear}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem{assumption}{Assumption}
\newtheorem{definition}{Definition}
\newtheorem{proposition}{Proposition}
\makeatletter
\providecommand{\tabularnewline}{\\}
\usepackage{psfrag}\usepackage{multirow}\@ifundefined{definecolor}{\usepackage{color}}{}
\usepackage{colortbl}\usepackage{float}\usepackage{bm}\usepackage[metapost]{mfpic}
% Tree-saver - if turn this on you lose page numbers
 \setlength{\textwidth}{8.276in}
 \setlength{\textheight}{11.705in}
 % Allow 1 in margin on each side and nothing else
 \addtolength{\textwidth}{-2in}
 \addtolength{\textheight}{-2in}
 \setlength{\oddsidemargin}{0pt}
 \setlength{\evensidemargin}{\oddsidemargin}
 \setlength{\topmargin}{0pt}
 \addtolength{\topmargin}{-\headheight}
 \addtolength{\topmargin}{-\headsep}
 \newcommand{\ds}{\displaystyle}
 \newcommand{\bs}{\boldsymbol}
  %\pagenumbering{roman}
 \parindent=0pt
 \parskip=5pt
 \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
 \def\@biblabel#1{}
 \def\ph#1{\phantom{#1}}
 \renewcommand{\baselinestretch}{1.0}
 
 \title{ vulnerability\footnote{ acknowledges funding from }}
\author{Raisul Islam$^*$, 
$*$School of Business and Economics\\
\\[10pt]}

\usepackage{babel}

\date{May 2018}
%\usepackage{calc} % To reset the counter in the document after title page

\makeatother

\begin{document}
Now I am getting the following error and latex highlights \begin{document}

Code: Select all

Runaway argument? {{16}{46}{Crisis transmission maps with all big links off in the pre \ETC. File ended while scanning use of \@newl@bel. <inserted text> \par l.78 \begin{document}
I am not sure how to fix this. This was working last night. Without a change it is not today.Crisis transmission maps with all big links off in the pre is a figure name. Is there a problem with bibliography?
I am not sure.
I can produce further information if needed. Please help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Suddenly stopped compiling

Post by Stefan Kottwitz »

That code is ok, no error.

Can you please post the code with that figure that has this caption/name (Crisis transmission maps)?

Stefan
LaTeX.org admin
Post Reply