Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-13 Thread Janus Sandsgaard
On Friday 13 May 2005 14:02, [EMAIL PROTECTED] wrote:

> I copied parts of your post to this page

Great. The answer from Jürgen is excellent.

Janus

-- 
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-13 Thread chr
On Fri, 13 May 2005, Juergen Spitzmueller wrote:

> [EMAIL PROTECTED] wrote:
> > I copied parts of your post to this page
> >
> > http://wiki.lyx.org/BibTeX/Background
> 
> I hope it is all historically correct.

Well, I just quoted you ;-)

/C

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-13 Thread Juergen Spitzmueller
[EMAIL PROTECTED] wrote:
> I copied parts of your post to this page
>
> http://wiki.lyx.org/BibTeX/Background

I hope it is all historically correct.

> /Christian
>
> Btw, I assumed that you use a 'ü'  in Spitzmüller...

certainly.

Jürgen.


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-13 Thread chr
On Fri, 13 May 2005, Juergen Spitzmueller wrote:

> Janus Sandsgaard wrote:
> > Ah. Thanks a lot. I was not aware of that. I guess I need to study a little
> > on the basics of BiB and LaTeX to understand what I am doing. Can you
> > recommend a (short) resource explaining me someting like:
> >
> > - The difference between BiBteX, NatBib, JureBib etc.
> 
> Bibtex is a compiler programm that does the job of writing a bibliography 
> environment for you, reading citation entries from a database (*.bib) and 
> some layout information from a style file (*.bst).

I copied parts of your post to this page

http://wiki.lyx.org/BibTeX/Background

/Christian

Btw, I assumed that you use a 'ü'  in Spitzmüller...

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-13 Thread Juergen Spitzmueller
Janus Sandsgaard wrote:
> Ah. Thanks a lot. I was not aware of that. I guess I need to study a little
> on the basics of BiB and LaTeX to understand what I am doing. Can you
> recommend a (short) resource explaining me someting like:
>
> - The difference between BiBteX, NatBib, JureBib etc.

Bibtex is a compiler programm that does the job of writing a bibliography 
environment for you, reading citation entries from a database (*.bib) and 
some layout information from a style file (*.bst).

Bibtex has been designed merely for natural scientist's citation uses (i.e. 
numerical), but its author, Oren Patashnik, already provided a rudimental 
extension package for author-year citations (that is apacite.sty)

Patrick W. Daly felt that this was not powerful enough and developped another 
extension package: natbib. It comes with its own style files, but in the 
meantime, several people have designed alternative style files for natbib. 
Also, Daly has developped "custom-bib", an interaktive command line tool 
which lets you create a bst file interactively (by answering some questions).

Jens Berger finally came to the conclusion that all the existing packages 
(including natbib) do not match the requirements of law studies. So he 
developped the jurabib package, another extension. During the years, it has 
become very popular and extremely flexible. The difference in concept is that 
you don't have lots of different static bst files, but only a few bst files 
which can be very much tweaked via package options and commands.

So basically, all those extensions need their own bst files, even if some of 
them might be inter-chargeable. 

> - The function of .sty and .bst - and how they can be used.

The natbib documentation:
http://www.linmpi.mpg.de/english/services/software/latex/localtex/doc/natbib.pdf

The jurabib documentation:
http://www.ctan.org/tex-archive/macros/latex/contrib/jurabib/docs/english/jbendoc.dvi

And this comprehensive documentation about BibTeX:
http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf

> Remember: I am a social scientist :-) The literature I have seen so far is
> often quite technical and all I need is to know the rules of the game and a
> little background.

I am a human scientist. So we share the same problem.

> > Try one of natbib's one style files or create one with custom-bib.
>
> How can I tell if a style works with NatBib? 

Normally, you can see it in the file:
 % For use with the `natbib.sty' package; emulates the corresponding
 %   member of the `plain' family, but with author-year citations.

or 

% This is an author-year citation style bibliography. As such, it is
% non-standard LaTeX, and requires a special package file to function 
% properly.
% Such a package isnatbib.sty   by Patrick W. Daly

> Can you recommend a place to 
> look for styles that work with NatBiB?

I highly recommend to try custom-bib.

Jürgen


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Angus Leeming
Janus Sandsgaard wrote:

