Natbib with abbrvnat in LyX
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. Your help is appreciated, Mehrdad
Re: Natbib with abbrvnat in LyX
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
Re: Natbib with abbrvnat in LyX
Thank you for your reply, Csikos. Let me simplify my question a bit. What I need is a combination of -- abbrv which abbreviates the authors' first names, and -- alpha which creates keys like [Tar56] which are short and readable as in the example in my previous email: [Tar56] A. Tarski. Logic, Semantics, Metamathematics I am hoping something like that already exists. Thanks, Mehrdad
Lost labels
I have been using LyX with no problems for years, but now suddenly . . . A paper is already 40 pages long, and has about 90 labels, with many cross-references. Just today, when I look at a PDF output, the cross-references are gone, only ?? shows in the PDF, for each cross-reference. This is about internal cross-references, not bibliographic references. All the labels and cross-references do show up okay in the paper and in the left window. Any suggestions? Mark Mandelkern
Re: Lost labels
On 07/29/2013 05:03 PM, Mark Mandelkern wrote: I have been using LyX with no problems for years, but now suddenly . . . A paper is already 40 pages long, and has about 90 labels, with many cross-references. Just today, when I look at a PDF output, the cross-references are gone, only ?? shows in the PDF, for each cross-reference. This is about internal cross-references, not bibliographic references. All the labels and cross-references do show up okay in the paper and in the left window. Any suggestions? First, look at the LaTeX log, under Document LaTeX Log. This can be hard to wade through, but there is probably an error message in there somewhere. Alternatively, bisect. Make a copy of the file to work on. Delete the first half of the body. If that still causes the problem, delete some more. If it's OK, restore what you deleted and delete something else. Keep going until you isolate the problem. I will guess that one of your labels is somehow invalid, and that this is corrupting the generation of cross-references. Richard
Natbib with abbrvnat in LyX
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. Your help is appreciated, Mehrdad
Re: Natbib with abbrvnat in LyX
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
Re: Natbib with abbrvnat in LyX
Thank you for your reply, Csikos. Let me simplify my question a bit. What I need is a combination of -- abbrv which abbreviates the authors' first names, and -- alpha which creates keys like [Tar56] which are short and readable as in the example in my previous email: [Tar56] A. Tarski. Logic, Semantics, Metamathematics I am hoping something like that already exists. Thanks, Mehrdad
Lost labels
I have been using LyX with no problems for years, but now suddenly . . . A paper is already 40 pages long, and has about 90 labels, with many cross-references. Just today, when I look at a PDF output, the cross-references are gone, only ?? shows in the PDF, for each cross-reference. This is about internal cross-references, not bibliographic references. All the labels and cross-references do show up okay in the paper and in the left window. Any suggestions? Mark Mandelkern
Re: Lost labels
On 07/29/2013 05:03 PM, Mark Mandelkern wrote: I have been using LyX with no problems for years, but now suddenly . . . A paper is already 40 pages long, and has about 90 labels, with many cross-references. Just today, when I look at a PDF output, the cross-references are gone, only ?? shows in the PDF, for each cross-reference. This is about internal cross-references, not bibliographic references. All the labels and cross-references do show up okay in the paper and in the left window. Any suggestions? First, look at the LaTeX log, under Document LaTeX Log. This can be hard to wade through, but there is probably an error message in there somewhere. Alternatively, bisect. Make a copy of the file to work on. Delete the first half of the body. If that still causes the problem, delete some more. If it's OK, restore what you deleted and delete something else. Keep going until you isolate the problem. I will guess that one of your labels is somehow invalid, and that this is corrupting the generation of cross-references. Richard
Natbib with abbrvnat in LyX
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." Your help is appreciated, Mehrdad
Re: Natbib with abbrvnat in LyX
Mehrdad Oveisií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
Re: Natbib with abbrvnat in LyX
Thank you for your reply, Csikos. Let me simplify my question a bit. What I need is a combination of -- "abbrv" which abbreviates the authors' first names, and -- "alpha" which creates keys like [Tar56] which are short and readable as in the example in my previous email: [Tar56] A. Tarski. Logic, Semantics, Metamathematics I am hoping something like that already exists. Thanks, Mehrdad
Lost labels
I have been using LyX with no problems for years, but now suddenly . . . A paper is already 40 pages long, and has about 90 labels, with many cross-references. Just today, when I look at a PDF output, the cross-references are gone, only ?? shows in the PDF, for each cross-reference. This is about internal cross-references, not bibliographic references. All the labels and cross-references do show up okay in the paper and in the left window. Any suggestions? Mark Mandelkern
Re: Lost labels
On 07/29/2013 05:03 PM, Mark Mandelkern wrote: I have been using LyX with no problems for years, but now suddenly . . . A paper is already 40 pages long, and has about 90 labels, with many cross-references. Just today, when I look at a PDF output, the cross-references are gone, only ?? shows in the PDF, for each cross-reference. This is about internal cross-references, not bibliographic references. All the labels and cross-references do show up okay in the paper and in the left window. Any suggestions? First, look at the LaTeX log, under Document> LaTeX Log. This can be hard to wade through, but there is probably an error message in there somewhere. Alternatively, bisect. Make a copy of the file to work on. Delete the first half of the body. If that still causes the problem, delete some more. If it's OK, restore what you deleted and delete something else. Keep going until you isolate the problem. I will guess that one of your labels is somehow invalid, and that this is corrupting the generation of cross-references. Richard