From the documentation
Since [splitbib
] deeply redefines \bibitem
and thebibliography
environment, it must be loaded after packages that redefine those commands...
However the moderncv
class, version 2013/02/09 v1.3.0, does redefine exactly those commands. On the other hand, moderncv
sets up things so that multibib
works. You can use this to get subdivided bibliographies with your bib
file as follows:
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage{url}
\usepackage[scale=0.8]{geometry}
\AtBeginDocument{\recomputelengths}
\firstname{MyName}
\familyname{MyLastName}
\usepackage{multibib}
\newcites{press}{Press}
\newcites{presentations}{Presentations}
\newcites{papers}{Papers}
% BEGIN DOC
\begin{document}
\nocitepress{press1}
\nocitepresentations{pres1,pres2}
\nocitepapers{paper1,paper2}
\maketitle
\section{Education}
\cventry{2005--2010}{Deg}{Some U}{Someplace}{Computer Science}{Some notes}
\subsection{Professional}
\cventry{2000--2005}{Technical Specialist}{Some company}{Some City}{}{Some description}
\section{Publications}
\bibliographystylepress{plain}
\bibliographypress{publications}
\bibliographystylepresentations{plain}
\bibliographypresentations{publications}
\bibliographystylepapers{plain}
\bibliographypapers{publications}
\end{document}
compiled via
pdflatex file
bibtex press
bibtex presentations
bibtex papers
pdflatex file
pdflatex file
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)
Best Answer
the contents of the bibliography as shown are in the format of a
.bbl
file, which is the output when a.bib
file is run through bibtex.two approaches are possible:
wrap
\begin{thebibliography} ... \end{thebibliography}
around this code and insert it into your tex file in place of\bibliography{example}
reconstruct the
.bib
file in the required format and rerun bibtex.