I have a folder Report, that contains the file Report.tex and the subfolder References, which contains the files ref.tex and references.bib. In ref.tex I can reference a citation of references.bib. However, when in Report.tex it is not recongized (displayed as [?]). Does anyone know how I can solve this?
These are the files:
Report.tex:\documentclass{book} \usepackage{subfiles} \begin{document} \subfile{References/ref.tex} \end{document}ref.tex:\documentclass[../Report.tex]{subfiles} \begin{document} \chapter{References}\label{chapter:references} Please just be a nice citation: \cite{fasshauer2011positive}. \bibliography{references} \bibliographystyle{ieeetr} \end{document}references.bib@article{fasshauer2011positive, title={Positive definite kernels: past, present and future}, author={Fasshauer, Gregory E}, journal={Dolomite Research Notes on Approximation}, volume={4}, pages={21--63}, year={2011} }
I though I ran all the necessary files in latex/bibtex, as the references is displayed as "[1]" in ref.tex, but it still doesn't show up in Report.tex.
biblatex, you use standard BibTeX) and made the markup a bit easier on the eye (you should use the code button to format source code, not the quotation button). I suspect this has something to do with which files one needs BibTeX to compile. Maybe Handle .bib in subfiles can help you. – moewe Jan 14 '16 at 09:19references.bibinBibTeX,ref.texinpdfLaTeX,BibTeXandpdfLaTeX, which works, then I runReport.texas well inpdfLaTeX,BibTeXandpdfLaTeX, which does not work :( – Eric Jan 14 '16 at 09:51subfilesthat is, do you have to be able to compileref.texon its own, or would you be fine with standard\input/\include? – moewe Jan 14 '16 at 09:55ref.texwas unnecessary. It works now, I'll write an answer, in case it'll help anyone else. – Eric Jan 14 '16 at 10:10\includeonlyand friends ... – moewe Jan 14 '16 at 18:13