I cannot for the life of me find the answer to this. Here is a full summary of my main.tex:
\documentclass[12pt,twoside]{report}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[labelfont=bf]{caption}
\usepackage[a4paper]{geometry}
\geometry{a4paper,total={210mm,297mm},left=25.4mm,top=25.4mm,right=25.4mm,bottom=25.4mm}
\usepackage[version=3]{mhchem}
%\usepackage{float}
%\usepackage{relsize}
\usepackage[table]{xcolor}
\captionsetup[table]{labelsep=space,
justification=raggedright, singlelinecheck=off}
%\bibliographystyle{}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[
backend=bibtex,
style=numeric,
citestyle=numeric,
sorting=none
]{biblatex}
\addbibresource{refs.bib} %Imports bibliography file
\renewcommand{\bibname}{References}
\usepackage{sidecap}
\usepackage{wrapfig}
\usepackage{comment}
\usepackage{diagbox}
\usepackage{listings}
%\usepackage{cite}
\usepackage{amsmath}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage[colorlinks=true, allcolors=blue, linkcolor=black]{hyperref}
\usepackage{upgreek}
\usepackage{physics}
\usepackage{ gensymb }
\usepackage{tikz}
\usepackage[american]{circuitikz}
\usepackage{tikzpagenodes}
\usepackage{listings}
\usepackage[export]{adjustbox}
\usepackage{nameref}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\usepackage{floatrow}
% Table float box with bottom caption, box width adjusted to content
\newfloatcommand{capbtabbox}{table}[][\FBwidth]
\renewcommand{\baselinestretch}{1.1}
\usepackage[explicit]{titlesec} %for chapter headings in each tex chapter file
\begin{document}
\pagenumbering{arabic}
\include{chapters/Introduction}
\newpage{}
\input{chapters/appendix_a}
\printbibliography %[heading = References]
\end{document}
My bibliography functions, and pulls in correctly, but there is no title. Usually there is a 'references' title. Introduction.tex is:
\titleformat{\chapter}
{\Huge\bfseries}
{\thechapter \enspace Introduction} %This title is what appears on the page
{0pt}
{}
\chapter{Introduction}\label{Introduction} %This title is what will appear in the ToC
\fancyhead[RE]{\ref{Introduction} \nameref{Introduction}}
\fancyhead[LO]{\ref{Introduction} \nameref{Introduction}}
\section{Intro}
\begin{itemize}
\item Outline DM astro evidence to motivate \cite{timea}
\end{itemize}
and refs.bib contains just:
@misc{timea,
author = "Timea",
title = {test.py},
howpublished = {Canvas},
note = {Accessed: 2021-12-05} ,
year=2021,
}
Any ideas?
Thanks,
\cite
myself, there is the title 'Bibliography' which is different from your description.\titleformat{chapter}{...
, this is fromtitlesec
. I have no solution, but I'm not sure it's OK to put actual text in thelabel
argument? Whereas you wrote\thechapter \enspace Introduction
. (2) Remove\renewcommand{\bibname}{References}
: it doesn't do much, bc this isbiblatex
notbibtex
. (3)\printbibliography[heading = References]
should be\printbibliography[title = References]