General ⇒ bibtex and author's first name starting with McC
-
- Posts: 27
- Joined: Tue Sep 16, 2008 1:16 am
bibtex and author's first name starting with McC
I need some help to fix something in my bibliography. I am using \bibliographystyle{humannat}
and I want the following bibtex item (author's name) to appear in my bibliography as Adams, J. McC.:
@BOOK{adams1997,
AUTHOR = {Adams, J. McC.},
TITLE = "{Title of the Book}",
PUBLISHER = {Oxford University Press},
YEAR = {1997},
}
I tried putting the whole name in {} as in {{Adams, J. McC.}}, but this made the entry within the text appear as Adams, J McC. 1997, which I do not want. Then I also tried with {Adams, J. "McC."}, which again did not work as it just put only the M. What else could I do?
Many thanks in advance!
Christina
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
bibtex and author's first name starting with McC
-
- Posts: 27
- Joined: Tue Sep 16, 2008 1:16 am
Re: bibtex and author's first name starting with McC
It still does not work. The author in the bibliography comes up as Adams, J. M.
bibtex and author's first name starting with McC
the problem comes from the way that some styles (humannat,apalike,etc.) use to format the names. In your case, a possible solution is the following:
With a text editor open the file humannat.bst and make a copy of this file in your working directory (i.e., the directory that contains your .tex file); save this copy as, for example, myhumannat.bst
Now open myhumannat.bst and search for this line:
Code: Select all
s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't := % last name first
Code: Select all
s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := % last name first
In your .tex file change
Code: Select all
\bibliographystyle{humannat}
Code: Select all
\bibliographystyle{myhumannat}
In the bibliographical database, your problematic reference can now be written in the following way:
Code: Select all
@BOOK{adams1997,
author = "Adams, J. McC.",
title = "{Title of the Book}",
publisher = "Oxford University Press",
year = "1997",
}
-
- Posts: 27
- Joined: Tue Sep 16, 2008 1:16 am
Re: bibtex and author's first name starting with McC
it seems to work for this particular entry; however, all the other entries now that were like that:
@ARTICLE{Jones2002,
AUTHOR = {Jones, Steven J.},
TITLE = "{Article title}",
JOURNAL = {Journal},
YEAR = {2002},
volume = {89},
pages = {30-48},
}
have kept the first name in full and appear in the bibliography as : Jones, Steven J.
Is there any other way to just keep the McC. while also keeping the other entries as ie "Jones, S. J." ?
many thanks again
bibtex and author's first name starting with McC
I can only think of manually editing the others entries, using, for example,
Code: Select all
@ARTICLE{Jones2002,
AUTHOR = {Jones, S. J.},
TITLE = "{Article title}",
JOURNAL = {Journal},
YEAR = {2002},
volume = {89},
pages = {30-48},
}
-
- Posts: 27
- Joined: Tue Sep 16, 2008 1:16 am