Eu tentei muitos remédios diferentes encontrados on-line para XeLaTeX
compilar BibTeX
, embora, como não sou um usuário muito experiente, tenha chegado de mãos vazias. Eu uso XeLaTeX
porque gostaria de usar cores, fontes diferentes, etc. Eu compilo BibTeX
uma vez, depois compilo XeLaTeX
duas vezes, e ainda assim não consigo fazer minhas citações funcionarem. Incluo meu arquivo inteiro (exceto o texto em si), esperando que pessoas mais experientes aqui possam localizar o problema. Se for importante, eu também uso 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}
O que poderia ter dado errado neste caso? Existe algo no preâmbulo que compete com o código que utilizo para a bibliografia? O código que usei para a bibliografia pode ser encontrado aquiSupercite Biblatex com colchetes e agrupados
Quando termino com BibTeX
o resultado que obtenho é este
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)
Embora depois de compilar duas vezes XeLaTeX
não haja nenhuma mensagem de erro sobre a bibliografia, apenas os seguintes avisos
Aviso 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))
Aviso 2:
LaTeX Warning: Citation 'A1' on page 7 undefined on input line 115.
Aviso 3:
LaTeX Warning: Empty bibliography on input line 122.
E finalmenteAviso 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'.
Agradeço antecipadamente!