My situation is the following: I have two files in the same folder: basics.tex and bibliography.bib. In Texmaker, when I select the basics.tex file and run LaTeX, then BibTeX, and then LaTeX again twice, I don't get any errors, and basics.pdf looks fine, except for the sources from bibliography.bib being nowhere in the pdf, and all the citations being replaced by question marks.

The basics.tex file begins as such (with each \ starting on a new line):


In the text, there are a lot of \cite{citation}, and the bottom of basics.tex looks like this (again, with each \ starting on a new line):


The bibliography.bib file just includes a list of all of my sources, in formats such as (with each point on a new line):


Thanks in advance

  • welcome to tex.sx. you can get properly formatted code by highlighting the block using your mouse, then clicking on the {} icon above the question (or answer) box. for in-line code, begin and end the string with a backtick. – barbara beeton Oct 10 '17 at 2:03
  • 1
    regarding the failure to have a citation referenced, your code looks good, and so does the description of your processing. i don't use texmaker, so can't say what might be going wrong, but try to figure out where to look for a .bbl file. (it should be in the same area as the .bib file after running bibtex.) if there isn't one, then something has gone wrong with the bibtex run. – barbara beeton Oct 10 '17 at 2:08
  • 1
    Off-topic but still relevant: (i) The subfigure package is badly deprecated and shouldn't be use anymore. Consider using either subfig or subcaption. (ii) The slashbox package is also deprecated; consider using diagbox instead. (iii) Since you're using the natbib citation management package, consider using unsrtnat instead of unsrt as the bibliography style. That way, the contents of the isbn field won't be ignored. (iv) Is your tex file really encoded in latin1? Are you sure it's not utf8-encoded? – Mico Oct 10 '17 at 2:12
  • Yes, there is a basics.bbl file in the same folder as the other two files. – SMT7993 Oct 10 '17 at 2:44
  • WIth regards to the packages and the encoding, I'll definitely look into that! – SMT7993 Oct 10 '17 at 2:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.