Attached: My first .bst file made (somewhat in blind) in 5 minutes using
makebst. Do not understand why this one works when there are problems with
the ones from the author of NatBib.
Janus
On Wednesday 22 June 2005 15:32, Janus Sandsgaard wrote:
> In my bib-file I have an author who have written more than one publication
> in a year. When citing these publications I would expect NatBib to handle
> it by doing something like:
>
> Sandsgaard, Janus (2004a)
> Sandsgaard, Janus (2004b)
>
> (this is what apalike does). But instead I get an error message:
>
> "Misplaced alignment tab character &.
> e=uk&category=11}
> .
> I can't figure out why you would want to use a tab mark
> here. If you just want an ampersand, the remedy is
> simple: Just type `I\&' now. But if some right brace
> up above has ended a previous alignment prematurely,
> you're probably due for more error messages, and you
> might try typing `S' now just to see what is salvageable."
>
> I have tried building my own .bst for NatBib (using latex makebst - thank
> you, Jürgen!), and this one do the 2004a, 2004b trick.
>
> But as I do not fully understand the .bst and all the questions I answered
> using makebst, I do not feel confortable about using this home made one. I
> would prefer something standard, and I can't imagine that I am the first
> one to run into this problem using one of the .bst's that comes with
> NatBib.
>
> Suggestions?
>
> LyX 1.3.4
> NatBib with author-year
> plainnat
>
> Janus
--
Roskilde University, Denmark.
Department of Technology and Social Science.
International Development Studies.
ESST - Society, Science and Technology in Europe.
%%
%% This is file `jansutest.bst',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-revf,jnrlst,keyxyr,dt-beg,yr-par,note-yr,num-xser,isbn,issn,xedn')
%%
%% *** test af natbib-customdims ***
%%
%% Copyright 1994-2002 Patrick W Daly
% ===
% IMPORTANT NOTICE:
% This bibliographic style (bst) file has been generated from one or
% more master bibliographic style (mbs) files, listed above.
%
% This generated file can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN
% archives in directory macros/latex/base/lppl.txt; either
% version 1 of the License, or any later version.
% ===
% Name and version information of the main mbs file:
% \ProvidesFile{merlin.mbs}[2002/10/21 4.05 (PWD, AO, DPC)]
% For use with BibTeX version 0.99a or later
%---
% This bibliography style file is intended for texts in ENGLISH
% 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
% The form of the \bibitem entries is
% \bibitem[Jones et al.(1990)]{key}...
% \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
% The essential feature is that the label (the part in brackets) consists
% of the author names, as they should appear in the citation, with the year
% in parentheses following. There must be no space before the opening
% parenthesis!
% With natbib v5.3, a full list of authors may also follow the year.
% In natbib.sty, it is possible to define the type of enclosures that is
% really wanted (brackets or parentheses), but in either case, there must
% be parentheses in the label.
% The \cite command functions as follows:
% \citet{key} ==>>Jones et al. (1990)
% \citet*{key} ==>> Jones, Baker, and Smith (1990)
% \citep{key} ==>>(Jones et al., 1990)
% \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
% \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
% \citep[e.g.][]{key} ==>>(e.g. Jones et al., 1990)
% \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
% \citeauthor{key} ==>> Jones et al.
% \citeauthor*{key} ==>> Jones, Baker, and Smith
% \citeyear{key} ==>> 1990
%-
ENTRY
{ address
author
booktitle
chapter
edition
editor
howpublished
institution
isbn
issn
journal
key
month
note
number
organization
pages
publisher
school
series
title
type
volume
year
}
{}
{ label extra.label sort.label short.list }
INTEGERS { output.state before.all mid.sentence after.sentence after.block }
FUNCTION {init.state.consts}
{ #0 'before.all :=
#1 'mid.sentence :=
#2 'after.sentence :=
#3 'after.block :=
}
S