Re: Problem with Bibliography author-year style in document class "book (KOMA-script)

2009-06-30 Thread Lea Rennert
thank you!
In the meantime, I fixed some of my problems and I'm pretty happy with
the results.
- part of my problem apparently was a bad bib-file, which I fixed now.
- I found a good solution for deleting the short titles from my
reference list: \renewcomma...@biblabel[1]{} in the LateX preamble did
the trick. I found the suggestion here:
http://texnik.dante.de/cgi-bin/mainFAQ.cgi?file=bibtex/bibtex#nolabel
- I did manage to change the square brackets around the citations in
the text to round ones with:
\renewcomman...@cite}[2]{({#1...@tempswa , #2\fi})} in the preamble

I am still looking for a way to get rid of the brackets around the
year in my citations. Right now, they look like this: (Talos(2008)),
and I want them to look like (Talos 2008).
so, if anybody has suggestions, that would be great!

apart from that though, I'm very happy with the results for now.





2009/7/1 李猛 :
> I chose the elsarticle-harv and changed  every citation using formatting
> ->citation style in document.
> can you please provide a _small_ LyX example file to be able to reproduce
> the problem?
>
>
> 2009/7/1 Lea Rennert 
>>
>> thank you very much for your reply!
>> what style did you choose for the bibliography itself? (when you right
>> click on "BibTeX Generated Bibliography" -> Settings... to choose the
>> bib-file and the citation style from the list)
>>
>> I ask because, unfortunately, the preamble produced two error messages
>> for me (see below). but maybe it depends on what corresponding style
>> you choose? (I did choose natbib in Document -> Settings ->
>> Bibliography...)
>>
>> The error messages:
>>
>> Undefined control sequence.
>>  \bibpunct
>>  {(}{)}{,}{a}{,}{,}
>> The control sequence at the end of the top line
>> of your error message was never \def'ed. If you have
>> misspelled it (e.g., `\hobx'), type `I' and the correct
>> spelling (e.g., `I\hbox'). Otherwise just continue,
>> and I'll forget about whatever was undefined.
>>
>> LaTeX Error: Missing \begin{document}.
>>  \bibpunct{(
>>}{)}{,}{a}{,}{,}
>> You're in trouble here.  Try typingto proceed.
>> If that doesn't work, type  X   to quit.
>>
>>
>>
>>
>> 2009/6/26 李猛 :
>> > The solution works for me.
>> >
>> > See  http://wiki.lyx.org/LyX/HumanitiesLyX
>> >
>> > Using Natbib
>> >
>> > To set up LyX to use natbib, go to Document→Settings→Bibliography and
>> > check
>> > natbib.
>> >
>> > Add the following line to your LaTeX preamble:
>> >
>> > \bibpunct{(}{)}{,}{a}{,}{,}
>> >
>> > This specifies in-text punctuation options for citations, i.e., Author
>> > (Year), commas between citations, and so on. See the natbib
>> > documentation
>> > for details.
>> >
>> > --
>> > Albert
>> > Lab of Complex System and Artificial Intelligence,
>> > Institute of Automation,Chinese Academy of Sciences(CASIA)
>> > Beijing, 100190,P.R.CHINA
>> >
>> >
>> >
>
>
>
> --
> Albert
> Lab of Complex System and Artificial Intelligence,
> Institute of Automation,Chinese Academy of Sciences(CASIA)
> Beijing, 100190,P.R.CHINA
>
>
>


Re: Problem with Bibliography author-year style in document class "book (KOMA-script)

2009-06-30 Thread 李猛
I chose the elsarticle-harv and changed  every citation using formatting
->citation style in document.
can you please provide a _small_ LyX example file to be able to reproduce
the problem?


2009/7/1 Lea Rennert 

> thank you very much for your reply!
> what style did you choose for the bibliography itself? (when you right
> click on "BibTeX Generated Bibliography" -> Settings... to choose the
> bib-file and the citation style from the list)
>
> I ask because, unfortunately, the preamble produced two error messages
> for me (see below). but maybe it depends on what corresponding style
> you choose? (I did choose natbib in Document -> Settings ->
> Bibliography...)
>
> The error messages:
>
> Undefined control sequence.
>  \bibpunct
>  {(}{)}{,}{a}{,}{,}
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., `\hobx'), type `I' and the correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
>
> LaTeX Error: Missing \begin{document}.
>  \bibpunct{(
>}{)}{,}{a}{,}{,}
> You're in trouble here.  Try typingto proceed.
> If that doesn't work, type  X   to quit.
>
>
>
>
> 2009/6/26 李猛 :
> > The solution works for me.
> >
> > See  http://wiki.lyx.org/LyX/HumanitiesLyX
> >
> > Using Natbib
> >
> > To set up LyX to use natbib, go to Document→Settings→Bibliography and
> check
> > natbib.
> >
> > Add the following line to your LaTeX preamble:
> >
> > \bibpunct{(}{)}{,}{a}{,}{,}
> >
> > This specifies in-text punctuation options for citations, i.e., Author
> > (Year), commas between citations, and so on. See the natbib documentation
> > for details.
> >
> > --
> > Albert
> > Lab of Complex System and Artificial Intelligence,
> > Institute of Automation,Chinese Academy of Sciences(CASIA)
> > Beijing, 100190,P.R.CHINA
> >
> >
> >
>



-- 
Albert
Lab of Complex System and Artificial Intelligence,
Institute of Automation,Chinese Academy of Sciences(CASIA)
Beijing, 100190,P.R.CHINA


Re: Problem with Bibliography author-year style in document class "book (KOMA-script)

2009-06-30 Thread Lea Rennert
thank you very much for your reply!
what style did you choose for the bibliography itself? (when you right
click on "BibTeX Generated Bibliography" -> Settings... to choose the
bib-file and the citation style from the list)

I ask because, unfortunately, the preamble produced two error messages
for me (see below). but maybe it depends on what corresponding style
you choose? (I did choose natbib in Document -> Settings ->
Bibliography...)

The error messages:

Undefined control sequence.
 \bibpunct
  {(}{)}{,}{a}{,}{,}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

LaTeX Error: Missing \begin{document}.
 \bibpunct{(
}{)}{,}{a}{,}{,}
You're in trouble here.  Try typingto proceed.
If that doesn't work, type  X   to quit.




2009/6/26 李猛 :
> The solution works for me.
>
> See  http://wiki.lyx.org/LyX/HumanitiesLyX
>
> Using Natbib
>
> To set up LyX to use natbib, go to Document→Settings→Bibliography and check
> natbib.
>
> Add the following line to your LaTeX preamble:
>
> \bibpunct{(}{)}{,}{a}{,}{,}
>
> This specifies in-text punctuation options for citations, i.e., Author
> (Year), commas between citations, and so on. See the natbib documentation
> for details.
>
> --
> Albert
> Lab of Complex System and Artificial Intelligence,
> Institute of Automation,Chinese Academy of Sciences(CASIA)
> Beijing, 100190,P.R.CHINA
>
>
>


Re: Problem with Bibliography author-year style in document class "book (KOMA-script)

2009-06-26 Thread 李猛
The solution works for me.

See  http://wiki.lyx.org/LyX/HumanitiesLyX
Using NatbibTo set up LyX to use natbib, go to
Document→Settings→Bibliography and check natbib.

Add the following line to your LaTeX preamble:
\bibpunct{(}{)}{,}{a}{,}{,}

This specifies in-text punctuation options for citations, i.e., Author
(Year), commas between citations, and so on. See the natbib documentation
for details.


-- 
Albert
Lab of Complex System and Artificial Intelligence,
Institute of Automation,Chinese Academy of Sciences(CASIA)
Beijing, 100190,P.R.CHINA


Re: Problem with Bibliography author-year style in document class

2009-06-16 Thread Tim Michelsen
> I do not know why the name of the author (Aiginger) is repeated so
remove that particular entry from the bib file.
Does it work then?
 
> I tried different encodings when I exported my references from citavi
> to bibtex (UTF-8, US-ASCII, Western European (ISO), ...) but nothing
> changed. Is there a specific encoding I should use?
I think that ISO should do.



Re: Problem with Bibliography author-year style in document class "book (KOMA-script)"

2009-06-15 Thread Lea Rennert
Thank you! I fixed my bib-file (it did miss a year!), so that was
certainly good advice. I also downloaded some additional packages
through Miktex and tried out some other citation styles. Some of them
work (such as apalike or plain), but the ones I would need don't.

The citation styles that don't work all give me a lot of error
messages saying "Undefined control sequence." and the error
descriptions look something like this (this one came when I used the
style chicago):

" ...r{Aiginger}{Aiginger}{2007}]{Aiginger.2007}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined."

I do not know why the name of the author (Aiginger) is repeated so
often, that is not the case in my bib-file. In other error messages,
symbols like % suddenly appear in the text where there are non in the
bibtex file.

Does anybody know what the problem might be?

I tried different encodings when I exported my references from citavi
to bibtex (UTF-8, US-ASCII, Western European (ISO), ...) but nothing
changed. Is there a specific encoding I should use?

Thank you!
Lea

On Mon, Jun 15, 2009 at 8:07 PM, rgheck wrote:
> Lea Rennert wrote:
>>
>> In Document  > Settings > Bibliography I chose natbib with author-year
>> style. I inserted the Bibliography through Insert > List/TOC..., where
>> I uploaded my .bib-file.
>> When I choose the style "plain", creating a pdf works without
>> problems, but the Bibliography shows up using numbers, both in the
>> Text - e.g.: [2, 192] - and in the Bibliography, which is not what I
>> want.
>>
>>
>
> This is almost always due to some sort of error in your bib file. A missing
> year in an entry, for example, will force BibTeX to use numerical citations
> rather than author-year citations.
>
>> All the other styles I've tried (natbib, plainnat, apacite, ...)
>> produce various error messages when I create a PDF, and in the PDF the
>> Bibliography is all garbled up (Authors' names appear several times,
>> the German Umlaut-Letters like ö/ä/ü are not printed, formatting is
>> messed up, etc.).
>>
>>
>
> If these are written with umlauts in the bib file, that also could cause a
> problem. It depends very much upon encoding issues and the like.
>
>> I have been looking for a solution for hours now, and I am just not
>> sure where my problem lies or what to do next. Should I try changing
>> the document settings in Lyx (in the Preamble, for example)? Or do I
>> need a program to edit the bib-file? Which program would be easy to
>> use on windows? Or could the problem be that my .bib-file is not
>> configured right?
>>
>>
>
> A bib file is just a text file, so you can open it in notepad or whatever.
> But you might want to use something like JabRef, which will give you a nice
> interface to the file.
>
> Richard
>
>


Re: Problem with Bibliography author-year style in document class "book (KOMA-script)"

2009-06-15 Thread rgheck

Lea Rennert wrote:

In Document > Settings > Bibliography I chose natbib with author-year
style. I inserted the Bibliography through Insert > List/TOC..., where
I uploaded my .bib-file.
When I choose the style "plain", creating a pdf works without
problems, but the Bibliography shows up using numbers, both in the
Text - e.g.: [2, 192] - and in the Bibliography, which is not what I
want.

  
This is almost always due to some sort of error in your bib file. A 
missing year in an entry, for example, will force BibTeX to use 
numerical citations rather than author-year citations.



All the other styles I've tried (natbib, plainnat, apacite, ...)
produce various error messages when I create a PDF, and in the PDF the
Bibliography is all garbled up (Authors' names appear several times,
the German Umlaut-Letters like ö/ä/ü are not printed, formatting is
messed up, etc.).

  
If these are written with umlauts in the bib file, that also could cause 
a problem. It depends very much upon encoding issues and the like.



I have been looking for a solution for hours now, and I am just not
sure where my problem lies or what to do next. Should I try changing
the document settings in Lyx (in the Preamble, for example)? Or do I
need a program to edit the bib-file? Which program would be easy to
use on windows? Or could the problem be that my .bib-file is not
configured right?

  
A bib file is just a text file, so you can open it in notepad or 
whatever. But you might want to use something like JabRef, which will 
give you a nice interface to the file.


Richard