I have a problem with some customization of my biblatex
. For some reasons, I want to use a special command to cite normative documents: I would like to make them appear (in both text and bibliography) with a short-name rather than an author name or a number. Plus, I need to use a check option in the printing of the bibliography. Here is my problem, the combination of these two is not working well in my case: the normative text are not appearing in the bibliography.
I assume it is just a problem of definition in the commands, but I did not find the documentation of biblatex how to solve it.
Here is a MWE:
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage[citestyle=alphabetic,
bibstyle=alphabetic,
citetracker=true,
mcite=true,
backend=biber
]{biblatex}
\addbibresource[datatype=bibtex]{./biblio.bib}
\DeclareBibliographyDriver{standard}{\usedriver{\newblock}{manual}
\usebibmacro{pageref}
\finentry}
\DeclareCiteCommand{\parencitetitle}[\mkbibparens]
{\boolfalse{citetracker}
\boolfalse{pagetracker}
\usebibmacro{prenote}}
{\ifciteindex
{\indexfield{indextitle}}
{}%
%\printfield[citetitle]{labeltitle}}
\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\defbibcheck{mynocite}{
\ifboolexpr{test{\ifciteseen} or test {\ifkeyword{secondary}}}
{}
{\skipentry}
}
\begin{document}
Firsts references: \cite{banks92}
Eurocode : \parencitetitle{en1998}
\printbibliography[check=mynocite]
\end{document}
with the bib file biblio.bib
:
@STANDARD{en1998,
shorttitle = {EN 1998},
title = {EN 1998, Eurocode 8: contruction norms},
organization = {CEN},
address = {Brussels, Belgium},
year = {2005},
}
@book{banks92,
title={Control and Estimation in Distributed Parameter Systems},
author={Banks, H.T.},
isbn={9780898712971},
lccn={92027712},
series={Frontiers in Applied Mathematics},
url={http://books.google.fr/books?id=Gp5usSwk31wC},
year={1992},
publisher={Society for Industrial and Applied Mathematics}
}
Of course, in this example the check option could be removed, but I need it in my bigger cases.