LaTeX forum ⇒ Theses, Books, Title pagesProblem with bibliography Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Problem with bibliography

Postby Asma_F » Sat Mar 04, 2017 12:33 pm

Hi there,

I am using Masters/Doctoral Thesis template and I found it a great one. But I'm facing a problem with the bibliography which does not show up. I have a .bib file and I follow the procedure to run it (PdfLaTeX + BibTeX + (2) PdfLaTeX) but nothing appear and there is no error message.

I had cited in Chapter1.tex and then I include it in main.tex, when I clicked run the citation appeared as the key reference in bib file and no bibliography showed up at the end of the file.

I want my bibliography to include all the reference from all the chapters at the end of the document.

*Note: I tried using BibTeX with an ordinary document( not a template) and It worked.

I really appreciate any help.

Thanks

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Mar 04, 2017 1:03 pm

Please show us the log and blg files of the unchanged template.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Postby Asma_F » Sat Mar 04, 2017 3:21 pm

Thanks for your speedy reply. I didn't understand what do you mean by "unchanged template", before I edited?

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Mar 04, 2017 3:30 pm

You said without the template, you get a bibliography. So it might be an error with the template or some system setup.
Or you changed something while writing your text and introduced some mistakes.
I wanted to know if something with your setup is dodgy, before sending you off to find the mistake in your code, which will takes some time.

In short: Download the template once more, do a compile chain as normal and post the final resulting log and blg files.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Postby Asma_F » Sat Mar 04, 2017 4:11 pm

When I downloaded the template again as you said the bibliography appeared in the PDF file before I compile, after I compile it disappear. I didn't find blg file.


main.log
(85.46 KiB) Downloaded 135 times

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Mar 04, 2017 4:47 pm

Did you run BibTeX and then LaTeX (two times)? The blg file will only be created after BibTeX was run.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Postby Asma_F » Sat Mar 04, 2017 5:23 pm

yes, from configuration I choose the Quick build to be (PdfLaTeX + Bib(la)TeX+ PdfLaTeX (2x) + view Pdf ) and I compiled

but when I chose (PdfLaTeX +view pdf) and compile ( LaTeX > BibTeX >LaTeX (2)) I got an error ( couldn't open file name `buildmain.aux')

User avatar
Stefan Kottwitz
Site Admin
Posts: 9416
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Mar 04, 2017 5:27 pm

Asma_F wrote:I got an error ( couldn't open file name `buildmain.aux')


This looks like an editor error message. Did you get a LaTeX error message? Can you please post the .log file of that run here, as attachment? (See the "Attachments" tab below the edit field when writing.)

Asma_F wrote:but when I chose (PdfLaTeX +view pdf) and compile ( LaTeX > BibTeX >LaTeX (2)) I got an error ( couldn't open file name `buildmain.aux')


This looks like LaTeX in DVI mode, that is different. You used LaTeX instead of pdfLaTeX, the other run was correct.

Stefan
Site admin

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Mar 04, 2017 5:30 pm

Check your editor settings. Are you trying to use a build directory? Don't. They don't have merits. All they do is bring confusion to users.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Asma_F
Posts: 20
Joined: Sat Mar 04, 2017 12:12 pm

Postby Asma_F » Sat Mar 04, 2017 5:41 pm

Stefan Kottwitz wrote:Did you get a LaTeX error message?
yes and it says '' LaTeX Error: File `Figures/Electron' not found.''

Stefan Kottwitz wrote:You used LaTeX instead of pdfLaTeX, the other run was correct.
yes, and I tried to use pdfLaTeX, it worked but BibTeX not I got the same error mentioned before


main.log
(84.73 KiB) Downloaded 132 times


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest