On Friday 26 April 2002 2:47 pm, Juergen Spitzmueller wrote: > Juergen Spitzmueller wrote: > > Here is my proposal. > > Having written this, I think about using the key instead of "No Author". > This would be even more WYSIWYG and more informative perhaps. What do you > think? > > Juergen.
You mean like this? (It appears that great thought can be shared ;-) You might say that LyX is "better" than LaTeX here ;-) Angus
Index: src/frontends/controllers/biblio.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/biblio.C,v retrieving revision 1.24 diff -u -p -r1.24 biblio.C --- src/frontends/controllers/biblio.C 24 Apr 2002 10:00:39 -0000 1.24 +++ src/frontends/controllers/biblio.C 26 Apr 2002 14:12:58 -0000 @@ -198,6 +198,13 @@ string const getAbbreviatedAuthor(InfoMa if (author.empty()) author = parseBibTeX(it->second, "editor"); + if (author.empty()) { + author = parseBibTeX(it->second, "key"); + if (author.empty()) + author = key; + return author; + } + vector<string> authors = getVectorFromString(author, "and"); if (!authors.empty()) { @@ -247,6 +254,9 @@ string const getYear(InfoMap const & map } string year = parseBibTeX(it->second, "year"); + if (year.empty()) + year = _("No year"); + return year; }
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 1 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard text text \begin_inset LatexCommand \citet{Anderson:etal89} \end_inset text \begin_inset LatexCommand \citet{booklet-87} \end_inset text \begin_inset LatexCommand \citet{manual-84} \end_inset text \begin_inset LatexCommand \citet{Spi} \end_inset text \begin_inset LatexCommand \citet{unpublished-minimal} \end_inset text. \layout Standard \begin_inset LatexCommand \BibTeX[plainnat]{/usr/users/aleem/jug} \end_inset \the_end
@String{ARRD = {Am.~Rev. Respir.~Dis.}} @Misc{Spi, Author = {Spitzm\"uller, J\"urgen}, Title = {An unpublished essay}, HowPublished = {Private copy}, } @MANUAL{manual-84, key = "Manmaker", title = "The Definitive Computer Manual", year = "1984", } @BOOKLET{booklet-87, key = "Kn87", title = "The Programming of Computer Art", year = "1987", } @UNPUBLISHED{unpublished-minimal, author = "Ulrich {\"{U}}nderwood and Ned {\~N}et and Paul {\={P}}ot", title = "Lower Bounds for Wishful Research Results", note = "Talk at Fanstord University (this is a minimal UNPUBLISHED entry)", } @article{Anderson:etal89, author = {P.J. Anderson and J.D. Blanchard and J.D. Brain and H.A. Feldman and J.J. McNamara and J.J. Heyder}, title = {Effect of cystic fibrosis on inhaled aerosol boluses}, journal = ARRD, year = 1989, volume = 140, pages = {1317-1324} }
jug.dvi
Description: TeX dvi file