I have a file called Test.tex containting
ID1
I'm trying to feed this file to a \textcite{} command, using the input{}command.
\begin{filecontents*}{References.bib}
@article{ID1,
Author = {Some Author},
Journal = {Some Journal},
Title = {Some Title},
Year = {2016},
Volume = {1(1)},
Pages = {1-10}}
\end{filecontents*}
\documentclass{article}
\usepackage{catchfile}
\usepackage[style=authoryear]{biblatex}
\addbibresource{References.bib}
\begin{document}
\textcite{\input{./Test.tex}}
\printbibliography
\end{document}
Running this gives me the following error:
! Argument of \blx@citeargs@i has an extra }.
<inserted text>
\par
l.15 ^^I\textcite{\input{./Test.tex}}
Looking at this thread, I tried going around the problem by using
\begin{filecontents*}{References.bib}
@article{ID1,
Author = {Some Author},
Journal = {Some Journal},
Title = {Some Title},
Year = {2016},
Volume = {1(1)},
Pages = {1-10}}
\end{filecontents*}
\documentclass{article}
\usepackage{catchfile}
\usepackage[style=authoryear]{biblatex}
\addbibresource{References.bib}
\begin{document}
\CatchFileDef\filecontent{Test.tex}{}
\expandafter\textcite\expandafter{\filecontent}
\printbibliography
\end{document}
This didn't completely solve my problem though. The reference list came out alright, but the in text citation just read ID1 instead of Author (2016).

\nocitecommand. – Speldosa Jul 21 '16 at 16:55\nocite{*}, or create a set and cite that. – Johannes_B Jul 21 '16 at 16:57