I have found a template for a paper (https://academic.oup.com/comjnl/pages/Manuscript_Preparation_Submission; scroll to: Latex 2E And The COMJNL.CLS File), but I am having problems compiling my *.bib in the style that the template requires. The *.bbl is build like:
\begin{thebibliography}{99}
\bibitem{gelenbe06}
Gelenbe, E. (2006) Analysis of automated auctions.
\newblock {\em ISCIS 2006, LNCS 4263}, Istanbul, Turkey, 1-3 November, pp.
1--12. Springer Verlag, Berlin.
\end{thebibliography}{99}
Which reference style is it? I think, I have to change the referencing style at TeXstudio that the code at the file COMJNL.CLS works. I use TeXstudio and JabRef.
How I have to manipulate the following code (?)
% need to be explicit with `References' for \uppercase'ing
\def\thebibliography#1{\section*{References}\small\list
{[\arabic{enumi}]}{\labelsep 0.5em%
\hyphenpenalty=50\itemsep=-1pt
\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .14em plus .38em minus -.1em}
\sloppy
\sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
\def@cite#1#2{[{#1\if@tempswa , #2\fi}]}
\def@biblabel#1{[#1]}
\let\origthebibliography\thebibliography
\def\thebibliography#1{\origthebibliography{\hbox to 1em{\hss}}}
at the COMJNL.CLS that I can use other commands/reference styles like:
\usepackage{csquotes}
\usepackage[style=authoryear-comp, natbib=true,maxcitenames=1, uniquelist=false, backend=biber]{biblatex}
\addbibresource{ref.bib}
\begin{document}
\printbibliography
\end{document}
\nocite{*}. That command adds all entries in the.bibfile to the bibliography regardless of whether or not these entries were cited in the text. Remove the\nocite{*}and recompile the document. Then you should only see entries that you actually cited in the bibliography. (As in the example document I posted.) – moewe Nov 07 '21 at 06:34