LaTeX forum ⇒ Theses, Books, Title pagesProblem with an "incollection" reference

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

Problem with an "incollection" reference

Postby pierre92 » Mon Jul 06, 2015 2:58 pm

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

  1. @incollection{Kiat2008,
  2. title = "14 - From the structure of relaxors to the structure of MPB systems ",
  3. editor = "Ye, Zuo-Guang ",
  4. booktitle = "Handbook of Advanced Dielectric, Piezoelectric and Ferroelectric Materials ",
  5. publisher = "Woodhead Publishing",
  6. year = "2008",
  7. pages = "391 - 446",
  8. series = "Woodhead Publishing Series in Electronic and Optical Materials",
  9. isbn = "978-1-84569-186-8",
  10. doi = "http://dx.doi.org/10.1533/9781845694005.3.391",
  11. url = "http://www.sciencedirect.com/science/article/pii/B9781845691868500144",
  12. author = "J.-M. Kiat and B. Dkhil"
  13. }


and I call it in the main.tex with : \cite{Kiat2008}

This is the output of Biber:
  1. INFO - This is Biber 1.6
  2. INFO - Logfile is 'test.blg'
  3. INFO - Reading 'test.bcf'
  4. INFO - Found 1 citekeys in bib section 0
  5. INFO - Processing section 0
  6. INFO - Looking for bibtex format file '../bibtot.bib' for section 0
  7. INFO - Decoding LaTeX character macros into UTF-8
  8. INFO - Found BibTeX data source '../bibtot.bib'
  9. INFO - Overriding locale 'en_US.UTF-8' default tailoring 'variable = shifted' with 'variable = non-ignorable'
  10. INFO - Sorting 'entry' list 'nyt' keys
  11. INFO - No sort tailoring available for locale 'en_US.UTF-8'
  12. INFO - Writing 'test.bbl' with encoding 'UTF-8'
  13. INFO - Output to test.bbl


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:

  1.  
  2. Package biblatex Warning: Type 'book' not found on input line 175.
  3. LaTeX Warning: Empty bibliography on input line 175.
  4. Package biblatex Warning: Type 'article' not found on input line 178.
  5. LaTeX Warning: Empty bibliography on input line 178.
  6. [9 <./Pictures/chapter_head_2.pdf>] [10] (./test.ind) (./test.aux) )
  7. (see the transcript file for additional information)pdfTeX warning (dest): name
  8. {section*.6} has been referenced but does not exist, replaced by a fixed one
  9.  
  10. pdfTeX warning (dest): name{cite.0@Kiat2008} has been referenced but does not e
  11. xist, replaced by a fixed one


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

Tags:

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

Postby Johannes_B » Mon Jul 06, 2015 3:57 pm

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

Postby pierre92 » Mon Jul 06, 2015 4:36 pm

Here is the first LaTeX file:

  1. \documentclass[11pt,fleqn]{book} % Default font size and left-justified equations
  2.  
  3. \input{structure} % Insert the commands.tex file which contains the majority of the structure behind the template
  4.  
  5. \begin{document}
  6. \chapterimage{Forewords.pdf} % Forewords image
  7. \chapter*{Forewords}
  8.  
  9. I would like to cite \cite{Kiat2008} as well as \cite{Zhou2006}
  10.  
  11.  
  12. %----------------------------------------------------------------------------------------
  13. % BIBLIOGRAPHY
  14. %----------------------------------------------------------------------------------------
  15. \chapter*{Bibliography}
  16. \addcontentsline{toc}{chapter}{\textcolor{cbleu}{Bibliography}}
  17. \section*{Books}
  18. \addcontentsline{toc}{section}{Books}
  19. \printbibliography[heading=bibempty,type=book]
  20. \section*{Articles}
  21. \addcontentsline{toc}{section}{Articles}
  22. \printbibliography[heading=bibempty,type=article]
  23.  
  24. \end{document}


