I hand edited two files under the main eclipse projects directory

.metadata\.plugins\org.eclipse.core.runtime\.settings


The two files:

file 1: org.eclipse.cdt.core.prefs, change this line from "insert" to "do not insert"
 org.eclipse.cdt.core.formatter.insert_new_line_before_identifier_in_function_declaration=do not insert


file 2: org.eclipse.cdt.ui.prefs,
scan this file for "insert_new_line_before_identifier_in_function_declaration" and make a similar change from insert to do not insert next to it, should be obvious


Note I seen this problem on indigo and juno, the fix described above was in juno.

Eclipse C++ formatter puts new line before method identifiers
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 *
    }

