Theses, Books, Title pagesProblem with an "incollection" reference

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
pierre92
Posts: 13
Joined: Fri Jun 19, 2015 4:19 pm

Problem with an "incollection" reference

Post by pierre92 »

Hi all,
I use the legrand orange book template and a reference to a book chapter. The entry in the .bib file is:

Code: Select all

@incollection{Kiat2008,
title = "14 - From the structure of relaxors to the structure of MPB systems ",
editor = "Ye, Zuo-Guang ",
booktitle = "Handbook of Advanced Dielectric, Piezoelectric and Ferroelectric Materials ",
publisher = "Woodhead Publishing",
year = "2008",
pages = "391 - 446",
series = "Woodhead Publishing Series in Electronic and Optical Materials",
isbn = "978-1-84569-186-8",
doi = "http://dx.doi.org/10.1533/9781845694005.3.391",
url = "http://www.sciencedirect.com/science/article/pii/B9781845691868500144",
author = "J.-M. Kiat and B. Dkhil"
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and I call it in the main.tex with : \cite{Kiat2008}

This is the output of Biber:

Code: Select all

INFO - This is Biber 1.6
INFO - Logfile is 'test.blg'
INFO - Reading 'test.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file '../bibtot.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source '../bibtot.bib'
INFO - Overriding locale 'en_US.UTF-8' default tailoring 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting 'entry' list 'nyt' keys
INFO - No sort tailoring available for locale 'en_US.UTF-8'
INFO - Writing 'test.bbl' with encoding 'UTF-8'
INFO - Output to test.bbl
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The "Zap Gremlins" function of TextWrangler which so far had successfully removed all my problem with UTF encoding is no help this time.

The reference appears in the text after the first pdfLaTeX as [Kiat2008] (in bold face), it is then replaced by a number (which is correct when I have more references), but which does not appear in the bibliography section at the end of my document.

The output of the third pdfLaTeX reads:

Code: Select all

Package biblatex Warning: Type 'book' not found on input line 175.
LaTeX Warning: Empty bibliography on input line 175.
Package biblatex Warning: Type 'article' not found on input line 178.
LaTeX Warning: Empty bibliography on input line 178.
[9 <./Pictures/chapter_head_2.pdf>] [10] (./test.ind) (./test.aux) )
(see the transcript file for additional information)pdfTeX warning (dest): name
{section*.6} has been referenced but does not exist, replaced by a fixed one
pdfTeX warning (dest): name{cite.0@Kiat2008} has been referenced but does not e
xist, replaced by a fixed one
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I have not been able to go further than the 'type' of this reference is wrong, but my @incollection entry has the required fields and a couple extra. Is that that the template does not know where to put @incollection entries? If so, does anybody know how to fix that?

Thanks a lot

Recommended reading 2024:

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

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

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

Problem with an "incollection" reference

Post by Johannes_B »

I think this has nothing to do with the template and is a basic biblatex issue, i'll move ot to the bibliography section of the forum.

Can you please post a minimal working example? That means, just the stuff that reproduces the problem you are describing with compilable code. It much easier to help this way.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
pierre92
Posts: 13
Joined: Fri Jun 19, 2015 4:19 pm

Problem with an "incollection" reference

Post by pierre92 »

Here is the first LaTeX file:

Code: Select all

Code, edit and compile here:
\documentclass[11pt,fleqn]{book} % Default font size and left-justified equations
\input{structure} % Insert the commands.tex file which contains the majority of the structure behind the template
\begin{document}
\chapterimage{Forewords.pdf} % Forewords image
\chapter*{Forewords}
I would like to cite \cite{Kiat2008} as well as \cite{Zhou2006}
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\chapter*{Bibliography}
\addcontentsline{toc}{chapter}{\textcolor{cbleu}{Bibliography}}
\section*{Books}
\addcontentsline{toc}{section}{Books}
\printbibliography[heading=bibempty,type=book]
\section*{Articles}
\addcontentsline{toc}{section}{Articles}
\printbibliography[heading=bibempty,type=article]
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
which calls the structure.tex file below, where the name of the bibliography file has changed (now: bibmini.bib

Code: Select all

Code, edit and compile here:
% Modified version of :
%
% The Legrand Orange Book
% Structural Definitions File
% Version 2.0 (9/2/15)
%
% modified by Pierre-Eymeric Janolin
%
% Original author:
% Mathias Legrand (legrand.mathias@gmail.com) with modifications by:
% Vel (vel@latextemplates.com)
%
% The original file has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% VARIOUS REQUIRED PACKAGES AND CONFIGURATIONS
%----------------------------------------------------------------------------------------
\usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]{geometry} % Page margins
\usepackage{graphicx} % Required for including pictures
\graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
\usepackage{lipsum} % Inserts dummy text
\usepackage{tikz} % Required for drawing custom shapes
\usepackage[english]{babel} % English language/hyphenation
\usepackage{enumitem} % Customize lists
\setlist{nolistsep} % Reduce spacing between bullet points and numbered lists
\usepackage{booktabs} % Required for nicer horizontal rules in tables
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and the bibliography file:

