## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ surname first + initial with JabRef and BibTeX

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
alirezagoodarzi
Posts: 2
Joined: Fri Apr 24, 2015 11:54 am

### surname first + initial with JabRef and BibTeX

Hi
My files are in Overleaf online service.
I installed JabRef locally and make my .bib file in BibTex format.
To be able to have my references in Surname Ini.(name) format, I am trying to use apalike to have surname first and name initial.
I tried that:
`\usepackage{apalike}\usepackage{natbib}`

But I get this error:
`/usr/share/texlive/texmf-dist/tex/latex/natbib/natbib.sty:637:LaTeX Error: Command \bibhang already defined.`

Then found that in forum:

`    \usepackage{apalike}     \let\bibhang\relax     \usepackage{natbib}`

but got this error:
`./proposal.aux:56:Package natbib Error: Bibliography not compatible with author-year citations.`

I checked all references to have "Year" and they have.

I have some Misc references that refer to URLs. Is it possible they make the problem?

Any ideas what to do?
Thanks

Tags:

Johannes_B
Site Moderator
Posts: 4140
Joined: Thu Nov 01, 2012 4:08 pm
hi and welcome,

you have to decide, either use natbib or apalike as both do more or less the same.

In this modern times, using package biblatex is encouraged. It is much more flexible and the style of the bibliography can be changed using LaTeX commands.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

alirezagoodarzi
Posts: 2
Joined: Fri Apr 24, 2015 11:54 am
Johannes_B wrote:hi and welcome,

you have to decide, either use natbib or apalike as both do more or less the same.

In this modern times, using package biblatex is encouraged. It is much more flexible and the style of the bibliography can be changed using LaTeX commands.