I would like to remove the year label, if it is undefined. What I get:
EC No 197/38 2012 (n.d.)
But it should be:
EC No 197/38 2012
In the bibliography I get this, but it is correct for me:
EC No 197/38 2012: Waste electrical and electronic equipment (WEEE), 4 July 2012, Commission Regulation.
\documentclass{book}
\usepackage[style=authoryear-icomp]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{biblio.bib}
@Misc{EC4July2012,
Title = {Waste electrical and electronic equipment ({WEEE}), 4 July 2012},
Author = {{EC No 197/38 2012}},
Type = {Commission Regulation},
}
\end{filecontents}
\addbibresource{biblio.bib}
\nocite{*}
\begin{document}
Something \autocite{EC4July2012}.
\printbibliography
\end{document}
yearfield in thebibtexentry. – Guido May 21 '14 at 11:35@miscs:\renewbibmacro*{cite:labelyear+extrayear}{% \ifentrytype{misc} {} {\iffieldundef{labelyear} {} {\printtext[bibhyperref]{% \printfield{labelyear}% \printfield{extrayear}}}}}(modulo line breaks and comment characters, if you want that, I can write up an answer). – moewe May 22 '14 at 05:21\renewbibmacro*{cite:labelyear+extrayear}{%\n\ifentrytype{misc}\n{}\n{\iffieldundef{labelyear}\n{}\n{\printtext[bibhyperref]{%\n\printfield{labelyear}%\n\printfield{extrayear}}}}}\n` and nowhere else – moewe May 25 '14 at 16:16