# add custom citation that differs in format than the rest

This has been bugging me for quite some time now but can't find a nice way to work it out.

I have a list of citations that follow the regular author. Year. Title. Journal. Volume: Pages layout. I have to cite a legal document (Water framework directive). How do I go about this, as the paper has no authors, journals, pages...

I would like it to appear in the text as

... V Sloveniji smo leta 2000 sprejeli Vodno direktivo (2000/60/EC) (v nadaljevanju: VD), ki v evropskem prostoru enotno ureja politiko upravljanja površinskih in podzemnih celinskih voda, vključno s somornico in morjem....

and in the references as

Ter Braak, C. J. F., Verdonschot, P. F. M. 1995. Canonical correspondence analysis and related multivariate methods in aquatic ecology. Aquatic Sciences 57(3): 255–289.

Vodna direktiva (2000/60/EC)

Wickham, H. 2009. ggplot2: elegant graphics for data analysis. Springer New York. ISBN 978-0-387-98140-6.

How should I specify my BibTeX source to achieve this?

EDIT

This is a more or less minimal working example. Style file can be found here, and the bib file here.

\documentclass{article}

\usepackage{natbib}

\begin{document}

As specified in \citet{vd} and \citep{Fraschetti2006} \dots

\bibliographystyle{custom_style}
\bibliography{test}

\end{document}


EDIT 2

A workaround that worked for me (for now). The four questionmarks in question (hehe) were the result of missing year in the bib file. I have modified the custom_style.bst from

FUNCTION {format.date}
{ year "year" bibinfo.check duplicate$empty$
{
"empty year in " cite$* "; set to ????" * warning$
pop$"????" } 'skip$
if$extra.label * }  to  FUNCTION {format.date} { year "year" bibinfo.check duplicate$ empty${ "empty year in " cite$ * "; set to " * warning$pop$ ""
}
'skip$if$
extra.label *
}

-
Isn't there an @other bibentry? –  Yossi Farjoun Dec 8 '10 at 22:56
There is, but doesn't help. I still get four question marks in bibliography. –  Roman Luštrik Dec 9 '10 at 1:21

I suspect that even legal documents should be represented by a BibTeX entry with more than one field (and especially with a year field if one uses an author-year-style), but here goes.

• I used the author instead of the title field because BibTeX otherwise would typeset the label V00 in the text.

• The second pair of curly braces prevents BibTeX from breaking the "author" down in first name and last name.

\documentclass{article}

\usepackage{natbib}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{V00,
author = {{\textit{Vodna direktiva (2000/60/EC)}}},
}
\end{filecontents}

\begin{document}

As specified in \citet{V00} \dots

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

-
Better, but I still get four question marks in the bibliography (no title?). –  Roman Luštrik Dec 9 '10 at 0:31
@romunov Looks fine to me. Are you sure you re-ran BibTeX before then running LaTeX? –  Will Robertson Dec 9 '10 at 6:40
@WillRobertson, quite. This is my command sequence: pdflatex diploma; bibtex diploma; pdflatex diploma; pdflatex diploma. I'm not using the default citation style, though. –  Roman Luštrik Dec 9 '10 at 15:50
@romunov: It may well be that styles other than plainnat refuse to handle entries without a title field. What style do you use? –  lockstep Dec 9 '10 at 23:41
Because my faculty demands its own style for bibliography, I had to construct my own. –  Roman Luštrik Dec 10 '10 at 10:16