which calls the structure.tex file below, where the name of the bibliography file has changed (now: bibmini.bib

  1. % Modified version of :
  2. %
  3. % The Legrand Orange Book
  4. % Structural Definitions File
  5. % Version 2.0 (9/2/15)
  6. %
  7. % modified by Pierre-Eymeric Janolin
  8. %
  9. % Original author:
  10. % Mathias Legrand (legrand.mathias@gmail.com) with modifications by:
  11. % Vel (vel@latextemplates.com)
  12. %
  13. % The original file has been downloaded from:
  14. % http://www.LaTeXTemplates.com
  15. %
  16. % License:
  17. % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
  18. %
  19. %
  20. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  21.  
  22. %----------------------------------------------------------------------------------------
  23. % VARIOUS REQUIRED PACKAGES AND CONFIGURATIONS
  24. %----------------------------------------------------------------------------------------
  25.  
  26. \usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]{geometry} % Page margins
  27.  
  28. \usepackage{graphicx} % Required for including pictures
  29. \graphicspath{{Pictures/}} % Specifies the directory where pictures are stored
  30.  
  31. \usepackage{lipsum} % Inserts dummy text
  32.  
  33. \usepackage{tikz} % Required for drawing custom shapes
  34.  
  35. \usepackage[english]{babel} % English language/hyphenation
  36.  
  37. \usepackage{enumitem} % Customize lists
  38. \setlist{nolistsep} % Reduce spacing between bullet points and numbered lists
  39.  
  40. \usepackage{booktabs} % Required for nicer horizontal rules in tables
  41.  
  42. \usepackage{xcolor} % Required for specifying colors by name
  43. \definecolor{ocre}{RGB}{243,102,25} % Define the orange color used for highlighting throughout the book
  44.  
  45. %----------------------------------------------------------------------------------------
  46. % FONTS
  47. %----------------------------------------------------------------------------------------
  48.  
  49. \usepackage{avant} % Use the Avantgarde font for headings
  50. %\usepackage{times} % Use the Times font for headings
  51. \usepackage{mathptmx} % Use the Adobe Times Roman as the default text font together with math symbols from the Sym­bol, Chancery and Com­puter Modern fonts
  52.  
  53. \usepackage{microtype} % Slightly tweak font spacing for aesthetics
  54. \usepackage[utf8]{inputenc} % Required for including letters with accents
  55. \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
  56.  
  57. %----------------------------------------------------------------------------------------
  58. % BIBLIOGRAPHY AND INDEX
  59. %----------------------------------------------------------------------------------------
  60.  
  61. \usepackage[style=alphabetic,citestyle=numeric,sorting=nyt,sortcites=true,autopunct=true,babel=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
  62. \addbibresource{bibmini.bib} % BibTeX bibliography file
  63. \defbibheading{bibempty}{}
  64.  
  65. \usepackage{calc} % For simpler calculation - used for spacing the index letter headings correctly
  66. \usepackage{makeidx} % Required to make an index
  67. \makeindex % Tells LaTeX to create the files required for indexing
  68.  
  69. %----------------------------------------------------------------------------------------
  70. % MAIN TABLE OF CONTENTS
  71. %----------------------------------------------------------------------------------------
  72.  
  73. \usepackage{titletoc} % Required for manipulating the table of contents
  74.  
  75. \contentsmargin{0cm} % Removes the default margin
  76.  
  77. % Part text styling
  78. \titlecontents{part}[0cm]
  79. {\addvspace{20pt}\centering\large\bfseries}
  80. {}
  81. {} %Couleur du texte.
  82. {}
  83.  
  84. % Chapter text styling
  85. \titlecontents{chapter}[1.25cm] % Indentation
  86. {\addvspace{12pt}\large\sffamily\bfseries} % Spacing and font options for chapters
  87. {\color{cbleu!60}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{cbleu}} % Chapter number
  88. {\color{cbleu}}
  89. {\color{cbleu!60}\normalsize\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number
  90.  
  91. % Section text styling
  92. \titlecontents{section}[1.25cm] % Indentation
  93. {\addvspace{3pt}\sffamily\bfseries} % Spacing and font options for sections
  94. {\contentslabel[\thecontentslabel]{1.25cm}} % Section number
  95. {}
  96. {\hfill\color{black}\thecontentspage} % Page number
  97. []
  98.  
  99. % Subsection text styling
  100. \titlecontents{subsection}[1.25cm] % Indentation
  101. {\addvspace{1pt}\sffamily\small} % Spacing and font options for subsections
  102. {\contentslabel[\thecontentslabel]{1.25cm}} % Subsection number
  103. {}
  104. {\ \titlerule*[.5pc]{.}\;\thecontentspage} % Page number
  105. []
  106.  
  107. % List of figures
  108. \titlecontents{figure}[0em]
  109. {\addvspace{-5pt}\sffamily}
  110. {\thecontentslabel\hspace*{1em}}
  111. {}
  112. {\ \titlerule*[.5pc]{.}\;\thecontentspage}
  113. []
  114.  
  115. % List of tables
  116. \titlecontents{table}[0em]
  117. {\addvspace{-5pt}\sffamily}
  118. {\thecontentslabel\hspace*{1em}}
  119. {}
  120. {\ \titlerule*[.5pc]{.}\;\thecontentspage}
  121. []
  122.  
  123. %----------------------------------------------------------------------------------------
  124. % MINI TABLE OF CONTENTS IN PART HEADS
  125. %----------------------------------------------------------------------------------------
  126.  
  127. % Chapter text styling
  128. \titlecontents{lchapter}[0em] % Indenting
  129. {\addvspace{15pt}\large\sffamily\bfseries} % Spacing and font options for chapters
  130. {\color{cbleu}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{cbleu}} % Chapter number
  131. {}
  132. {\color{cbleu}\normalsize\sffamily\bfseries\;\titlerule*[.5pc]{.}\;\thecontentspage} % Page number
  133.  
  134. % Section text styling
  135. \titlecontents{lsection}[0em] % Indenting
  136. {\sffamily\small} % Spacing and font options for sections
  137. {\contentslabel[\thecontentslabel]{1.25cm}} % Section number
  138. {}
  139. {}
  140.  
  141. % Subsection text styling
  142. \titlecontents{lsubsection}[.5em] % Indentation
  143. {\normalfont\footnotesize\sffamily} % Font settings
  144. {}
  145. {}
  146. {}
  147.  
  148. %----------------------------------------------------------------------------------------
  149. % PAGE HEADERS
  150. %----------------------------------------------------------------------------------------
  151.  
  152. \usepackage{fancyhdr} % Required for header and footer configuration
  153.  
  154. \pagestyle{fancy}
  155. \renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries\chaptername\ \thechapter.\ #1}{}} % Chapter text font settings
  156. \renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize\thesection\hspace{5pt}#1}{}} % Section text font settings
  157. \fancyhf{} \fancyhead[LE,RO]{\sffamily\normalsize\thepage} % Font setting for the page number in the header
  158. \fancyhead[LO]{\rightmark} % Print the nearest section name on the left side of odd pages
  159. \fancyhead[RE]{\leftmark} % Print the current chapter name on the right side of even pages
  160. \renewcommand{\headrulewidth}{0.5pt} % Width of the rule under the header
  161. \addtolength{\headheight}{2.5pt} % Increase the spacing around the header slightly
  162. \renewcommand{\footrulewidth}{0pt} % Removes the rule in the footer
  163. \fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}} % Style for when a plain pagestyle is specified
  164.  
  165. % Removes the header from odd empty pages at the end of chapters
  166. \makeatletter
  167. \renewcommand{\cleardoublepage}{
  168. \clearpage\ifodd\c@page\else
  169. \hbox{}
  170. \vspace*{\fill}
  171. \thispagestyle{empty}
  172. \newpage
  173. \fi}
  174.  
  175. %----------------------------------------------------------------------------------------
  176. % THEOREM STYLES
  177. %----------------------------------------------------------------------------------------
  178.  
  179. \usepackage{amsmath,amsfonts,amssymb,amsthm} % For math equations, theorems, symbols, etc
  180.  
  181. \newcommand{\intoo}[2]{\mathopen{]}#1\,;#2\mathclose{[}}
  182. \newcommand{\ud}{\mathop{\mathrm{{}d}}\mathopen{}}
  183. \newcommand{\intff}[2]{\mathopen{[}#1\,;#2\mathclose{]}}
  184. \newtheorem{notation}{Notation}[chapter]
  185.  
  186. % Boxed/framed environments
  187. \newtheoremstyle{ocrenumbox}% % Theorem style name
  188. {0pt}% Space above
  189. {0pt}% Space below
  190. {\normalfont}% % Body font
  191. {}% Indent amount
  192. {\small\bf\sffamily\color{cbleu}}% % Theorem head font
  193. {\;}% Punctuation after theorem head
  194. {0.25em}% Space after theorem head
  195. {\small\sffamily\color{cbleu}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
  196. \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries\color{black}---\nobreakspace#3.}} % Optional theorem note
  197. \renewcommand{\qedsymbol}{$\blacksquare$}% Optional qed square
  198.  
  199. \newtheoremstyle{blacknumex}% Theorem style name
  200. {5pt}% Space above
  201. {5pt}% Space below
  202. {\normalfont}% Body font
  203. {} % Indent amount
  204. {\small\bf\sffamily}% Theorem head font
  205. {\;}% Punctuation after theorem head
  206. {0.25em}% Space after theorem head
  207. {\small\sffamily{\tiny\ensuremath{\blacksquare}}\nobreakspace\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
  208. \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries---\nobreakspace#3.}}% Optional theorem note
  209.  
  210. \newtheoremstyle{blacknumbox} % Theorem style name
  211. {0pt}% Space above
  212. {0pt}% Space below
  213. {\normalfont}% Body font
  214. {}% Indent amount
  215. {\small\bf\sffamily}% Theorem head font
  216. {\;}% Punctuation after theorem head
  217. {0.25em}% Space after theorem head
  218. {\small\sffamily\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
  219. \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries---\nobreakspace#3.}}% Optional theorem note
  220.  
  221. % Non-boxed/non-framed environments
  222. \newtheoremstyle{ocrenum}% % Theorem style name
  223. {5pt}% Space above
  224. {5pt}% Space below
  225. {\normalfont}% % Body font
  226. {}% Indent amount
  227. {\small\bf\sffamily\color{cbleu}}% % Theorem head font
  228. {\;}% Punctuation after theorem head
  229. {0.25em}% Space after theorem head
  230. {\small\sffamily\color{cbleu}\thmname{#1}\nobreakspace\thmnumber{\@ifnotempty{#1}{}\@upn{#2}}% Theorem text (e.g. Theorem 2.1)
  231. \thmnote{\nobreakspace\the\thm@notefont\sffamily\bfseries\color{black}---\nobreakspace#3.}} % Optional theorem note
  232. \renewcommand{\qedsymbol}{$\blacksquare$}% Optional qed square
  233. \makeatother
  234.  
  235. % Defines the theorem text style for each type of theorem to one of the three styles above
  236. \newcounter{dummy}
  237. \numberwithin{dummy}{section}
  238. \theoremstyle{ocrenumbox}
  239. \newtheorem{theoremeT}[dummy]{Theorem}
  240. \newtheorem{problem}{Problem}[chapter]
  241. \newtheorem{exerciseT}{Exercise}[chapter]
  242. \theoremstyle{blacknumex}
  243. \newtheorem{exampleT}{Example}[chapter]
  244. \theoremstyle{blacknumbox}
  245. \newtheorem{vocabulary}{Vocabulary}[chapter]
  246. \newtheorem{definitionT}{Definition}[section]
  247. \newtheorem{corollaryT}[dummy]{Corollary}
  248. \theoremstyle{ocrenum}
  249. \newtheorem{proposition}[dummy]{Proposition}
  250.  
  251. %----------------------------------------------------------------------------------------
  252. % DEFINITION OF COLORED BOXES
  253. %----------------------------------------------------------------------------------------
  254.  
  255. \RequirePackage[framemethod=default]{mdframed} % Required for creating the theorem, definition, exercise and corollary boxes
  256.  
  257. % Theorem box
  258. \newmdenv[skipabove=7pt,
  259. skipbelow=7pt,
  260. backgroundcolor=black!5,
  261. linecolor=cbleu2,
  262. innerleftmargin=5pt,
  263. innerrightmargin=5pt,
  264. innertopmargin=5pt,
  265. leftmargin=0cm,
  266. rightmargin=0cm,
  267. innerbottommargin=5pt]{tBox}
  268.  
  269. % Exercise box
  270. \newmdenv[skipabove=7pt,
  271. skipbelow=7pt,
  272. rightline=false,
  273. leftline=true,
  274. topline=false,
  275. bottomline=false,
  276. backgroundcolor=cbleu2!10,
  277. linecolor=cbleu2,
  278. innerleftmargin=5pt,
  279. innerrightmargin=5pt,
  280. innertopmargin=5pt,
  281. innerbottommargin=5pt,
  282. leftmargin=0cm,
  283. rightmargin=0cm,
  284. linewidth=4pt]{eBox}
  285.  
  286. % Definition box
  287. \newmdenv[skipabove=7pt,
  288. skipbelow=7pt,
  289. rightline=false,
  290. leftline=true,
  291. topline=false,
  292. bottomline=false,
  293. linecolor=cbleu2,
  294. innerleftmargin=5pt,
  295. innerrightmargin=5pt,
  296. innertopmargin=0pt,
  297. leftmargin=0cm,
  298. rightmargin=0cm,
  299. linewidth=4pt,
  300. innerbottommargin=0pt]{dBox}
  301.  
  302. % Corollary box
  303. \newmdenv[skipabove=7pt,
  304. skipbelow=7pt,
  305. rightline=false,
  306. leftline=true,
  307. topline=false,
  308. bottomline=false,
  309. linecolor=gray,
  310. backgroundcolor=black!5,
  311. innerleftmargin=5pt,
  312. innerrightmargin=5pt,
  313. innertopmargin=5pt,
  314. leftmargin=0cm,
  315. rightmargin=0cm,
  316. linewidth=4pt,
  317. innerbottommargin=5pt]{cBox}
  318.  
  319. % Creates an environment for each type of theorem and assigns it a theorem text style from the "Theorem Styles" section above and a colored box from above
  320. \newenvironment{theorem}{\begin{tBox}\begin{theoremeT}}{\end{theoremeT}\end{tBox}}
  321. \newenvironment{exercise}{\begin{eBox}\begin{exerciseT}}{\hfill{\color{cbleu}\tiny\ensuremath{\blacksquare}}\end{exerciseT}\end{eBox}}
  322. \newenvironment{definition}{\begin{dBox}\begin{definitionT}}{\end{definitionT}\end{dBox}}
  323. \newenvironment{example}{\begin{exampleT}}{\hfill{\tiny\ensuremath{\blacksquare}}\end{exampleT}}
  324. \newenvironment{corollary}{\begin{cBox}\begin{corollaryT}}{\end{corollaryT}\end{cBox}}
  325.  
  326. %----------------------------------------------------------------------------------------
  327. % REMARK ENVIRONMENT
  328. %----------------------------------------------------------------------------------------
  329.  
  330. \newenvironment{remark}{\par\vspace{10pt}\small % Vertical white space above the remark and smaller font size
  331. \begin{list}{}{
  332. \leftmargin=35pt % Indentation on the left
  333. \rightmargin=25pt}\item\ignorespaces % Indentation on the right
  334. \makebox[-2.5pt]{\begin{tikzpicture}[overlay]
  335. \node[draw=cbleu2!60,line width=1pt,circle,fill=cbleu2!25,font=\sffamily\bfseries,inner sep=2pt,outer sep=0pt] at (-15pt,0pt){\textcolor{cbleu}{R}};\end{tikzpicture}} % Orange R in a circle
  336. \advance\baselineskip -1pt}{\end{list}\vskip5pt} % Tighter line spacing and white space after remark
  337.  
  338. %----------------------------------------------------------------------------------------
  339. % SECTION NUMBERING IN THE MARGIN
  340. %----------------------------------------------------------------------------------------
  341.  
  342. \makeatletter
  343. \renewcommand{\@seccntformat}[1]{\llap{\textcolor{cbleu}{\csname the#1\endcsname}\hspace{1em}}}
  344. \renewcommand{\section}{\@startsection{section}{1}{\z@}
  345. {-4ex \@plus -1ex \@minus -.4ex}
  346. {1ex \@plus.2ex }
  347. {\normalfont\large\sffamily\bfseries}}
  348. \renewcommand{\subsection}{\@startsection {subsection}{2}{\z@}
  349. {-3ex \@plus -0.1ex \@minus -.4ex}
  350. {0.5ex \@plus.2ex }
  351. {\normalfont\sffamily\bfseries}}
  352. \renewcommand{\subsubsection}{\@startsection {subsubsection}{3}{\z@}
  353. {-2ex \@plus -0.1ex \@minus -.2ex}
  354. {.2ex \@plus.2ex }
  355. {\normalfont\small\sffamily\bfseries}}
  356. \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
  357. {-2ex \@plus-.2ex \@minus .2ex}
  358. {.1ex}
  359. {\normalfont\small\sffamily\bfseries}}
  360.  
  361. %----------------------------------------------------------------------------------------
  362. % PART HEADINGS
  363. %----------------------------------------------------------------------------------------
  364.  
  365. % numbered part in the table of contents
  366. \newcommand{\@mypartnumtocformat}[2]{%
  367. \setlength\fboxsep{0pt}%
  368. \noindent\colorbox{cgris!20}{\strut\parbox[c][.7cm]{\ecart}{\color{cgris!70}\Large\sffamily\bfseries\centering#1}}\hskip\esp\colorbox{cgris!40}{\strut\parbox[c][.7cm]{\linewidth-\ecart-\esp}{\Large\sffamily\centering#2}}}% Dans la table des matieres: 1ere couleur : carre sous le numero, seconde couleur: celle du numero, 3eme : backgd pour la boite.
  369. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  370. % unnumbered part in the table of contents
  371. \newcommand{\@myparttocformat}[1]{%
  372. \setlength\fboxsep{0pt}%
  373. \noindent\colorbox{cbleu!40}{\strut\parbox[c][.7cm]{\linewidth}{\Large\sffamily\centering#1}}}%
  374. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  375. \newlength\esp
  376. \setlength\esp{4pt}
  377. \newlength\ecart
  378. \setlength\ecart{1.2cm-\esp}
  379. \newcommand{\thepartimage}{}%
  380. \newcommand{\partimage}[1]{\renewcommand{\thepartimage}{#1}}%
  381. \def\@part[#1]#2{%
  382. \ifnum \c@secnumdepth >-2\relax%
  383. \refstepcounter{part}%
  384. \addcontentsline{toc}{part}{\texorpdfstring{\protect\@mypartnumtocformat{\thepart}{#1}}{\partname~\thepart\ ---\ #1}}
  385. \else%
  386. \addcontentsline{toc}{part}{\texorpdfstring{\protect\@myparttocformat{#1}}{#1}}%
  387. \fi%
  388. \startcontents%
  389. \markboth{}{}%
  390. {\thispagestyle{empty}%
  391. \begin{tikzpicture}[remember picture,overlay]%
  392. \node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%
  393. \fill[cbleu!20](0cm,0cm) rectangle (\paperwidth,-\paperheight); %Couleur de l'arriere plan des pages d'intro des parties.
  394. \node[anchor=north] at (4cm,-3.25cm){\color{cgris!40}\fontsize{220}{100}\sffamily\bfseries\@Roman\c@part}; %Couleur de la barre verticale a gauche de ``Part ...'' dans les pages d'intro des parties
  395. \node[anchor=south east] at (\paperwidth-1cm,-\paperheight+1cm){\parbox[t][][t]{8.5cm}{
  396. \printcontents{l}{0}{\setcounter{tocdepth}{1}}%
  397. }};
  398. \node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{white}\fontsize{30}{30}\sffamily\bfseries#2}};
  399. \end{tikzpicture}};
  400. \end{tikzpicture}}%
  401. \@endpart}
  402. \def\@spart#1{%
  403. \startcontents%
  404. \phantomsection
  405. {\thispagestyle{empty}%
  406. \begin{tikzpicture}[remember picture,overlay]%
  407. \node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%
  408. \fill[cbleu!20](0cm,0cm) rectangle (\paperwidth,-\paperheight);
  409. \node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{white}\fontsize{30}{30}\sffamily\bfseries#1}};
  410. \end{tikzpicture}};
  411. \end{tikzpicture}}
  412. \addcontentsline{toc}{part}{\texorpdfstring{%
  413. \setlength\fboxsep{0pt}%
  414. \noindent\protect\colorbox{cbleu!40}{\strut\protect\parbox[c][.7cm]{\linewidth}{\Large\sffamily\protect\centering #1\quad\mbox{}}}}{#1}}%
  415. \@endpart}
  416. \def\@endpart{\vfil\newpage
  417. \if@twoside
  418. \if@openright
  419. \null
  420. \thispagestyle{empty}%
  421. \newpage
  422. \fi
  423. \fi
  424. \if@tempswa
  425. \twocolumn
  426. \fi}
  427.  
  428. %----------------------------------------------------------------------------------------
  429. % CHAPTER HEADINGS
  430. %----------------------------------------------------------------------------------------
  431.  
  432. \newcommand{\thechapterimage}{}%
  433. \newcommand{\chapterimage}[1]{\renewcommand{\thechapterimage}{#1}}%
  434. \def\@makechapterhead#1{%
  435. {\parindent \z@ \raggedright \normalfont
  436. \ifnum \c@secnumdepth >\m@ne
  437. \if@mainmatter
  438. \begin{tikzpicture}[remember picture,overlay]
  439. \node at (current page.north west)
  440. {\begin{tikzpicture}[remember picture,overlay]
  441. \node[anchor=north west,inner sep=0pt] at (0,0) {\includegraphics[width=\paperwidth]{\thechapterimage}};
  442. \draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=8pt,draw=cbleu,fill=white,fill opacity=0.7,inner sep=15pt]{\strut\makebox[22cm]{}};
  443. \draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}\thechapter. #1\strut};
  444. \end{tikzpicture}};
  445. \end{tikzpicture}
  446. \else
  447. \begin{tikzpicture}[remember picture,overlay]
  448. \node at (current page.north west)
  449. {\begin{tikzpicture}[remember picture,overlay]
  450. \node[anchor=north west,inner sep=0pt] at (0,0) {\includegraphics[width=\paperwidth]{\thechapterimage}};
  451. \draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=8pt,draw=cbleu,fill=white,fill opacity=0.7,inner sep=15pt]{\strut\makebox[22cm]{}};
  452. \draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut};
  453. \end{tikzpicture}};
  454. \end{tikzpicture}
  455. \fi\fi\par\vspace*{270\p@}}}
  456.  
  457. %-------------------------------------------
  458.  
  459. \def\@makeschapterhead#1{%
  460. \begin{tikzpicture}[remember picture,overlay]
  461. \node at (current page.north west)
  462. {\begin{tikzpicture}[remember picture,overlay]
  463. \node[anchor=north west,inner sep=0pt] at (0,0) {\includegraphics[width=\paperwidth]{\thechapterimage}};
  464. \draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=8pt,draw=cbleu,fill=white,fill opacity=0.7,inner sep=15pt]{\strut\makebox[22cm]{}};
  465. \draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut};
  466. \end{tikzpicture}};
  467. \end{tikzpicture}
  468. \par\vspace*{270\p@}}
  469. \makeatother
  470.  
  471. %----------------------------------------------------------------------------------------
  472. % HYPERLINKS IN THE DOCUMENTS
  473. %----------------------------------------------------------------------------------------
  474.  
  475. \usepackage{hyperref}
  476. \hypersetup{hidelinks,backref=true,pagebackref=true,hyperindex=true,colorlinks=false,breaklinks=true,urlcolor= cvert,bookmarks=true,bookmarksopen=false,pdftitle={Title},pdfauthor={Author}}
  477. \usepackage{bookmark}
  478. \bookmarksetup{
  479. open,
  480. numbered,
  481. addtohook={%
  482. \ifnum\bookmarkget{level}=0 % chapter
  483. \bookmarksetup{bold}%
  484. \fi
  485. \ifnum\bookmarkget{level}=-1 % part
  486. \bookmarksetup{color=cbleu,bold}%
  487. \fi
  488. }
  489. }


and the bibliography file:

  1. @article{Zhou2006,
  2. title = {Unusual Evolution of the Magnetic Interactions versus Structural Distortions in $R{\mathrm{MnO}}_{3}$ Perovskites},
  3. author = {Zhou, J.-S. and Goodenough, J. B.},
  4. journal = {Phys. Rev. Lett.},
  5. volume = {96},
  6. issue = {24},
  7. pages = {247202},
  8. numpages = {4},
  9. year = {2006},
  10. month = {Jun},
  11. publisher = {American Physical Society},
  12. doi = {10.1103/PhysRevLett.96.247202},
  13. url = {http://link.aps.org/doi/10.1103/PhysRevLett.96.247202}
  14. }
  15.  
  16. @incollection{Kiat2008,
  17. title = "14 - From the structure of relaxors to the structure of MPB systems ",
  18. editor = "Ye, Zuo-Guang ",
  19. booktitle = "Handbook of Advanced Dielectric, Piezoelectric and Ferroelectric Materials ",
  20. publisher = "Woodhead Publishing",
  21. year = "2008",
  22. pages = "391 - 446",
  23. series = "Woodhead Publishing Series in Electronic and Optical Materials",
  24. isbn = "978-1-84569-186-8",
  25. doi = "http://dx.doi.org/10.1533/9781845694005.3.391",
  26. url = "http://www.sciencedirect.com/science/article/pii/B9781845691868500144",
  27. author = "J.-M. Kiat and B. Dkhil"
  28. }

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

Postby Johannes_B » Mon Jul 06, 2015 5:21 pm

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.


  1. \begin{filecontents}{\jobname.bib}
  2. @article{Zhou2006,
  3. title = {Unusual Evolution of the Magnetic Interactions versus Structural Distortions in $R{\mathrm{MnO}}_{3}$ Perovskites},
  4. author = {Zhou, J.-S. and Goodenough, J. B.},
  5. journal = {Phys. Rev. Lett.},
  6. volume = {96},
  7. issue = {24},
  8. pages = {247202},
  9. numpages = {4},
  10. year = {2006},
  11. month = {Jun},
  12. publisher = {American Physical Society},
  13. doi = {10.1103/PhysRevLett.96.247202},
  14. url = {http://link.aps.org/doi/10.1103/PhysRevLett.96.247202}
  15. }
  16.  
  17. @incollection{Kiat2008,
  18. title = "14 - From the structure of relaxors to the structure of MPB systems ",
  19. editor = "Ye, Zuo-Guang ",
  20. booktitle = "Handbook of Advanced Dielectric, Piezoelectric and Ferroelectric Materials ",
  21. publisher = "Woodhead Publishing",
  22. year = "2008",
  23. pages = "391 - 446",
  24. series = "Woodhead Publishing Series in Electronic and Optical Materials",
  25. isbn = "978-1-84569-186-8",
  26. doi = "http://dx.doi.org/10.1533/9781845694005.3.391",
  27. url = "http://www.sciencedirect.com/science/article/pii/B9781845691868500144",
  28. author = "J.-M. Kiat and B. Dkhil"
  29. }
  30. \end{filecontents}
  31. \documentclass{book}
  32. \usepackage{biblatex}
  33. \addbibresource{\jobname.bib}
  34. \usepackage{hyperref}
  35. \begin{document}
  36. I would like to cite \cite{Kiat2008} as well as \cite{Zhou2006}
  37. \printbibliography[type=book]
  38. \printbibliography[type=article]
  39.  
  40. \end{document}
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

Postby pierre92 » Mon Jul 06, 2015 7:24 pm

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: 4104
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jul 06, 2015 7:38 pm

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.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest