From the given bib
file I can see that you have an blank in the key name (writing advice
) of an entry, which is not allowed. Change it to
@misc{writing_advice,
title={Writing Advice Home},
url={http://advice.writing.utoronto.ca/types-of-writing/lab-report/},
journal={Writing Advice},
}
You did not cite any entry in your code so I added \nocite{*}
to the following code:
\listfiles % <======= to get used packages and version number list
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{libretexts_2018,
title={Constant Pressure Calorimetry},
url={https://chem.libretexts.org/Textbook_Maps/Physical_and_Theoretical_Chemistry_Textbook_Maps/Supplemental_Modules_(Physical_and_Theoretical_Chemistry)/Thermodynamics/Calorimetry/Constant_Pressure_Calorimetry},
journal={Chemistry LibreTexts},
publisher={National Science Foundation},
author={Libretexts},
year={2018},
month={Nov},
}
@misc{writing_advice,
title={Writing Advice Home},
url={http://advice.writing.utoronto.ca/types-of-writing/lab-report/},
journal={Writing Advice},
}
\end{filecontents*}
\documentclass[journal, a4paper]{ieeetran}
\usepackage{graphicx}
\usepackage{url}
\usepackage{amsmath}
\usepackage{lettrine}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{gensymb}
\usepackage[margin=0.4in]{geometry}
\begin{document}
\title{Lab 12N Report \LaTeX}
\author{Jeremy Wolfe}
\maketitle
\nocite{*} % <==========================================================
\bibliographystyle{ieeetran}
\bibliography{\jobname}
\end{document}
Please check your log file there are some warning resulting you should have a look at ... Check the log file *.blg
that there are no warnings and errors inside. Correct all of them step by step ...
The resulting pdf file is:
UPDATE:
My used system is:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6880 64-bit) (preloaded format=pdflatex 2018.12.1) 5 DEC 2018 22:23
and the used packages are:
*File List*
filecontents.sty 2018/05/30 v1.4 Create an external file from within a LaTeX document
ieeetran.cls 2015/08/26 V1.8b by Michael Shell
ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
graphics.sty 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg 2016/06/04 v1.11 sample graphics configuration
pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
amsmath.sty 2017/09/02 v2.17a AMS math features
amstext.sty 2000/06/29 v2.01 AMS text
amsgen.sty 1999/11/30 v2.0 generic functions
amsbsy.sty 1999/11/29 v1.2d Bold Symbols
amsopn.sty 2016/03/08 v2.02 operator names
lettrine.sty 2018-08-28 v2.21 (Daniel Flipo)
minifp.sty 2013/12/30 v0.96. Macros for real number operations and a stack-based programing language.
lettrine.cfg
subcaption.sty 2018/05/01 v1.1-162 Sub-captions (AR)
caption.sty 2018/10/06 v3.3-154 Customizing captions (AR)
caption3.sty 2018/09/12 v1.8c caption3 kernel (AR)
gensymb.sty 2003/07/02 v1.0 (WaS)
geometry.sty 2018/04/16 v5.8 Page Geometry
ifpdf.sty 2018/09/07 v3.3 Provides the ifpdf switch
ifvtex.sty 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
geometry.cfg
supp-pdf.mkii
epstopdf-base.sty 2016/05/15 v2.6 Base part for package epstopdf
infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
grfext.sty 2016/05/16 v1.2 Manage graphics extensions (HO)
kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
kvoptions.sty 2016/05/16 v3.12 Key value format for package options (HO)
kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
ifluatex.sty 2016/05/16 v1.4 Provides the ifluatex switch (HO)
pdftexcmds.sty 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO)
There are two parts to this problem. Both must be attended to simultaneously. Fixing either one separately won't solve the problem.
First, the compile is reading the .bbl
file, so that will need to be removed and rebuilt. But before removing it, it's worth looking at it to see if you can spot a place where the code looks flaky. (The .bbl
file wasn't shown in the question, so can't be specific.)
Next, look at the .bib
file. The obvious things to look for are incomplete entries -- missing closing braces or commas are the usual culprits, but that's not the case here. However, there's something else that appears to be incomplete:
After the entry beginning @BOOK{MG,
there is an incomplete entry beginning {Pan,
with no entry type. I can't say for sure that this is what has caused the problem, but it does need to be fixed. It looks like an entry from a journal, so change it to
@ARTICLE{Pan,
Then, after making sure the old .bbl
file has been removed, reprocess, recreating the .bbl
file from the updated .bib
file. Check to make sure there were no errors in the Bibtex run; that will create a .blg
file as a record, and it's worthwhile to become familiar with that, since errors in the Bibtex run will usually have repercussions in the LaTeX run, even if only to omit a reference (which will not stop the processing, but will leave an unresolved \cite
),
After compiling again with LaTeX, if the change to the .bib
file was correct, the job will finish, and the output will be what you expect.
Best Answer
You're missing the mandatory argument to
\begin{thebibliography}
. In your case it should be(any one digit number is good). Use 99 if you have more than nine items.
It's also better to have a blank line after every item.
See also Argument in "thebibliography" for other information about the problem.
A better way to input your bibliography would be
For the
\url
command you need to load theurl
packageIt is available also if you load
hyperref
. Note that in the second URL the underscores need not to be escaped.