GeneralBibliography style file help

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
FreddieWidgeon
Posts: 7
Joined: Fri Jun 01, 2007 4:31 pm

Bibliography style file help

Post by FreddieWidgeon »

Can some kind soul here please help to put me out of my misery and provide details on how to create a customised .bst file?

I'm working on my thesis in LaTeX and need to format the references in a particular University defined style for which a .bst file does not exist. After a lot of work with the excellent custom-bib I was able to create something approximately correct but unfortunately not close enough. A search on Google for details on how to modify the resulting .bst file lead to an unsuccessful attempt to learn the postfix language used in them.

The University style is defined as the following:

This is a journal [1] a book [2], proceedings [3]and a PhD thesis [4].

References
[1] A.N. Other, F. Ake, O. Ther, “Citing a journal article”, The LaTeX Journal, 29 (7), pages 634-635 (1993)
[2] X. Ample, "The book of styles", Book Publishing Group, London, ISBN 1-23456-789-0 (2007)
[3] S.P.E. Kerr, R.I. Terr, "The spoken word", Proceedings of the International LaTeX Conference, Bangalore, pages 896-987 (1989)
[4] S. Cape, "High-speed word-processing", PhD Thesis, Brunell University (1985)

References should be listed in the order in which they were made in the main text. The title of journal articles, books, theses, etc. should be in italic face and between sexed double quote marks. Citations for Masters theses are the same general style as PhD theses but state Masters thesis instead. For case where the volume and issue of an itemis known and relevant it is given in bold followed by a space and then the issue number in brackets in normal face.

Can anyone please help with a .bst file to produce this style or a simple and easy to follow guide on how to adapt an existing file to produce the required results?

Thanks,
Freddie

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography style file help

Post by localghost »

Take a look at the little TeX program called makebst. You have to answer a few questions to customize your style file. Run latex on it and you will get a result.

Code: Select all

latex makebst
A documentation should be available on your system. Just use the console.

Code: Select all

texdoc makebst
User avatar
FreddieWidgeon
Posts: 7
Joined: Fri Jun 01, 2007 4:31 pm

Bibliography style file help

Post by FreddieWidgeon »

Thanks localghost, I've given makebst a try. Unfortunately it appears to give me the option of having the titles in italics or in quote marks but not both together. Am I doing something stupid?

Freddie
User avatar
FreddieWidgeon
Posts: 7
Joined: Fri Jun 01, 2007 4:31 pm

Bibliography style file help

Post by FreddieWidgeon »

This file is the closest I can get with makebst but the article titles are not in italics. Can anyone please advise me how to hack the file to achieve the final step in the formatting?

Freddie
User avatar
pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Bibliography style file help

Post by pumpkinegan »

If I understand correctly, you just want the title enclosed in quotation marks and italicized.

Open the hwtwo.bst file with a text editor (for example, TeXnicCenter)
Locate line 728: FUNCTION {format.title}
Go to line 736 and modify

Code: Select all

"\enquote{" swap$ *
to be

Code: Select all

"\enquote{" swap$ emphasize *
Save hwtwo.bst

Note that with hwtwo.bst you also have a booktitle that is italicized but not enclosed by quotation marks (as you had previously wanted). To remedy this:
Locate line 814: FUNCTION {format.btitle}
Go to line 818 and modify

Code: Select all

emphasize
to be

Code: Select all

"\enquote{" swap$ emphasize * "}" *
Save hwtwo.bst

I also think that this will give the desired results for phdthesis and proceeding formatting, but I am not sure. Remember to put the .bst file where LaTeX can find it, and then to refresh the filename database.

Patrick.
User avatar
FreddieWidgeon
Posts: 7
Joined: Fri Jun 01, 2007 4:31 pm

Re: Bibliography style file help

Post by FreddieWidgeon »

:D
Many thanks Patrick, that is exactly the format I required.

Freddie.
Post Reply