Please can someone help me figure why my Tex does not run whenever I try cite the references. Without reference citing, my whole Tex file will build(run).

Here is the latex file

\documentclass[preprint,3p, review,times]{elsarticle}

Cramer's rule was named after a Swiss mathematician Gabriel Cramer
(1704-1752) \cite{Cramer}. Historically, an Italian mathematician
Gerolamo Cardano gave a rule called \textit{regula de modo}- mother of rules, in his ``\textit{ars magna''}. Though his
methods were practically based on $2\times 2$ resultants.  \cite{Gardano}.

\noindent \textbf{References}

and here is the bibtex file

  title={Introduction a l'analyse des lignes courbes algebriques par Gabriel Cramer...},
  author={Cramer and Gabriel and Cramer fr{\`e}res \& Philibert and Claude},
  publisher={chez les freres Cramer \& Cl. Philibert}

  title={Ars magna (1545)},
  author={Cardano, Girolamo and Spon, C},
  journal={Opera Omnia},

Your code features two \cite instructions: \cite{Cramer} and \cite{Gardano}. The two entries in the bib file, though, have the following keys: cramer1750introduction and cardano1968ars. This cannot possibly go well. You need to change either the arguments of the \cite instructions or the keys of the bibliographic entries. Then re-run LaTeX, BibTeX, and LaTeX twice more.

Your preamble features an additional problem: You load both the cite package (twice actually! -- why?) and the natbib package. You should load one or the other citation management package, but not both. I suggest you drop the cite package and load the natbib package with the option numbers.

Fixing up the contents of the bib file (I consulted Google Books) and stripping the preamble down to a bare minimum yields the following compilable code.

enter image description here

  title    = {Introduction {\`a} L'Analyse des Lignes Courbes Alg{\'e}briques},
  author   = {Cramer, Gabriel},
  year     = {1750},
  publisher= {Fr{\`e}res Cramer \& Cl.\ Philibert},
  address  = {Geneva},
  title    = {{Ars Magna} (1545)},
  author   = {Cardano, Girolamo},
  editor   = {Sponi, Charles},
  booktitle= {Opera Omnia},
  volume   = {4},
  pages    = {221--302},
  year     = {1663},


Cramer's Rule is named after the Swiss mathematician Gabriel Cramer (1704--1752), who
hinted that resultants (determinants) might be useful in analytical geometry~\cite{Cramer}. 
Earlier, the Italian mathematician Gerolamo Cardano, in 1545, gave a rule for solving a 
system of two linear equations which he called \textit{regula de modo}---mother of 
rules---in his \textit{Ars Magna}. However, his methods were in practice based on 
$2\times2$ resultants. The rule later gave what we essentially know as Cramer's 

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.