ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
Subject: Re: 2 m-bib questions
Date: Thu, 29 Dec 2005 23:51:23 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.58.0512292318030.17095@gaston.free.fr> (raw)
In-Reply-To: <20040809102432.2339ead9@glenlivet.elvenkind.com>

On Mon, 9 Aug 2004, Taco Hoekwater wrote:

> On Sun, 8 Aug 2004 19:25:27 +0200 (CEST), Peter wrote:
> 
> > * The lost space after \cite[...], is it a bug or a feature?
> 
> It is unintentional, and I will try to fix that behaviour in the future.

Hello Taco,
it seems that the bug is still there. After quite some time of
investigation, here comes my workaround:

\usemodule[bib]
\let\citeO\cite% original cite command
\unprotect
\def\cite{\bgroup
  \def\inspectnextcharacter{% removed treatment of blanks
    \ifx\nexttoken\charactertoken
      \@EAEAEA\!!stringa
    \else
      \@EAEAEA\!!stringb
    \fi}%
  \dodoubleempty\doMyCite}
\def\doMyCite[#1][#2]{%
  \ifsecondargument\gdef\@SecondArgument{y}\else\gdef\@SecondArgument{n}\fi
  \egroup
  \doifelse\@SecondArgument{y}{\citeO[#1][#2]}{\citeO[#1]\relax}}
\protect
\starttext
bla \cite[options][key1] bla \cite[key2] bla
\placepublications
\stoptext

I think there are other commands with that behaviour, but I don't remember
which ones...

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

  parent reply	other threads:[~2005-12-29 22:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-08 17:25 Peter Münster
2004-08-08 17:47 ` Brooks Moses
2004-08-09  7:35   ` Hans Hagen
2004-08-09  8:24 ` Taco Hoekwater
2004-08-09 11:26   ` Peter Münster
2004-08-09 11:56     ` Taco Hoekwater
2005-12-29 22:51   ` Peter Münster [this message]
2005-12-30 12:40     ` Taco Hoekwater
2005-12-30 13:24       ` Peter Münster
2005-12-30 15:38         ` Taco Hoekwater
2005-12-30 17:38           ` Peter Münster

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=Pine.LNX.4.58.0512292318030.17095@gaston.free.fr \
    --to=pmlists@free.fr \
    --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).