Natbib options in Lyx with embedded bibliography

2009-09-16 Thread E.Kaplan
When I embed a bibliography in the Lyx file itself (using the .AUX or 
.bbl file), and then click on a citation reference in the Lyx file, I do 
not get the option to choose a citation style, as I do when I call the 
citation from a bibtex database.  I am using natbib (author-year), and 
indicated that in the Document Settings.

How do I regain the ability to choose the citation style?

Thanks,
EK



Re: Natbib options in Lyx with embedded bibliography

2009-09-16 Thread Ehud Kaplan
Lyx */does/* know a lot about the citations, since when I click on one, 
it shows its details (and in the left column all the other citations 
that have been included in the Lyx file), but not the formatting options.
I inserted the references into the Lyx file through the circuitous route 
of exporting the Lyx file to Latex, using \begin{thebibiolgraphy} ... 
end{thebibliography} etc. with the .bbl file pasted in.

Once it compiled correctly with pdflatex, I then imported it back to Lyx.

EK

rgheck wrote:

On 09/16/2009 07:15 AM, E.Kaplan wrote:
When I embed a bibliography in the Lyx file itself (using the .AUX or 
.bbl file), and then click on a citation reference in the Lyx file, I 
do not get the option to choose a citation style, as I do when I call 
the citation from a bibtex database.  I am using natbib 
(author-year), and indicated that in the Document Settings.

How do I regain the ability to choose the citation style?

I'm a little unclear about how you've got things set up. Are you 
including the bbl file, via the InsertFile mechanism? Pasting it as 
ERT? Or what? My hunch is that the problem is that LyX does not know 
anything about the citation entries, so it is not giving you any 
options about them.


RIchard





Re: Natbib options in Lyx with embedded bibliography

2009-09-16 Thread rgheck

On 09/16/2009 10:07 AM, Ehud Kaplan wrote:
Lyx */does/* know a lot about the citations, since when I click on 
one, it shows its details (and in the left column all the other 
citations that have been included in the Lyx file), but not the 
formatting options.
I inserted the references into the Lyx file through the circuitous 
route of exporting the Lyx file to Latex, using 
\begin{thebibiolgraphy} ... end{thebibliography} etc. with the .bbl 
file pasted in.

Once it compiled correctly with pdflatex, I then imported it back to Lyx.

So the citations in Bibliography environments at the end of the paper, 
yes? Then the problem is that, in order for natbib to make sense out of 
author-year citations, when you insert them this way, the key MUST be in 
a certain form. Otherwise, natbib has no way of knowing what the author 
and the year are. (It can't just parse the entry.) I think the form is: 
author[year], but I am not sure. Jurgen told me about this some time ago 
on one or another of the lists, so you might find it that way. Or you 
might email him directly. Though I think he's incommunicado for a bit. 
Probably the natbib docs have something about this, too.


Richard



Natbib options in Lyx with embedded bibliography

2009-09-16 Thread E.Kaplan
When I embed a bibliography in the Lyx file itself (using the .AUX or 
.bbl file), and then click on a citation reference in the Lyx file, I do 
not get the option to choose a citation style, as I do when I call the 
citation from a bibtex database.  I am using natbib (author-year), and 
indicated that in the Document Settings.

How do I regain the ability to choose the citation style?

Thanks,
EK



Re: Natbib options in Lyx with embedded bibliography

2009-09-16 Thread Ehud Kaplan
Lyx */does/* know a lot about the citations, since when I click on one, 
it shows its details (and in the left column all the other citations 
that have been included in the Lyx file), but not the formatting options.
I inserted the references into the Lyx file through the circuitous route 
of exporting the Lyx file to Latex, using \begin{thebibiolgraphy} ... 
end{thebibliography} etc. with the .bbl file pasted in.

Once it compiled correctly with pdflatex, I then imported it back to Lyx.

EK

rgheck wrote:

On 09/16/2009 07:15 AM, E.Kaplan wrote:
When I embed a bibliography in the Lyx file itself (using the .AUX or 
.bbl file), and then click on a citation reference in the Lyx file, I 
do not get the option to choose a citation style, as I do when I call 
the citation from a bibtex database.  I am using natbib 
(author-year), and indicated that in the Document Settings.

How do I regain the ability to choose the citation style?

I'm a little unclear about how you've got things set up. Are you 
including the bbl file, via the InsertFile mechanism? Pasting it as 
ERT? Or what? My hunch is that the problem is that LyX does not know 
anything about the citation entries, so it is not giving you any 
options about them.


RIchard





Re: Natbib options in Lyx with embedded bibliography

2009-09-16 Thread rgheck

On 09/16/2009 10:07 AM, Ehud Kaplan wrote:
Lyx */does/* know a lot about the citations, since when I click on 
one, it shows its details (and in the left column all the other 
citations that have been included in the Lyx file), but not the 
formatting options.
I inserted the references into the Lyx file through the circuitous 
route of exporting the Lyx file to Latex, using 
\begin{thebibiolgraphy} ... end{thebibliography} etc. with the .bbl 
file pasted in.

Once it compiled correctly with pdflatex, I then imported it back to Lyx.

So the citations in Bibliography environments at the end of the paper, 
yes? Then the problem is that, in order for natbib to make sense out of 
author-year citations, when you insert them this way, the key MUST be in 
a certain form. Otherwise, natbib has no way of knowing what the author 
and the year are. (It can't just parse the entry.) I think the form is: 
author[year], but I am not sure. Jurgen told me about this some time ago 
on one or another of the lists, so you might find it that way. Or you 
might email him directly. Though I think he's incommunicado for a bit. 
Probably the natbib docs have something about this, too.


Richard



Natbib options in Lyx with embedded bibliography

2009-09-16 Thread E.Kaplan
When I embed a bibliography in the Lyx file itself (using the .AUX or 
.bbl file), and then click on a citation reference in the Lyx file, I do 
not get the option to choose a citation style, as I do when I call the 
citation from a bibtex database.  I am using natbib (author-year), and 
indicated that in the Document Settings.

How do I regain the ability to choose the citation style?

Thanks,
EK



Re: Natbib options in Lyx with embedded bibliography

2009-09-16 Thread Ehud Kaplan
Lyx */does/* know a lot about the citations, since when I click on one, 
it shows its details (and in the left column all the other citations 
that have been included in the Lyx file), but not the formatting options.
I inserted the references into the Lyx file through the circuitous route 
of exporting the Lyx file to Latex, using \begin{thebibiolgraphy} ... 
end{thebibliography} etc. with the .bbl file pasted in.

Once it compiled correctly with pdflatex, I then imported it back to Lyx.

EK

rgheck wrote:

On 09/16/2009 07:15 AM, E.Kaplan wrote:
When I embed a bibliography in the Lyx file itself (using the .AUX or 
.bbl file), and then click on a citation reference in the Lyx file, I 
do not get the option to choose a citation style, as I do when I call 
the citation from a bibtex database.  I am using natbib 
(author-year), and indicated that in the Document Settings.

How do I regain the ability to choose the citation style?

I'm a little unclear about how you've got things set up. Are you 
including the bbl file, via the Insert>File mechanism? Pasting it as 
ERT? Or what? My hunch is that the problem is that LyX does not know 
anything about the citation entries, so it is not giving you any 
options about them.


RIchard





Re: Natbib options in Lyx with embedded bibliography

2009-09-16 Thread rgheck

On 09/16/2009 10:07 AM, Ehud Kaplan wrote:
Lyx */does/* know a lot about the citations, since when I click on 
one, it shows its details (and in the left column all the other 
citations that have been included in the Lyx file), but not the 
formatting options.
I inserted the references into the Lyx file through the circuitous 
route of exporting the Lyx file to Latex, using 
\begin{thebibiolgraphy} ... end{thebibliography} etc. with the .bbl 
file pasted in.

Once it compiled correctly with pdflatex, I then imported it back to Lyx.

So the citations in Bibliography environments at the end of the paper, 
yes? Then the problem is that, in order for natbib to make sense out of 
author-year citations, when you insert them this way, the key MUST be in 
a certain form. Otherwise, natbib has no way of knowing what the author 
and the year are. (It can't just parse the entry.) I think the form is: 
author[year], but I am not sure. Jurgen told me about this some time ago 
on one or another of the lists, so you might find it that way. Or you 
might email him directly. Though I think he's incommunicado for a bit. 
Probably the natbib docs have something about this, too.


Richard



natbib options

2006-05-23 Thread Roland Fäustlin
Hello!

I am using LyX on Windows XP to write my thesis. I use BibTeX for the
references. I have noticed that LyX uses the natbib package when I set
cite-style in the document settings to Natbib. 

Can I specify the options with witch LyX loads the natbib package?

In my case I would like to load it like this:
\usepackage[
sortcompress, %make numerical citations short
square, %square brackets around cites
nonamebreak %prevents errors with hyperref package
]{natbib}
This would prevent the problems with the hyperref package and still allow me
to use the comfortable cite-buttons in LyX.

I'd be very glad if anybody could help me with that. Thank you very much in
advance.

Roland



Re: natbib options

2006-05-23 Thread Juergen Spitzmueller
Roland Fäustlin wrote:

 Can I specify the options with witch LyX loads the natbib package?

Put sortcompress,square,nonamebreak to Document-Class Options. They will
be passed to natbib.

Jürgen



natbib options

2006-05-23 Thread Roland Fäustlin
Hello!

I am using LyX on Windows XP to write my thesis. I use BibTeX for the
references. I have noticed that LyX uses the natbib package when I set
cite-style in the document settings to Natbib. 

Can I specify the options with witch LyX loads the natbib package?

In my case I would like to load it like this:
\usepackage[
sortcompress, %make numerical citations short
square, %square brackets around cites
nonamebreak %prevents errors with hyperref package
]{natbib}
This would prevent the problems with the hyperref package and still allow me
to use the comfortable cite-buttons in LyX.

I'd be very glad if anybody could help me with that. Thank you very much in
advance.

Roland



Re: natbib options

2006-05-23 Thread Juergen Spitzmueller
Roland Fäustlin wrote:

 Can I specify the options with witch LyX loads the natbib package?

Put sortcompress,square,nonamebreak to Document-Class Options. They will
be passed to natbib.

Jürgen



natbib options

2006-05-23 Thread Roland Fäustlin
Hello!

I am using LyX on Windows XP to write my thesis. I use BibTeX for the
references. I have noticed that LyX uses the natbib package when I set
cite-style in the document settings to Natbib. 

Can I specify the options with witch LyX loads the natbib package?

In my case I would like to load it like this:
\usepackage[
sort, %make numerical citations short
square, %square brackets around cites
nonamebreak %prevents errors with hyperref package
]{natbib}
This would prevent the problems with the hyperref package and still allow me
to use the comfortable cite-buttons in LyX.

I'd be very glad if anybody could help me with that. Thank you very much in
advance.

Roland



Re: natbib options

2006-05-23 Thread Juergen Spitzmueller
Roland Fäustlin wrote:

> Can I specify the options with witch LyX loads the natbib package?

Put "sort,square,nonamebreak" to Document->Class Options. They will
be passed to natbib.

Jürgen