[texhax] bibtex problem with reference list style

Schwartz, Steven J s.schwartz at imperial.ac.uk
Mon Nov 5 18:03:35 CET 2012


Joaquim,

Your problem is that 

>     \bibliographystyle{plainnat}

uses the file plainnat.bst which controls the formatting of the bibliography. \bibpunct gives you some limited control via but not enough for your needs. You have two choices.

1  search for a XXX.bst file that formats the bibliography the way you want/need
2  create your own

For (1), perhaps your university or colleagues have one that conforms to your requirements. Otherwise there are many available on CTAN, and a quick google revealed http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html which shows what a lot of these (and others) produce.

For (2) run the programme makebst from a command-line. It's distributed with most/all latex distributions. That will lead you into a longish set of questions and choices that enable you to control most of the bibliography formatting options, and then writes out the XXX.bst file that will do the job. Just replace plainnat by XXX in your code.

There is a 3rd option which is to write/hack your own .bst file from scratch, but I don't know anyone who would recommend that.

HTH
Steve

Joaquim wrote on 2012-11-04:
----------------
> Hi all,
> 
> 
> 
> I am writing my PhD thesis using Latex. So far I overcame all 
> problems, but now I am with a little problem with the reference list 
> style. The output I want is something like this:
> 
> 
> 
> Cherkassky, V. and  Ma, Y. Practical Selection of SVM Parameters and 
> Noise Estimation for SVM Regression. Neural Networks, 17(1):113{126, 
> 2004. ISSN 0893-6080.
> 
> 
> 
> but this is what is happen:
> 
> 
> 
> V. Cherkassky and Y. Ma. Practical Selection of SVM Parameters and 
> Noise Estimation for SVM Regression. Neural Networks, 17(1):113{126, 
> 2004. ISSN 0893-6080.
> 
> 
> 
> The only difference is related with the authors names. How I put the 
> surname before the name?
> 
> 
> 
> This is the part of the code I am using:
> 
> 
> 
> “”
> 
> \documentclass[a4paper,12pt,twoside]{book}
> 
> 
> 
> \usepackage[round, authoryear]{natbib}
>     \bibpunct{(}{)}{;}{a}{,}{,~}
>     \bibliographystyle{plainnat}
> \begin{document}
> 
> \include{Chapter1}
> \include{Chapter2}
> \include{Chapter3}
> \include{Chapter4}
> 
> \bibliography{BibDatafile}
> 
> \end{document}
> 
>> 
> Thanks.
> 
> Regards,
>     J.Tinoco
--------------------------------------------------------------------
Professor Steven J Schwartz        Phone:  +44 (0)207 594 7660
Head, Space & Atmospheric Physics  Fax:    +44 (0)207 594 7772
The Blackett Laboratory            Email:  s.schwartz at imperial.ac.uk
Imperial College London            Office: Huxley 6M67A
London SW7 2AZ, UK                 Web:    www.sp.ph.ic.ac.uk/~sjs
--------------------------------------------------------------------





More information about the texhax mailing list