Hello latex community!
I'm trying to set a specific command to cite journal articles which doesn't show the author but the journal title, the date and then the article title.
I've found this answer: How to create a \citejournal, \citebooktitle, \cite... command in biblatex?
My problem is that it doesn't not provide the date nor the article title so I've modified it a bit:
\DeclareCiteCommand{\citejournal}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{journal}
\usebibmacro{date}
\usebibmacro{title}}
{\multicitedelim}
{\usebibmacro{postnote}}
It's now almost perfect as I see the journal and the article title but the date does not show.
Here is a short MWE with the citation I'm using:
\documentclass{article}
\usepackage[style=authoryear,backend=biber]{biblatex}
\DeclareCiteCommand{\citejournal}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{journal}
\usebibmacro{date}
\usebibmacro{title}}
{\multicitedelim}
{\usebibmacro{postnote}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{test,
author = {Author, A.},
date = {2011-06-12},
title = {Some relevant article},
journal = {Test journal}
}
\end{filecontents}
\bibliography{\jobname}
\begin{document}
Some text~\citejournal{test}
\printbibliography
\end{document}