1
\documentclass[a4paper,fleqn]{cas-sc}

\begin{document}
\begin{thebibliography}{1}
\bibitem{DLC_DR}
Stenner, Karen, Elisha R. Frederiks, Elizabeth V. Hobman, and Stephanie Cook. "Willingness to participate in direct load control: The role of consumer distrust." Applied energy 189 (2017): 76-88.
\bibitem{Price_DR}
Takano, Hirotaka, Asuka Kudo, Hisao Taoka, and Atsumi Ohara. "A basic study on incentive pricing for demand response programs based on social welfare maximization." Journal of International Council on Electrical Engineering 8, no. 1 (2018): 136-144.
\end{thebibliography}
\end{document} 
Mico
  • 506,678
  • Probably related: https://tex.stackexchange.com/a/488481/134144 – leandriis Jun 08 '19 at 09:55
  • 1
    Indeed the document compiles when you add \usepackage[numbers]{natbib} to the preamble. But the error should not appear, please report this error to the developers. – moewe Jun 08 '19 at 09:57
  • is this not answered by the comment on your previous question https://tex.stackexchange.com/questions/488234/this-latex-code-executes-now-but-pdf-file-is-not-generated-please-help-me/488481#comment1233529_488481 – David Carlisle Jun 08 '19 at 10:16
  • Please don't just dump code on readers. It would be really helpful if you stated specifically which errors you encounter, rather than just state the outcome of these errors ("cannot print bibliography") in the title. – Mico Jun 08 '19 at 14:11

1 Answers1

3

You need to load a citation management package with suitable options, e.g.,

\usepackage[numbers]{natbib}

A full MWE:

enter image description here

Note that I would use smart rather than dumb (") quotes around the titles. I would also use en-dashes rather than simple dashes to indicate numeric ranges (see the page ranges below).

\documentclass[a4paper,fleqn]{cas-sc}
\usepackage[numbers]{natbib} % <-- new
\begin{document}

\noindent
\cite{DLC_DR,Price_DR}

\begin{thebibliography}{1}

\bibitem{DLC_DR}
Stenner, Karen, Elisha R. Frederiks, Elizabeth V. Hobman, and 
Stephanie Cook. ``Willingness to participate in direct load control: 
The role of consumer distrust.'' Applied Energy 189 (2017): 76--88.

\bibitem{Price_DR}
Takano, Hirotaka, Asuka Kudo, Hisao Taoka, and Atsumi Ohara. ``A basic 
study on incentive pricing for demand response programs based on social 
welfare maximization.'' Journal of International Council on Electrical 
Engineering 8, no.~1 (2018): 136--144.

\end{thebibliography}
\end{document} 
Mico
  • 506,678