0

I'm trying to merge the three chapters of my PhD thesis using \subfile, and I want the .bib files to be added at the end of each chapter. I'm trying with only one .bib file first and it doesn't work, ie. the output doesn't take into account my input style=numeric and doesn't print any bibliography (it just prints \biblio_chap1 at the end of the document !).

\documentclass[a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{subfiles}
\usepackage[backend=biber,style=numeric]{biblatex}
\addbibresource{/biblio_chap1.bib}

\title{PhD thesis}
\author{Anaïs}
\date{}

\begin{document}

\chapter*{Acknowledgements}\subfile{Acknowledgements}

\chapter*{Introduction}\subfile{Intro}

\chapter{Paper 1}\subfile{chapter_1}
\printbibliography{/biblio_chap1}

\end{document}

And here is a minimal code for the chapter_1:

\documentclass{subfiles}
\begin{document}
\section{Introduction}
(CCRIF, 2017)\cite{ccrif} GDP\footnotemark{GDP 2016}
\end{document}

and for the .bib file

@techreport{ccrif,
 title = {CCRIF SPC Annual Report 2016-2017},
 author = {},
 group = {Caribbean Catastrophe Risk Insurance Facility},
 year = {2017},
 institution = {CCRIF SPC},
 address = {},
 month = {}
}

I have changed the execution mode accordingly from bibtex.exe to biber.exe and I compile using PDFTeXify. The bibliography works fine in a separate article, with the \bibliography command.

Anais
  • 1
  • Welcome to TeX SX! Try compiling by hand (pdflatex >biber >pdflatex (twice)). – Bernard Feb 22 '19 at 23:32
  • The thing is that with Winedt I think I have no option to run biber alone? – Anais Feb 22 '19 at 23:38
  • 2
    You can have, from the Configuration Components section of WinEdt.org, download the WinEdt macro LaTeXify which adds some menu items and icons for the toolbar, among which a Biber menu/icon. – Bernard Feb 22 '19 at 23:50
  • Unfortunately I'm using a cluster where I have no administrator rights... And I can't find the LaTeXify macro? – Anais Feb 22 '19 at 23:54
  • 1
    There are no executable. It just installs WinEdt adhoc macros. Did you try? Other than that, can you play with the Execution Modes (Options menu)? – Bernard Feb 23 '19 at 00:00
  • I have installed the LaTeXify macro. I have also played with the options of Execution Modes to swith from bibtex.exe to biber.exe. Now when I run Bibtex (after Pdflatex once) I get an error message Cannot find '/biblio_chap1.bib'! – Anais Feb 23 '19 at 10:30
  • Okay so now it works and I have the good bibliography, but some functions don't work anymore (especially the \footnotemark) – Anais Feb 23 '19 at 10:57
  • Could you post a minimal compilable code, reproducing the problem? Unrelated: you shouldn't have to modify the Execution Mode with LaTeXifysince it adds aBiberitem in theTeXmenu (shortcut: Ctrl+Alt+B) and aBiber` icon in the toolbar. – Bernard Feb 23 '19 at 10:58
  • \footnotemark is unrelated to biblate+biber (normally). Again: please post a minimal example reproducing the problem. – Bernard Feb 23 '19 at 11:00
  • Unfortunately the installation of LaTeXify has not added any icon in the toolbar... I have executed the macro script properly. I add a minimal code in my question – Anais Feb 23 '19 at 11:01
  • 1
    Now it works! With PDFTeXify. Thank you very much! – Anais Feb 23 '19 at 11:15

0 Answers0