BibTeX, biblatex and biberNo Bibliography in Output

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Anna87
Posts: 6
Joined: Fri May 31, 2013 10:32 am

No Bibliography in Output

Post by Anna87 »

Hi All!

I'm newbie, more or less, with LaTeX!

I'm writing my Master Thesis, and I'm using toptesi, that is a documentation class utilized in many Italian universities. It is very useful, since it contains all settings required by University.

I have a problem with the insertion of the Bibliography:it doesn't appear in the PDF file. I'm pretty sure that the .bib file is corrected, because I separately wrote all chapter , and in each chapter I inserted the bibliography with all relative citations. When I gathered all the chapters in the thesis file, the bibliography, magically disappeared. :cry:

I tried to run in the sequence :latex file, bibtex file,latex file, latex file.

My OS is Windows. I'm using TeXworks with MiKTeX.


Thanks for the help!
Anna


P.S. Sorry for the bad English. I hope to be clear in the problem explanation.
Attachments
thesis.tex
The source code for the thesis.
(3.54 KiB) Downloaded 442 times
sections.bib
The BibTeX database file.
(31.54 KiB) Downloaded 467 times
Last edited by localghost on Fri May 31, 2013 4:42 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

No Bibliography in Output

Post by Johannes_B »

Would you be so kind to prepare a proper Minimal Working example using the code button?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Anna87
Posts: 6
Joined: Fri May 31, 2013 10:32 am

No Bibliography in Output

Post by Anna87 »

Oh, yes!

Tesi file:

Code: Select all

\documentclass[12pt,twoside,cucitura,italian,greek]{toptesi}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}

\usepackage{textcomp}
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}

\usepackage{natbib}
\usepackage{xcolor} 
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}\usepackage{lmodern}

\begin{document}
\english

\mainmatter

%\part{Prima Parte}
\chapter{}
TeIt's inspired by the ability of ovipositing wasps.They are capable to penetrate different kinds of substrate in order to lay eggs.The ability to pierce both hard  substances and target host larvae are index of robust design,flexible and steerable capability.The ovipositor-the organ used by these insects for laying \textbf{eggs}-is a thin and flexible structure, composed by two or more segments that can slide with respect to each other.The segments are connected by means of a special dovetail mechanism, while one inner channel is used for delivering the eggs. \citep{Ko2011,Frasson2012}

\bibliographystyle{plain}
\bibliography{sections}

\end{document}
Bib file:

Code: Select all

@article{Frasson2012,
  doi = {10.1080/1741597YYxxxxxxxx},
  file = {:C$\backslash$:/Users/Anna/Documents/Tesi/Specialistica/paper/STING project reading/Detailed finite element modelling of deep needle insertions.pdf:pdf},
  keywords = {cohesive elements,finite element method,flexible probe,fracture,needle insertion,soft tissue,toughness},
  title = {{Detailed finite element modelling of deep needle insertions into a soft tissue phantom using a cohesive approach}},
  year = {2012}
}

@article{Ko2011,
  author = {Ko, Seong Young and Frasson, Luca and {Rodriguez y Baena}, Ferdinando},
  doi = {10.1109/TRO.2011.2159411},
  file = {:C$\backslash$:/Users/Anna/Documents/Tesi/Specialistica/paper/STING project reading/Closed loop planar motion control of a steerable probe with a programmamble bevel inspired by nature.pdf:pdf},
  issn = {1552-3098},
  journal = {IEEE Transactions on Robotics},
  month = oct,
  number = {5},
  pages = {970--983},
  title = {{Closed-Loop Planar Motion Control of a Steerable Probe With a “Programmable Bevel” Inspired by Nature}},
  url = {http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=5966364},
  volume = {27},
  year = {2011}
}
I hope that the file will be ok >.<'
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

No Bibliography in Output

Post by Johannes_B »

Well, your example works for me. The mistake seems to be somewhere else. But BibTeX gives some Warning concerning the entry of Frasson2012 (missing author, missing journal). Right now I'm not quite sure where your problem is.

You said, that you wrote all chapters seperately, how did you put them together? Do you get any error messages?

Code: Select all

\begin{filecontents}{\jobname.bib}

