I've tried many different remedies found online to make XeLaTeX compile with BibTeX, although, since I am not a very experienced user, I came empty-handed. I use XeLaTeX because I would like to use different colours, fonts etc. I compile with BibTeX once, followed by compiling with XeLaTeX twice, and still I cannot get my citations work. I include my entire file (apart from the actual text), hoping that more experienced people here can locate the problem. If it matters, I also use TeXMaker on OSX.
\documentclass[a4paper, 11pt]{article}
\usepackage[left=20mm, right=20mm, top=15mm, bottom=8mm, headheight=20pt, includehead, includefoot, heightrounded]{geometry}
\usepackage[version=3]{mhchem} % Package for chemical equation typesetting
\usepackage{comment}
\usepackage{fontspec}
\usepackage{enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage{xfrac}
\usepackage{upgreek}
\definecolor{blue(pigment)}{rgb}{0.2, 0.2, 0.6}
\definecolor{bluegray}{rgb}{0.4, 0.6, 0.8}
\usepackage{scrlayer}
\DeclareNewLayer[
foreground,
contents={%
\parbox[b][\layerheight][c]{\layerwidth}
{\centering This page is intentionally left blank.}%
}
]{blankpage.fg}
\DeclarePageStyleByLayers{blank}{blankpage.fg}
\setlength\parindent{0pt} % Removes all indentation from paragraphs
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{--~\thepage~--}\rhead{DOCUMENT CODE}
\renewcommand*{\headrulewidth}{0pt}
\renewcommand*{\footrulewidth}{0pt}
\setlength{\headheight}{5pt}
\makeatletter
\let\ps@plain\ps@fancy
\makeatother
\renewcommand{\labelenumi}{\alph{enumi}.}
\usepackage{yfonts}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[rm=oldstyle]{cfr-lm}
\usepackage{titling}
\usepackage{pdfpages}
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{0}%
\newpage}
\newfontfamily\otherfont{remagg_cz}
\color{blue(pigment)}
\fancypagestyle{nofooter}{%
\fancyfoot{}%
}
\usepackage[backend=biber,style=numeric-comp]{biblatex}
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}%
\bibopenbracket}%
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}\bibclosebracket}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{A1,
author = {Author1, Name1., Author2, Name2.},
year = {1992},
title = {Title A1},
}
@article{B2,
author = {Author, A. B.},
year = {2020},
title = {Title B2},
}
\end{filecontents}
\addbibresource{test.bib}
\let\cite=\supercite
%
\begin{document}
\includepdf{first.eps} % Front page
\newpage\null\thispagestyle{blank}\newpage
\includepdf{second.eps} % Second page
\newpage\null\thispagestyle{blank}\newpage
\includepdf{third.eps} % Third page
\newpage\null\thispagestyle{blank}\newpage
\setlength{\droptitle}{-6em}
\title{Document Title}
\author{Author name}
\date{}
\maketitle
\thispagestyle{empty}
\vspace{-1.5cm}
\frenchspacing
%
\section*{Section 1}
This project is based on previous work\cite{A1,B1} done under the auspices of the university.
\printbibliography
\end{document}
What could have gone wrong in this case? Is there something in the preamble that competes with the code I use for the bibliography? The code I used for the bibliography can be found here Biblatex supercite with square brackets and grouped
When I complete with BibTeX the result I get is this
Process started
This is BibTeX, Version 0.99d (TeX Live 2018) The top-level auxiliary file: report.aux I found no \citation commands---while reading file report.aux I found no \bibdata command---while reading file report.aux I found no \bibstyle command---while reading file report.aux (There were 3 error messages)
Process exited with error(s)
Although after I compile twice with XeLaTeX there is no error message about the bibliography, only the following warnings
Warning 1:
LaTeX Warning: Overwriting file `./test.bib'.
\openout15 = `test.bib'.
Package biblatex Info: Trying to load language 'english'...
Package biblatex Info: ... file 'english.lbx' found.
(/usr/local/texlive/2018/texmf-dist/tex/latex/biblatex/lbx/english.lbx
File: english.lbx 2018/03/04 v3.11 biblatex localization (PK/MW))
Warning 2:
LaTeX Warning: Citation 'A1' on page 7 undefined on input line 115.
Warning 3:
LaTeX Warning: Empty bibliography on input line 122.
And finally Warning 4:
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) report
(biblatex) and rerun LaTeX afterwards.
Package logreq Info: Writing requests to 'report.run.xml'.
\openout1 = `report.run.xml'.
Thank you in advance!
\usepackage[backend=biber,style=numeric-comp]{biblatex}but your question sais that you tried to compile withbibtex. Either usebackend=bibtexand compile withbibtexor stick to the original line of code and compile your document withbiberinstead ofbibtex. – leandriis Mar 23 '20 at 13:13BibTeXthere are no errors, however, there is a new message after I compile withXeLaTeXsaying that bibtex.sty not found. How can I install this to work forXeLaTeX? – PeriPeri Mar 23 '20 at 13:22\usepackage[backend=biber,style=numeric-comp]{biblatex}to this\usepackage[backend=bibtex,style=numeric-comp]{bibtex}– PeriPeri Mar 23 '20 at 13:43\usepackage[backend=bibtex,style=numeric-comp]{biblatex}. – leandriis Mar 23 '20 at 13:53