ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: m-bib, \cite and no year?
Date: Wed, 24 Nov 2004 13:58:31 +0100	[thread overview]
Message-ID: <20041124135831.0ae7eaff.taco@elvenkind.com> (raw)
In-Reply-To: <41A332BA.2090509@creutzig.de>


Hi,

Christopher Creutzig <christopher@creutzig.de> wrote:

> with no year entry, and this comes out as "Wikipedia ()".  I think the 
> parens should only be used if the year is nonempty.

In authoryear styles, year entries are usually required, so I am going to 
keep this as it is now. You can either use \cite[author] for this case, or 
you could build your own \cite command, in a similar way to Tobias' answer:

  \setupcite[author,year][left={},right={}]
  \def\mycite[#1]{%
        \setbox\scratchbox\hbox{\cite[year][#1]}%
	\ifdim \wd\scratchbox > 0pt
            \cite[author][#1]~(\cite[year][#]1)%
        \else
            \cite[author][#1]%
       \fi}

(untested code)
 
>   Second, I getempty entries in my list of references, which do get a 
> number.  Also, the first 20 numbers are printed in red, while the 
> subsequent entries are in black.  I know this is a vague description, I 
> haven't been able to analyze it in more detail yet.  Just wanted to let 
> you know.

Too vague for a diagnosis, actually.  You'd need to supply me with a 
minimal complete file that recreates the error. There is nothing I can do 
with your information right now.

>   Third, I have entries in my bibliography where the authors are listed
> with their family names only.  This causes spurious commas in the list
> of references.  I'll probably add initials and/or chrisitan names where 
> I know them, but I think m-bib should support these entries.

I really should, i agree. Added to the todo list.
 
Greetings, Taco

  parent reply	other threads:[~2004-11-24 12:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23 12:53 Christopher Creutzig
2004-11-23 13:07 ` Tobias Burnus
2004-11-24 12:58 ` Taco Hoekwater [this message]
2004-11-30 16:35   ` Christopher Creutzig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041124135831.0ae7eaff.taco@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).