BibTeX, biblatex and bibersurname first + initial with JabRef and BibTeX

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

surname first + initial with JabRef and BibTeX

Post by alirezagoodarzi »

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:

Code: Select all

\usepackage{apalike}
\usepackage{natbib}
But I get this error:

Code: Select all

/usr/share/texlive/texmf-dist/tex/latex/natbib/natbib.sty:637:
LaTeX Error: Command \bibhang already defined.
Then found that in forum:

Code: Select all

    \usepackage{apalike}
    \let\bibhang\relax
    \usepackage{natbib}
but got this error:

Code: Select all

./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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

surname first + initial with JabRef and BibTeX

Post by Johannes_B »

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

surname first + initial with JabRef and BibTeX

Post by alirezagoodarzi »

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.
Thanks for fast reply.
Post Reply