> On Thursday 12 May 2005 20:35, Juergen Spitzmueller wrote:
> 
>> Not strange at all. The problem is that apalike.bst has not been
>> designed for natbib, but for a different package (apacite.sty). So don't
>> expect it to work with natbib.
> 
> Ah. Thanks a lot. I was not aware of that. I guess I need to study a
> little on the basics of BiB and LaTeX to understand what I am doing. Can
> you recommend a (short) resource explaining me someting like:
> 
> - The difference between BiBteX, NatBib, JureBib etc.

The first time you run the latex compiler over your latex file,
your_file.tex, it will output among other things your_file.aux containing

\citation{Butler:Tsuda97}
\citation{Tsuda:etal99}
\bibstyle{plainnat}
\bibdata{your_bibtex_references}

If you now run "bibtex your_file", bibtex will interrogate this .aux file
and your_bibtex_references.bib to output your_file.bbl

\begin{thebibliography}{6}
\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi
\expandafter\ifx\csname url\endcsname\relax
  \def\url#1{{\tt #1}}\fi

\bibitem[Butler and Tsuda(1997)]{Butler:Tsuda97}
J.P. Butler and A.~Tsuda.
\newblock {\em J.~Appl. Physiol.}, 83:\penalty0 800--809, 1997.

\bibitem[Tsuda et~al.(1999)Tsuda, Otani, and Butler]{Tsuda:etal99}
A.~Tsuda, Y.~Otani, and J.P. Butler.
\newblock {\em J.~Appl. Physiol.}, 86:\penalty0 977--984, 1999.

\end{thebibliography}

The style of these entries is dependent on the bibtex style file. Here
plainnat.bst.

The next time you run latex, it merges the contents of this .bbl file into
the .dvi file. You'll also find that the .aux file has some additional
entries:

\bibcite{Butler:Tsuda97}{{1}{1997}{{Butler and Tsuda}}{{}}}
\bibcite{Tsuda:etal99}{{5}{1999}{{Tsuda et~al.}}{{Tsuda, Otani, and
Butler}}}

The formatting of these entries is controlled by plainnat.sty. Ie, the .sty
file is used by latex and the .bst file is used by bibtex.

> - The function of .sty and .bst - and how they can be used.
> 
> Remember: I am a social scientist :-) The literature I have seen so far
> is often quite technical and all I need is to know the rules of the game
> and a little background.
> 
>> Try one of natbib's one style files or create one with custom-bib.
> 
> How can I tell if a style works with NatBib? Can you recommend a place to
> look for styles that work with NatBiB?

Read the natbib documentation?
Angus

> 
> Thanks a lot!
> 
> Janus
> 

-- 
Angus



Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Janus Sandsgaard
On Thursday 12 May 2005 20:35, Juergen Spitzmueller wrote:

> Not strange at all. The problem is that apalike.bst has not been designed
> for natbib, but for a different package (apacite.sty). So don't expect it
> to work with natbib.

Ah. Thanks a lot. I was not aware of that. I guess I need to study a little on 
the basics of BiB and LaTeX to understand what I am doing. Can you recommend 
a (short) resource explaining me someting like:

- The difference between BiBteX, NatBib, JureBib etc.
- The function of .sty and .bst - and how they can be used.

Remember: I am a social scientist :-) The literature I have seen so far is 
often quite technical and all I need is to know the rules of the game and a 
little background.

> Try one of natbib's one style files or create one with custom-bib.

How can I tell if a style works with NatBib? Can you recommend a place to look 
for styles that work with NatBiB?

Thanks a lot!

Janus

-- 
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Juergen Spitzmueller
Janus Sandsgaard wrote:
> Strange. It sounds a little like the
> problem Meri Williams described in an posting on May 5, 2005.

Not strange at all. The problem is that apalike.bst has not been designed for 
natbib, but for a different package (apacite.sty). So don't expect it to work 
with natbib.

Try one of natbib's one style files or create one with custom-bib.

Jürgen


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Janus Sandsgaard
On Thursday 12 May 2005 20:07, Angus Leeming wrote:

> Insert->Note[ Insert->Citation ]

Ah, ok. 

> Nope. LyX will only add "\usepackage[...]{natbib}" to the generated LaTeX
> file if it sees that you have a citation entry.

OK. I already have a few citations in the text. 

Janus

-- 
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Juergen Spitzmueller
Angus Leeming wrote:
> > Sorry. I do not understand what you mean by "comment environment". Could
> > you please explain
>
> Insert->Note[ Insert->Citation ]

Or (rather) "Comment" from the Layout combo box.

