1

I'm Trying to use BibTeX in Texworks. My code is as follows:

\documentclass[12pt]{article}
\usepackage{natbib}
\title{Weekly Progress}
\author{author}
\date{\today}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{savesym}
\usepackage{arcs}
\usepackage{geometry}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{indentfirst}
\geometry{left=2cm,right=2cm,top=1cm,bottom=1cm}
\usepackage{graphicx}
\begin{document}
\maketitle
\begin{abstract}
blablabla
\end{abstract}

\bibliographystyle{plain}

\bibliography{reference}

\end{document}

and I create a file reference.bib:

@inproceedings{zhang2019gradient,
  title={Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity},
  author={Zhang, Jingzhao and He, Tianxing and Sra, Suvrit and Jadbabaie, Ali},
  booktitle={International Conference on Learning Representations},
  year={2019}
}

For convenience I temporarily put both files at desktop. I follow the instruction in How to use BibTex with TexWorks? but now the reference part is empty.

Remark: 1. I run pdflatex+bibtex+pdflatex*2 all in the main file.

  1. My bbl file does not contain the reference I want.

  2. I don't have a blg file.

Question: Where am I going wrong?

j200932
  • 111
  • Is there any clue that bibtex is run at all? Can you run bibtex from the command line? – Johannes_B Apr 01 '20 at 03:22
  • 2
    Welcome to TeX.SX! Your example document should actually not produce any bibliography since nothing is cited in it. If you add \cite{zhang2019gradient} somewhere within the document, does the bibliography show up? – Vincent Apr 01 '20 at 03:28
  • @Vincent Thanks very much for your comment! The problem is solved. – j200932 Apr 01 '20 at 03:47
  • 4
    I'm voting to close this question as the document's actual issue (a lack of \cite commands) was identified in the comments. – Mico Apr 01 '20 at 04:11

0 Answers0