Thanks Josep Maria!!,<div><br></div><div>It was hard but it works!!</div><div><br></div><div>Salutacions des de la UAB!!.<br><br><div class="gmail_quote">2009/12/25 Josep Maria Font <span dir="ltr"><<a href="mailto:jmfont@ub.edu">jmfont@ub.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">El dia 25/12/2009, a les 13:24, Sr Sur va escriure:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am a new user of Latex. I have installed Mac TeX with the Tex Live '08 version. I'm writing my PhD thesis in spanish and I have problems with natbib package. when I \cite a reference with two authors the output is "Freeman and Bermudez (year)" but the correct way in spanish would be "Freeman y Bermudez (year)". How can I put the "spanish y" instead "and"???<br>
</blockquote>
<br></div>
The problem is not with the natbib package, but with BibTeX, the bibliography-generating program. The BibTeX style files corresponding to the style you want to use have such particles as "and", "of", "In", "edition", etc. hard-wired, so I think the only solution is to manually edit them. Here is what you should do:<br>
<br>
1) Locate the style file with suffix .bst corresponding to the bibliography style you are using (plainnat.bst for plain, unsrtnat.bst or abbrvnat.bast ofr other styles). Duplicate it, change its name to "myplainnat.bst" or the like, and store it in your ~/Library/texmf/bibtex/bst folder (create it if necesssary).<br>
<br>
2) Edit the new file, with TeXShop itself or another plain text editor. Locate all occurrences of the strings you want changed and replace them with the corresponding Spanish ones (y, de, En, edición, etc.). Keep a record of the changes by inserting comments with %. If you are new to LaTeX then you will find the syntax of the bst files very strange, but if you are a programer you will understand it quickly (it uses reverse Polish notation). The LaTeX Companion might help you here; however, it is not necessary to *understand* how it works just to change these words. Keep attention to all " quoting text strings.<br>
<br>
3) In your document, put \bibliographystyle{myplainnat} or whatever new style you have created, instead of the standard one. Do not change the \usepackage{natbib} nor its options, nor the \bibliography{data_bases}.<br>
<br>
At least this is what I did (adding then a lot of other cosmetic changes, once I understood the whole process) and it worked without problems.<br>
<br>
I hope the above is correct. Perhaps other, more knowledgeable users may correct me.<br>
<br>
Hope this helps. natbib is a great package, and with these modifications I got a terrific formatting of my citations in Catalan.<br>
<br>
Best,<br>
<br>
<br>
JMaF<br>
<br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/" target="_blank">http://email.esm.psu.edu/mac-tex/</a><br>
List Archive: <a href="http://tug.org/pipermail/macostex-archives/" target="_blank">http://tug.org/pipermail/macostex-archives/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Atte: Sr. Sur<br><br>
</div>