I recently started learning LaTeX for the sheer beauty of it. As much as my document looks pretty my code is ugly as hell. I'm using Kile on Windows 10, and BiblateX with BibteX backend (dropped the idea of using biber after it didn't work; I tried everything suggested here).
Here's what happend;
I added another bibliography entry (had 8 before, even one in another footnote and it worked fine) in a footnote and pdfLatex gave error "finished with exit code1". After working on the problem for a while, found out that if I suppress \printbibliography (by adding %) it works fine again and even prints correct citation number [9] in the footnote. I use the pdfLaTex>BibTex>pdfLaTex sequence.
I can't figure out what's wrong or even where the problem is (footnote? citation? \printbibliography command? or the .bib file?)
Here's my MWE;
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{courier}
\usepackage[bottom]{footmisc}
\usepackage{xcolor,xfrac,lmodern,graphicx,mathtools}
\usepackage{etoolbox,fancyhdr,float,wrapfig,amsmath}
\everymath{\displaystyle}
\apptocmd{\thebibliography}{\csname phantomsection\endcsname\addcontentsline{toc}{chapter}{\bibname}}{}{}
\graphicspath{{images/}}
\usepackage[font={rm,footnotesize,sl,color={darkgray}},labelfont={bf,color=black}]{caption}
\usepackage[font={rm,footnotesize,it}]{subcaption}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage[style=nature,sorting=none,bibencoding=ascii,backend=bibtex]{biblatex}
\addbibresource{refer.bib}
\usepackage[nottoc]{tocbibind}
\setlength{\parskip}{1em}
\renewcommand{\thefootnote}{\alph{footnote}}
\emergencystretch=1em
\pagestyle{plain}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
This is a test sentence.
\footnote{Obviously fake footnote.\protect\cite{tape}}
\renewcommand\bibname{References}
\printbibliography[heading=bibintoc]
\end{document}
I would appreciate any help. For sake of brevity I'm adding four entries of refer.bib file. I just noticed that first three @Article entries appear blue while the rest are red. What does this mean?
@Article{g,
author = {Jonas Gienger and Nikolai Severin and J\"{u}rgen P. Rabe and Igor M. Sokolov},
title = {Reconstructing Interaction Potentials in Thin Films from Real-Space Images},
journal = {arxiv},
year = {2015},
}
@Article{sev,
author = {Nikolai Severin and Jonas Gienger and V. Scenev and P. Lange and Igor M. Sokolov and J\"{u}rgen P. Rabe},
title = {Nanophase Separation in Monomolecularly Thin Water-Ethanol Films Controlled by Graphene},
journal = {Nano Letters},
year = {2015},
}
@Article{NG,
author = {K. S. Novoselov and A. K. Geim and S. V. Morozov and D. Jiang and Y. Zhang and S. V. Dubonos and I. V. Grigorieva and A. A. Firsov},
title = {Electric Field Effect in Atomically Thin Carbon Films},
journal = {Sceince},
year = {2004},
}
@Article{tape,
author = {Carlos G. Camara and Juan V. Escobar and Jonathan R. Hird1 and Seth J. Putterman},
title = {Correlation between nanosecond X-ray flashes and stick–slip friction in peeling tape},
journal = {Nature Letters},
year = {2008},
}
}in\usepackage, I fixed that (this time:-) but it still can not be used to reproduce the problem as you have not supplied arefer,bibfile so just gives errors. Please add a bib file to your question that causes the error – David Carlisle Jan 14 '16 at 00:52.bibfile on my machine (biblatex-examples.bib, I citedsigfridsson) and everything worked just fine, so either the issue is with something not in the MWE, or your.bibentry is the culprit. What does it look like? Anyway, I'm not sure the\protectis even needed (it works just fine without), also the\apptocmd{\thebibliography}part is probably unnecessary if you use the right options. – moewe Jan 14 '16 at 09:00.bibfile. Does the exact code above with the exact same.bibfile reproduce the error for you (please check in a clean directory)? I'm not sure what colours you are talking about, but an unexpected (and apparently unexplained) change in colour would certainly make me suspicious of what is going on. – moewe Jan 14 '16 at 18:25vertexpackage. It has some generically named files though, and it could be that you need a file with the same name in your example which is not found, and then TeX initiates the package download sequence. Maybe your TeX distribution is too old, update it (see here for MikTeX). Unfortunately, your link above goes to example.com ... – moewe Jan 15 '16 at 07:05.aux,.bcf,.bbl). Check the actual error message you get (.log) file etc. It is really hard to debug the problem if the code does not throw an error at your end, this really suggests something is wrong with your installation (it is too old, packages are missing, etc.) or there is other code that we cannot see. – moewe Jan 22 '16 at 07:22