Consider the following MWE:
\documentclass{article}
\usepackage[backend=bibtex]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{mybib.bib}
@misc{A01,
author={Author, A.},
year={2001},
title={Alpha}
}
\end{filecontents}
\addbibresource{mybib.bib}
\begin{filecontents}{mytext.tex}
Hey, I want to repeat some text!
\end{filecontents}
\begin{document}
\include{mytext}
\cite{A01}
\include{mytext}
\printbibliography
\end{document}
Bibtex will complain because we're asking it to process the file mytext.aux twice:
A level-1 auxiliary file: mytext.aux
Already encountered file mytext.aux
---line 10 of file bi.aux
: \@input{mytext.aux :
}
I'm skipping whatever remains of this command
Is there any way to deal with that situation in a more clever way? What if I want to include the same snippet twice, but don't want this error to be reported, what should I do?
\inputinstead of\includeso it does not create an auxiliary file? – Troy Jan 30 '17 at 02:52\includefeatures? (Like\includeonly, for instance, cf. http://tex.stackexchange.com/q/246/34551). (PS: thanks for the edit.) – Clément Jan 30 '17 at 04:01backend=biber. You should switch backends anyway since BibTeX is only supported as legacy backend. – moewe Jan 30 '17 at 17:48articlewas just for the example, I actually use this code for abeamerdocument (and the included document is a customized table of contents). And, indeed,biberhandles that situation just fine. So I guess your answer would be "either don't useincludethat way, or switch tobiber? – Clément Feb 01 '17 at 14:18