GeneralBibTeX custom style file [solved]

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
reika
Posts: 3
Joined: Wed Apr 16, 2008 9:33 pm

BibTeX custom style file [solved]

Post by reika »

Hi,
I'm new on this forum and to LaTeX, so please excuse any silly questions ;)

I've been searching now for 2 hours on how to do this, and it appears I need some assistance...
I'm trying to use install a .bst file (bibtex style) and to make citations and reference list in Texshop. I'm using OS X btw.

When I'm using any of the bibtex styles that are preinstalled (like plain or apalike) my references show perfectly. I would however like to use another (called apa.bst), but I can not get it work.

my latex test file looks like this:

\documentclass[12pt]{report}
\begin{document}

citation test \cite{Andersen:1783zr}.

\bibliographystyle{apa}
\bibliography{test}
\end{document}

I hope you guys can give me some input on how to solve this! Thanks alot!
R
Last edited by reika on Fri Apr 18, 2008 6:52 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
funkydan2
Posts: 4
Joined: Mon Apr 14, 2008 11:21 am

Re: BibTeX custom style file

Post by funkydan2 »

Where did you but your bst file?

Did you run texhash after you moved the file to that directory?
reika
Posts: 3
Joined: Wed Apr 16, 2008 9:33 pm

BibTeX custom style file [solved]

Post by reika »

funkydan2 wrote:Where did you but your bst file?
I put them in home/texmf/bibtex/bst , but i also tried other locations (always in X/texmf/bibtex/bst, with x being library folders, mac hd root)
I've also tried to put the bst file in the working directory, without success
funkydan2 wrote:Did you run texhash after you moved the file to that directory?
yes
and the texhash returns this:

sudo texhash
Password:
texhash: Updating /usr/local/texlive/2007/../texmf-local/ls-R...
texhash: Updating /usr/local/texlive/2007/texmf/ls-R...
texhash: Updating /usr/local/texlive/2007/texmf-config/ls-R...
texhash: Updating /usr/local/texlive/2007/texmf-dist/ls-R...
texhash: Updating /usr/local/texlive/2007/texmf-var/ls-R...
texhash: Done.

thanks
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: BibTeX custom style file

Post by Juanjo »

By default, apa.bst is at /usr/local/texlive/2007/texmf-dist/bibtex/bst/beebe/. So you don't need to install it. To do it work, you have to load a package which defines some command that the bibstyle uses. Load natbib.
reika
Posts: 3
Joined: Wed Apr 16, 2008 9:33 pm

Re: BibTeX custom style file

Post by reika »

and it works like a charm! thanks!
Post Reply