LaTeX forum ⇒ Text FormattingSuddenly stopped compiling

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

Suddenly stopped compiling

Postby rsmnsu » Tue Oct 16, 2018 8:29 pm

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

  1. \documentclass[12pt,english]{article}
  2. \usepackage{graphicx} % for graphics
  3. %\usepackage[draft]{graphicx} % temporarily turn off graphicx
  4. %\usepackage{subfig}
  5. %\setcounter{lofdepth}{2}
  6. \usepackage{caption} % Enable figure captions or figure notes
  7. \usepackage{subcaption} %Further enable sub captions
  8. \usepackage{booktabs} %for table
  9. \usepackage{amsmath} %for equations and mathematical symbols
  10. \usepackage{rotating} %for table rotation
  11. \usepackage{lscape}
  12. \usepackage{float} % allow tables to self adjust
  13. \usepackage{morefloats}
  14. \usepackage{booktabs,caption,fixltx2e}
  15. \usepackage[flushleft]{threeparttable}
  16. \usepackage{tabularx}
  17. \usepackage{adjustbox}
  18. \usepackage{subcaption}
  19. \usepackage{hyperref} % allow hyper referencing
  20. \usepackage{breakcites}
  21. \usepackage{csquotes}
  22. \usepackage{amssymb} % for mathmatical symbols
  23. \usepackage{enumerate} % to get all that enumeration offers
  24. \captionsetup{font=footnotesize}
  25. \usepackage[round]{natbib} % for bibliography
  26. \bibliographystyle{cambridgeauthordate}
  27. %{plainnat} % regular bibliography
  28. \usepackage[usenames, dvipsnames]{color} % coloring fonts
  29. %%%%%%%%%%%%%%%%%%%%%%%
  30. \usepackage[T1]{fontenc}
  31. \usepackage{array}
  32. \usepackage{multirow}
  33. \usepackage{esint}
  34. \usepackage[toc,page]{appendix}
  35. \renewcommand{\cite}{\citeyear}
  36. \newtheorem{theorem}{Theorem}
  37. \newtheorem{corollary}{Corollary}
  38. \newtheorem{assumption}{Assumption}
  39. \newtheorem{definition}{Definition}
  40. \newtheorem{proposition}{Proposition}
  41. \makeatletter
  42. \providecommand{\tabularnewline}{\\}
  43. \usepackage{psfrag}\usepackage{multirow}\@ifundefined{definecolor}{\usepackage{color}}{}
  44. \usepackage{colortbl}\usepackage{float}\usepackage{bm}\usepackage[metapost]{mfpic}
  45. % Tree-saver - if turn this on you lose page numbers
  46. \setlength{\textwidth}{8.276in}
  47. \setlength{\textheight}{11.705in}
  48. % Allow 1 in margin on each side and nothing else
  49. \addtolength{\textwidth}{-2in}
  50. \addtolength{\textheight}{-2in}
  51. \setlength{\oddsidemargin}{0pt}
  52. \setlength{\evensidemargin}{\oddsidemargin}
  53. \setlength{\topmargin}{0pt}
  54. \addtolength{\topmargin}{-\headheight}
  55. \addtolength{\topmargin}{-\headsep}
  56. \newcommand{\ds}{\displaystyle}
  57. \newcommand{\bs}{\boldsymbol}
  58. %\pagenumbering{roman}
  59. \parindent=0pt
  60. \parskip=5pt
  61. \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
  62. \def\@biblabel#1{}
  63. \def\ph#1{\phantom{#1}}
  64. \renewcommand{\baselinestretch}{1.0}
  65.  
  66. \title{ vulnerability\footnote{ acknowledges funding from }}
  67. \author{Raisul Islam$^*$,
  68. $*$School of Business and Economics\\
  69. \\[10pt]}
  70.  
  71. \usepackage{babel}
  72.  
  73. \date{May 2018}
  74. %\usepackage{calc} % To reset the counter in the document after title page
  75.  
  76. \makeatother
  77.  
  78. \begin{document}


Now I am getting the following error and latex highlights \begin{document}
  1. 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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9281
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Oct 16, 2018 8:36 pm

That code is ok, no error.

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

Stefan
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: Baidu [Spider] and 8 guests