GeneralHow should I edit my bibliography style

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
electroneek
Posts: 4
Joined: Mon Aug 18, 2008 8:08 pm

How should I edit my bibliography style

Post by electroneek »

The citation format is (1;2;3) in the template I am using. How should I change it to [1,2,3] ? Can anybody please tell me. I tried with different .sty and .bst files-pairs but couldn't do it.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How should I edit my bibliography style

Post by gmedina »

Hi,

we do not know the particular template you are using. Please provide a minimal working example of your situation attaching, if necessary, that template.

I do not intend to be rude but if you are using a customised non-standard document class, maybe you should also consider contacting the creator of that class.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
azuki
Posts: 12
Joined: Fri May 02, 2008 7:22 pm

Re: How should I edit my bibliography style

Post by azuki »

Not sure if this will work but you can try this:
\usepackage[square, comma]{natbib}

This adds the natbib package and modifes the citation style to what you requested. This works for me, even with a custom bibliography style file.

You can read the attached file for details.
Attachments
bibtex_guide.pdf
(144.02 KiB) Downloaded 211 times
electroneek
Posts: 4
Joined: Mon Aug 18, 2008 8:08 pm

Re: How should I edit my bibliography style

Post by electroneek »

Yes. It is a non-standard customized class which is created by unknown author. The .cls file I attached herewith. However, the command \usepackage[sqare,comma]{natbib} didn't work. I tried to use natbib style also which yielded citation formats like Authorname(2008).
Attachments
ThesisPSnPDF.cls
(9.6 KiB) Downloaded 240 times
electroneek
Posts: 4
Joined: Mon Aug 18, 2008 8:08 pm

How should I edit my bibliography style

Post by electroneek »

I got it, adding the command line

Code: Select all

\bibpunct{[}{]}{,}{n}{}{;}
in the main file overrides all default settings.
Thanks a million.
Post Reply