Jürgen


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Janus Sandsgaard
On Thursday 12 May 2005 09:36, Rob S wrote:

> Try adding this to the document preamble - it works using \nocite{*},
> apalike and Natbib producing the output as you require:
>
> [EMAIL PROTECTED]([EMAIL PROTECTED] , #2\fi)}
> [EMAIL PROTECTED]

Thank. Now all my literature is listed in a apa like style in my bibliography 
- but the references/citation in the text has now changed from (author, year) 
format to a numerical format. Double checked the citation style in the 
citation dialog, and it is the same. Strange. It sounds a little like the 
problem Meri Williams described in an posting on May 5, 2005.

> I have no idea what this does however since I snipped it from elsewhere
> but it works for me ;-)

Maybe somebody can.

Janus

-- 
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Angus Leeming
Janus Sandsgaard wrote:

> On Thursday 12 May 2005 10:25, Juergen Spitzmueller wrote:
> 
>> Is the \nocite* ERT the only citation? LyX is calling natbib only if you
>> have inserted a citation inset.
> 
> No, the \nocite is not the only citation. There are a few normal
> citations in the text as well.
> 
>> There are two options:
>> - put some citation inset into a comment environment
> 
> Sorry. I do not understand what you mean by "comment environment". Could
> you please explain

Insert->Note[ Insert->Citation ]

>> - write \usepackage{natbib} to the preamble
> 
> But isn't that the same as activating NatbiB through "Layout" ->
> "Bibliography" -> "Use NatBib"?

Nope. LyX will only add "\usepackage[...]{natbib}" to the generated LaTeX
file if it sees that you have a citation entry.

-- 
Angus



Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Janus Sandsgaard
On Thursday 12 May 2005 10:25, Juergen Spitzmueller wrote:

> Is the \nocite* ERT the only citation? LyX is calling natbib only if you
> have inserted a citation inset.

No, the \nocite is not the only citation. There are a few normal citations in 
the text as well.

> There are two options:
> - put some citation inset into a comment environment

Sorry. I do not understand what you mean by "comment environment". Could you 
please explain

> - write \usepackage{natbib} to the preamble

But isn't that the same as activating NatbiB through "Layout" -> 
"Bibliography" -> "Use NatBib"?

Janus

-- 
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Juergen Spitzmueller
Janus Sandsgaard wrote:
> by inserting "\nocite{*}" as ERT in my LyX document. But this changes the
> look of my bibliography from "apalike" - author (year) title - to a
> numerical notation.
>
> I am using NatBib with the "autor-year" option.
> Style: "apalike".
> LyX 1.3.4 on Linux
>
> What am I doing wrong?

Is the \nocite* ERT the only citation? LyX is calling natbib only if you have 
inserted a citation inset.

> How do I ask NatBib to add literature to the 
> bibliopraphy that is not citet?

There are two options:
- put some citation inset into a comment environment
- write \usepackage{natbib} to the preamble

Jürgen


Re: \nocite{*} changes bibliography style (when using natbib)

2005-05-12 Thread Rob S

by inserting "\nocite{*}" as ERT in my LyX document. But this changes the look 
of my bibliography from "apalike" - author (year) title - to a numerical 
notation.

I am using NatBib with the "autor-year" option.
Style: "apalike".
LyX 1.3.4 on Linux
Hi Janus;
Try adding this to the document preamble - it works using \nocite{*}, 
apalike and Natbib producing the output as you require:

[EMAIL PROTECTED]([EMAIL PROTECTED] , #2\fi)}
[EMAIL PROTECTED]
I have no idea what this does however since I snipped it from elsewhere 
but it works for me ;-)

Rob S
--
R D Saunders
Hydraulic Research Group
Department of Civil and Environmental Engineering
University of Southampton
UK


\nocite{*} changes bibliography style (when using natbib)

2005-05-11 Thread Janus Sandsgaard
Hi there,

I would like to show all (or additional) literature from my bib-file in the 
bibliography, and not just the literature I am citing. I have tried to follow 
the advise at:

http://www.texnik.de//bibtex/bibtex.phtml#cite*

by inserting "\nocite{*}" as ERT in my LyX document. But this changes the look 
of my bibliography from "apalike" - author (year) title - to a numerical 
notation.

I am using NatBib with the "autor-year" option.
Style: "apalike".
LyX 1.3.4 on Linux

What am I doing wrong? How do I ask NatBib to add literature to the 
bibliopraphy that is not citet?

Janus

-- 
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.