LaTeX forum ⇒ BibTeX, biblatex and bibersurname 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

Postby alirezagoodarzi » Fri Apr 24, 2015 12:15 pm

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:
  1. \usepackage{apalike}
  2. \usepackage{natbib}

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


Then found that in forum:

  1. \usepackage{apalike}
  2. \let\bibhang\relax
  3. \usepackage{natbib}


but got this error:
  1. ./proposal.aux:56:
  2. 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:

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

Postby Johannes_B » Fri Apr 24, 2015 12:56 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

Postby alirezagoodarzi » Fri Apr 24, 2015 1:08 pm

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.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests