Mehrdad Oveisi <move...@gmail.com> írta: >Hello, > >I am using LyX with Natbib and Natbib style set to "Author-year" (under >"Document" -> "Settings" -> "Bibliography" -> "Citation Style"). > >If I use "Insert" -> "List / TOC" -> "BibTex Bibliography", and choose >"alpha" as the "Style", then I get results such as > >[Tar56] Alfred Tarski. Logic, Semantics, Metamathematics.... > > >This is all good except that I need it to abbreviate the first names; e.g.: > >[Tar56] A. Tarski. Logic, Semantics, Metamathematics.... > > >Apparently Natbib with abbrvnat should do this (?), but when I select >"abbrvnat" (instead of "alpha" above), I get an error: "Undefined control >sequence."
Mehrdad: First you have to decide what style you want. It seems you are a little bit confused. It is normal. 1. The alpha style does not require natbib package. You can use it natively in Lyx. Furthermore it is not an author-year citation style, it is a special case, but in latex/lyx it is considered as numerical style. To use it natively, in lyx document settings set "Bibliography" -> "Citation Style" to "Default (numerical)" and choose alpha style in "Insert" -> "List / TOC". It should work. You can also use natbib in lyx, but in that case make sure you select "natbib style: numerical". If you select author-year natbib style you will get ? mark instead of author name in the citations, which you don't want. 2. The abbrnat style you mentioned is not author-year style either. You have to set natbib style to numerical in that case too. You can use the default numerical option in lyx and set the style to "abbr". It gives similar results. 3. If you want author year citations you have to use a style that is made for author-year citations. You can look at various styles here: http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html http://web.reed.edu/cis/help/latex/bibtexstyles.html 4. If you don't find a style you need, you can create your own style using: a) custom-bib package: you find at CTAN but it also might be installed with your lyx/latex system. At first it seems complicated but if you go through it a few times it becomes easier. b) "bibit" has custom style generator too. See: http://bib-it.sourceforge.net/help/generateBibstyle.php bcsikos