I am writing a MSc. thesis and am writing it up in LaTex. I make use of natbib and am happy with how it generates a nice bibliography, but I am running into an issue where the format of the beginning of the bibliography changes after entry 15 to more of a blocky font.
Is this an issue with my usage of the natbib package?
% In Settings.tex
\usepackage{natbib}
% In References.tex
\setcitestyle{numbers}
\bibliographystyle{plainnat}
\bibliography{lit}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% In main.tex, have already included settings.tex
% REFERENCES / BIBLIOGRAPHY
\addcontentsline{toc}{chapter}{Bibliography}
\begin{flushleft}
\footnotesize
\input{include/backmatter/References}
\end{flushleft}
The respective .bib entries for 15 and 16:
@Misc{Giusca2005,
author = {Bogdan Giuşcă},
title = {The problem of the Seven Bridges of Königsberg.},
year = {2005},
note = {File: \ttfamily{Konigsberg bridges.png}},
url = {https://commons.wikimedia.org/wiki/File:Konigsberg_bridges.png},
urlseen = {12-04-19},
}
@Article{Goldford2018,
author = {Goldford, Joshua E. and Lu, Nanxi and Baji{\'c}, Djordje and Estrela, Sylvie and Tikhonov, Mikhail and Sanchez-Gorostiaga, Alicia and Segr{\`e}, Daniel and Mehta, Pankaj and Sanchez, Alvaro},
title = {Emergent simplicity in microbial community assembly},
journal = {Science},
year = {2018},
volume = {361},
number = {6401},
pages = {469--474},
issn = {0036-8075},
doi = {10.1126/science.aat1168},
eprint = {http://science.sciencemag.org/content/361/6401/469.full.pdf},
publisher = {American Association for the Advancement of Science},
url = {http://science.sciencemag.org/content/361/6401/469},
}
EDIT: Making some compilable .tex code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\title{msc}
\author{rosko }
\date{May 2019}
\begin{document}
\maketitle
\section{Introduction}
\citep{Giusca2005} did this
\citep{Goldford2018} did that
% \addcontentsline{toc}{chapter}{Bibliography}
\newpage
\bibliographystyle{plainnat}
\bibliography{bib}
\end{document}


.bibfile entry for item 15. Can you edit your question and add that.bibitem and make your code compilable. – Alan Munn May 01 '19 at 19:50Konigsberg bridges.png." has a leaking font definition (something likeFile: \ttfamily Konigsberg bridges.png.instead ofFile: {\ttfamily Konigsberg bridges.png}.). My money would be on the contents of the.bibfile (maybe thenotefield?). But it could also be a bad BibTeX style. – moewe May 01 '19 at 20:22note = {File: \ttfamily{Konigsberg bridges.png}},is wrong. Write eithernote = {File: \texttt{Konigsberg bridges.png}},(I would prefer this) ornote = {File: {\ttfamily Konigsberg bridges.png}},.\ttfamilyis a switch that changes the font until the end of the current group. It is not a macro that takes an argument.\texttton the other hand is a macro with a normal argument. – moewe May 01 '19 at 20:23