Thanks Alvaro.
Additionally I have figured out how to do this code (to get commas everywhere, except at the end):
ARTICLE: Change function output.nonnull with:
FUNCTION {output.nonnull}
{ 's :=
output.state mid.sentence =
{ ", " * write$ }
{ output.state after.block =
% { add.period$ write$
{ ", " * write$
newline$
"\newblock " write$
}
{ output.state before.all =
'write$
{ add.period$ " " * write$ }
if$
}
if$
mid.sentence 'output.state :=
}
if$
s
}
Also change the function format.journal.pages with (to get comma before pages):
FUNCTION {format.journal.pages}
{ pages duplicate$ empty$ 'pop$
{ swap$ duplicate$ empty$
{ pop$ pop$ format.pages }
{
", " *
swap$
n.dashify
"pages" bibinfo.check
*
}
if$
}
if$
}
MISC (electronic source): Change the function misc with this (in order to get"Pridobljeno" in front of note and "iz" in front of howpublished):
FUNCTION {misc}
{ output.bibitem
format.authors output
title howpublished new.block.checkb
format.title output
". Pridobljeno " * write$
format.note output
" iz " * write$
format.url output
new.block
howpublished new.block.checka
howpublished "howpublished" bibinfo.check output
new.block
format.date output
fin.entry
empty.misc.check
}
EXAMPLE BIB:
@article{primer_clanek,
title={Anomalous Paramagnetism of Copper Acetate},
author={Bleaney, B. and Bowers, K. D.},
journal={Proc. R. Soc. Lond. A},
volume={214},
number={},
pages={451-465},
year={1952}
}
@book{primer_knjige,
title={Magnetism in Condensed Matter},
author={Blundell, S.},
publisher={Oxford University Press, New York, 2001}
}
@misc{primer_elektronski_vir,
author = {Wikipedia},
title = {Magnetic Moment},
howpublished = {\url{http://en.wikipedia.org/wiki/File:Magnetic_moment.svg}},
note = {13.7.2013}
}
EXAMPLE TEX:
\documentclass[12pt]{article}
\usepackage{url}
\begin{document}
\section*{Primer citatov}
Knjiga \cite{primer_knjige} \\
\v{C}lanek \cite{primer_clanek} \\
Elektronski vir \
cite{primer_elektronski_vir}.
\bibliography{mybib}
\bibliographystyle{physicsFNM}
\end{document}
RESULT:

BST
https://www.dropbox.com/s/hog42r9fa669uzt/physicsFNM.bst
BIB:
https://www.dropbox.com/s/ce0gqlsth4s1nlz/mybib.bib
TEX:
https://www.dropbox.com/s/o561jovpp051nxh/test.tex
PDF:
https://www.dropbox.com/s/ylss73a22rr19os/test.pdf
biblatex
? – Marco Daniel Mar 1 '14 at 7:54.bst
file using an@inproceedings
entry I do not get the output you quote. Could you provide your.bib
entry? – Jeroen Zuiddam Mar 1 '14 at 11:47