Code: Select all

@article{Zhou2006,
title = {Unusual Evolution of the Magnetic Interactions versus Structural Distortions in $R{\mathrm{MnO}}_{3}$ Perovskites},
author = {Zhou, J.-S. and Goodenough, J. B.},
journal = {Phys. Rev. Lett.},
volume = {96},
issue = {24},
pages = {247202},
numpages = {4},
year = {2006},
month = {Jun},
publisher = {American Physical Society},
doi = {10.1103/PhysRevLett.96.247202},
url = {http://link.aps.org/doi/10.1103/PhysRevLett.96.247202}
}
@incollection{Kiat2008,
title = "14 - From the structure of relaxors to the structure of MPB systems ",
editor = "Ye, Zuo-Guang ",
booktitle = "Handbook of Advanced Dielectric, Piezoelectric and Ferroelectric Materials ",
publisher = "Woodhead Publishing",
year = "2008",
pages = "391 - 446",
series = "Woodhead Publishing Series in Electronic and Optical Materials",
isbn = "978-1-84569-186-8",
doi = "http://dx.doi.org/10.1533/9781845694005.3.391",
url = "http://www.sciencedirect.com/science/article/pii/B9781845691868500144",
author = "J.-M. Kiat and B. Dkhil"
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with an "incollection" reference

Post by Johannes_B »

Buddy, i had a crappy day. A minimal example is the best way to prepare your LaTeX-document to show helpers. Often, while preparing the example the reason gets obvious. Please learn and try how to do that yourself, on days like the one i have today, it would be better to leave awful lot of code-questions alone and investigate on a better day. We don't have many helpers here, so it might take a few days till an answer comes in.

I created a minimal example, making the reason behind the behaviour obvious for me. I hope it will be as obvious for you and you can post the answer yourself. If not, just ask ;-) And i'll add the explanation tomorrow.

Code: Select all

Code, edit and compile here:
\begin{filecontents}{\jobname.bib}
@article{Zhou2006,
title = {Unusual Evolution of the Magnetic Interactions versus Structural Distortions in $R{\mathrm{MnO}}_{3}$ Perovskites},
author = {Zhou, J.-S. and Goodenough, J. B.},
journal = {Phys. Rev. Lett.},
volume = {96},
issue = {24},
pages = {247202},
numpages = {4},
year = {2006},
month = {Jun},
publisher = {American Physical Society},
doi = {10.1103/PhysRevLett.96.247202},
url = {http://link.aps.org/doi/10.1103/PhysRevLett.96.247202}
}
@incollection{Kiat2008,
title = "14 - From the structure of relaxors to the structure of MPB systems ",
editor = "Ye, Zuo-Guang ",
booktitle = "Handbook of Advanced Dielectric, Piezoelectric and Ferroelectric Materials ",
publisher = "Woodhead Publishing",
year = "2008",
pages = "391 - 446",
series = "Woodhead Publishing Series in Electronic and Optical Materials",
isbn = "978-1-84569-186-8",
doi = "http://dx.doi.org/10.1533/9781845694005.3.391",
url = "http://www.sciencedirect.com/science/article/pii/B9781845691868500144",
author = "J.-M. Kiat and B. Dkhil"
}
\end{filecontents}
\documentclass{book}
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\usepackage{hyperref}
\begin{document}
I would like to cite \cite{Kiat2008} as well as \cite{Zhou2006}
\printbibliography[type=book]
\printbibliography[type=article]
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
pierre92
Posts: 13
Joined: Fri Jun 19, 2015 4:19 pm

Problem with an "incollection" reference

Post by pierre92 »

Thanks for your kind answer despite your crappy day.

Okay, not having ever used anything but \printbibliography at the end of my documents, I was not aware that @incollection items are not in the "books" entry-type for biblatex.
therefore a \printbibliography[type=incollection] does the trick.

The minimal working example helped me discard the structure.tex file as the source.
I had browsed the biber manual but not the biblatex. My bad.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with an "incollection" reference

Post by Johannes_B »

I am glad you found the source yourself, it is a good feeling, right?

In fact, there are a few types, that are internally mapped to a more generic group. Having entries of online, www or electronic makes no difference for biblatex. All are printed when you are choosing type=online.

Same goes for masterthesis, phdthesis and similar, all are mapped to thesis.

More can be found in the documentation of biblatex, it is large. It has to be, biblatex is sooo very powerful, that means lots of features to document.

If you are interested in the internals, the code level of biblatex, have a look at biblatex.def. The path to the file can be found in your log-file of the above example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply