>> Date: Tue, 02 Mar 1999 00:42:03 +0000
>> From: Myles Bogner <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: Two Questions About The Bibliography Section
>> 
>> Hello LyX Users,
>> 
>>      I am using LyX 1.0.  My LaTeX preamble includes \usepackage{apalike}.
>> 
>>      As I cite references within my document, I'd like them to appear as
>> (Doe & Smith, 1999).  If I type that in directly after the sentence, it
>> works as it should.  However, I'd like to use the keys and labels
>> feature of LyX.
>> 
>>      So, in the reference section of an article class, in the gray
>> Bibliography Item box, I add DoeSmith:1999 as the key and Doe & Smith,
>> 1999 as the label.  I then go back to my document and insert the
>> citation at the end of the appropriate sentence.  When viewing the .dvi
>> file, the ampersand is not present.
>> 
>>      From my experience with LaTeX, I am aware that the ampersand is a
>> special symbol.  So I then inserted into the Bibliography Item's label
>> field Doe \& Smith, 1999 but this did not work either.
>> 
>>      So my first question is, how can I use the label field in my document
>> and get the desired citation look?

The \& works here, I don't understand your error unless there is 
a problem with the bibliographic section in a  separate lyx file.

>> 
>>      The second question stems from the assumption that I cannot do what I
>> want with the first question.  When entering references, the first one
>> of course has a key of 1, the second one a key of 2, etc.  I am happy
>> simply using these keys without entering any labels (for example, this
>> will let me always see how many references I have).  However, LaTeX
>> produces errors when labels are not entered. Is there a way to make
>> LaTeX not produce errors if for each key, no label is entered?

I'm afraid that you *need* the label, because there are two separate
pieces of information: one is the key, the other is what reflects
the citation in the document. The only style in which you
don't need the label are simple styles like plain (the default).

If you want to give only a key, you should use bibtex and leave 
the formatting of the citation to the program: apalike.sty is supposed
to be used with .bst, which automatically elaborates the citation text fron
the citation source. In that case you
will need to hack the apalike bst style to get the ampersand (the normal
apalike style uses "and" to link abbreviated author names), or shift to
a more flexible style (natbib for example). The citation panel will however
not give the full flexibility and you will probaly need to \cite in
TeX mode.

If you go to bibTeX, (a good idea IMHO), you *will* need unique keys
to be able to reuse the bibliographic database, and to pick up
bibliographic information fron various sources.

Regards

-- 
Jean-Pierre


-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.

Reply via email to