From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25193 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: spurious space in cite Date: Sun, 15 Jan 2006 13:26:51 +0100 Message-ID: <115138F5-471A-4C0B-93D4-C879D6627E19@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137328085 12062 80.91.229.2 (15 Jan 2006 12:28:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jan 2006 12:28:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 15 13:28:03 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ey6zH-0002Lw-VU for gctc-ntg-context-518@m.gmane.org; Sun, 15 Jan 2006 13:28:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7043E1283B; Sun, 15 Jan 2006 13:27:59 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05023-02; Sun, 15 Jan 2006 13:27:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 07897127FF; Sun, 15 Jan 2006 13:27:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E2D7127FF for ; Sun, 15 Jan 2006 13:27:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05022-02-2 for ; Sun, 15 Jan 2006 13:27:54 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 95CB3127D1 for ; Sun, 15 Jan 2006 13:27:54 +0100 (CET) Original-Received: from 118-133.uva.surfnetthuis.nl [145.98.118.133] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0FCRpx22372; Sun, 15 Jan 2006 13:27:51 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25193 Archived-At: I was typesetting bibliography references with the command \cite[data][ref] and then found that a spce preceded the author name; surrounding the space with X and Y, it gives "X Yauthor" instead of "XYauthor I was able to trace it down to the macro invertedshortauthor in thise case, but I suspect the others (invertedauthor, normalauthor, normalshortauthor) will exhibit the same phenomenon. The macro is: \def\invertedshortauthor#1#2#3#4#5% {\bibdoif{#2}{#2\bibalternative\c!vonsep}% #3\bibalternative\c!surnamesep \bibdoif{#5}{#5\bibalternative\c!juniorsep}% \bibdoif{#4}{#4\unskip}} tracingmacros shows an empty #2-argument takes the \c!vonsep, in bibl- apa.tex defined as a space. I first wondered if the \bibdoif's shouldn't be replaced by a \bibdoifnot. Anyway, that makes the spurious spaces go away. But it seems not right, so I investigated the bibdoif's and found the following behaviour when calling with empty and nonempty arguments. bibdoif:\crlf empty = \bibdoif{}{empty}\crlf notempty = \bibdoif{x}{notempty}\par bibdoifnot:\crlf empty = \bibdoifnot{}{empty}\crlf notempty = \bibdoifnot{x}{notempty}\par bibdoifelse:\crlf empty = \bibdoifelse{}{first}{second}\crlf notempty = \bibdoifelse{x}{first}{second}\par Typesetting gives as a result: bibdoif: empty = empty notempty = notempty bibdoifnot: empty = notempty = bibdoifelse: empty = first notempty = first So I have my doubts about the doif's. Finally another observation on the typesetting by \cite[data][ref]. When typesetting a reference ending on a period, for example "Publ. Co. Inc.", the result has a double period "Publ. Co. Inc.." That looks somewhat silly. yours sincerely, dr. H. van der Meer