@article{Frasson2012,
  doi = {10.1080/1741597YYxxxxxxxx},
  file =
  {:C$\backslash$:/Users/Anna/Documents/Tesi/Specialistica/paper/STING
    project reading/Detailed finite element modelling of deep
      needle insertions.pdf:pdf},
  keywords = {cohesive elements,finite
    element method,flexible
      probe,fracture,needle insertion,soft
      tissue,toughness},
  title = {{Detailed finite element
    modelling of deep needle
      insertions into a soft tissue
      phantom using a cohesive
      approach}},
  year = {2012}
}

@article{Ko2011,
  author = {Ko, Seong Young and Frasson, Luca and
    {Rodriguez y Baena}, Ferdinando},
  doi = {10.1109/TRO.2011.2159411},
  file =
  {:C$\backslash$:/Users/Anna/Documents/Tesi/Specialistica/paper/STING
    project reading/Closed loop planar motion control of a
      steerable probe with a programmamble bevel inspired by
      nature.pdf:pdf},
  issn = {1552-3098},
  journal = {IEEE Transactions
    on Robotics},
  month = oct,
  number = {5},
  pages ={970--983},
  title = {{Closed-Loop Planar Motion Control of a Steerable Probe
	 With a “Programmable Bevel” Inspired by Nature}},
  url={http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=5966364},
  volume={27},
  year={2011}
}
\end{filecontents}
\documentclass[12pt,twoside,cucitura,italian,greek]{toptesi}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{filecontents}
\usepackage{textcomp}
\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}

\usepackage{natbib}
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}\usepackage{lmodern}

\begin{document}
\english

\mainmatter

							    %\part{Prima
							    %Parte}
\chapter{}
TeIt's inspired by the ability of ovipositing wasps.They are
capable to penetrate different kinds of substrate in order to lay
eggs.The ability to pierce both hard substances and target host
larvae are index of robust design,flexible and steerable
capability.The ovipositor-the organ used by these insects for
laying \textbf{eggs}-is a thin and flexible structure, composed
by two or more segments that can slide with respect to each
other.The segments are connected by means of a special dovetail
mechanism, while one inner channel is used for delivering the
eggs.  \citep{Ko2011,Frasson2012}

\bibliographystyle{plain}
\bibliography{\jobname}

\end{document}
Instead of natbib and BibTeX you should work with the more modern package biblatex along with the bibliography processor biber.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Anna87
Posts: 6
Joined: Fri May 31, 2013 10:32 am

Re: No Bibliography in Output

Post by Anna87 »

No, I didn't get any error message when I put together the chapters.
I used the command \input{C:\Users...\...}.
Obviously, before to put together the chapter I erased all the initial settings of each latex file.

Sorry, but I don't understand your last comment.
Which other package I should use?
Thanks for all the help!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

No Bibliography in Output

Post by Johannes_B »

That was a suggestion, primarily for future projects. Never touch a running system, right?

You are using natbib, but there are many ohter packages doing similar things, but for a different output. Biblatex is a modern package and in combination with the bibliography processor biber fully capable of unicode.
But right now you should stick to your natbib and BibTeX setup.

Did you compile the example given by me (well, it's your code)? Does the bibliography show up? Remember -> (pdf)latex, bibtex, (pdf)latex
If it's not there, please show us your log file \jobname.blg

You read how to create a minimal example, right? Try the "Building up" method and find out, where your document/bibliography crashes.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Anna87
Posts: 6
Joined: Fri May 31, 2013 10:32 am

No Bibliography in Output

Post by Anna87 »

The next time I will try to use BibLaTeX, I think that is a good Idea. I always used natbib, so I didn't know biblatex to be honest. Thanks for advice!

Yes, I did. I compiled the file in the same order that you indicate to me. The results it was only the page of bibliography. The log file of the minimal example working is attached.
Attachments
example.log
(25.29 KiB) Downloaded 395 times
Last edited by localghost on Sun Jun 02, 2013 1:19 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: No Bibliography in Output

Post by Johannes_B »

The log file says, that the bibliography is empty and is telling you about undefined references. Is this the log file after the last compilation?

Did you check, if you cited the right keys?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Anna87
Posts: 6
Joined: Fri May 31, 2013 10:32 am

Re: No Bibliography in Output

Post by Anna87 »

I resolved the problem!
I think that the cause of the problem was the bibliography file that contained one wrong reference.
Also if the problem was stupid, I learned something else relative to latex!
Post Reply