ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Spacing after \cite
@ 2009-03-10 15:59 Aditya Mahajan
  2009-03-10 16:09 ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2009-03-10 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Taco,

Normally, while using \cite one does not need to worry about adding an 
explicit space after the command. So, you can write "\cite[something] says 
...." rather than "\cite[something]\ says ...". But something has changed 
in core ConTeXt which has changed this behaviour.

Consider the test file:

\usemodule  [bib]
\setuppublications    [alternative=num]

\starttext
Test~\cite[something] is wrong
\stoptext

I have two versions of ConTeXt. With ConTeXt  2009.01.18 (which has t-bib
version=2008.10.27), I get (notice the space after [] and is)

%-----------
Test [] is wrong
%-------------

With ConTeXt 2009.03.09  (which has t-bib version=2008.12.01) I get 
(notice that there is no space after [] and is)

%-----------
Test []is wrong
%-------------

The behaviour is the same whether I use pdftex or luatex. There is no 
major difference between the two versions of t-bib. The changelog says

%D \item Catalan translation of 'References' (10/11/2008)
%D \item 'chapter' -> 'chapitre' in bibl-apa-fr (27/11/2008)
%D \item Run bibtex via os.execute in  mkiv modee (01/12/2008)

So I am guessing that the difference is because of something else, but I 
cannot see any differences.

Any suggestions?

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-10 15:59 Spacing after \cite Aditya Mahajan
@ 2009-03-10 16:09 ` Aditya Mahajan
  2009-03-29 18:09   ` Jesse Alama
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2009-03-10 16:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 10 Mar 2009, Aditya Mahajan wrote:

> So I am guessing that the difference is because of something else, but I 
> cannot see any differences.

The old version gives

\dodoubleempty #1->\noshowargumenterror \doifnextcharelse 
[{\dodoubletestempty #1} {\dodoublefakeempty #1}
#1<-\dododocite


The new one gives

\dodoubleempty #1->\noshowargumenterror \doifnextoptionalelse {\dodoubletestemp
ty #1} {\dodoublefakeempty #1}
#1<-\dododocite

So, \doifnextcharelse vs \doifnextoptionalelse.

Aditya

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-10 16:09 ` Aditya Mahajan
@ 2009-03-29 18:09   ` Jesse Alama
  2009-03-29 18:27     ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Jesse Alama @ 2009-03-29 18:09 UTC (permalink / raw)
  To: ntg-context

Aditya Mahajan <adityam@umich.edu> writes:

> On Tue, 10 Mar 2009, Aditya Mahajan wrote:
>
>> So I am guessing that the difference is because of something else,
>> but I cannot see any differences.
>
> The old version gives
>
> \dodoubleempty #1->\noshowargumenterror \doifnextcharelse
> [{\dodoubletestempty #1} {\dodoublefakeempty #1}
> #1<-\dododocite
>
>
> The new one gives
>
> \dodoubleempty #1->\noshowargumenterror \doifnextoptionalelse {\dodoubletestemp
> ty #1} {\dodoublefakeempty #1}
> #1<-\dododocite
>
> So, \doifnextcharelse vs \doifnextoptionalelse.

Any progress on this?  I'm seeing the same behavior.

Jesse

-- 
Jesse Alama (alama@stanford.edu)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-29 18:09   ` Jesse Alama
@ 2009-03-29 18:27     ` Wolfgang Schuster
  2009-03-29 19:24       ` Jesse Alama
  2009-03-30  7:37       ` Taco Hoekwater
  0 siblings, 2 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2009-03-29 18:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.03.2009 um 20:09 schrieb Jesse Alama:

> Aditya Mahajan <adityam@umich.edu> writes:
>
>> On Tue, 10 Mar 2009, Aditya Mahajan wrote:
>>
>>> So I am guessing that the difference is because of something else,
>>> but I cannot see any differences.
>>
>> The old version gives
>>
>> \dodoubleempty #1->\noshowargumenterror \doifnextcharelse
>> [{\dodoubletestempty #1} {\dodoublefakeempty #1}
>> #1<-\dododocite
>>
>>
>> The new one gives
>>
>> \dodoubleempty #1->\noshowargumenterror \doifnextoptionalelse  
>> {\dodoubletestemp
>> ty #1} {\dodoublefakeempty #1}
>> #1<-\dododocite
>>
>> So, \doifnextcharelse vs \doifnextoptionalelse.
>
> Any progress on this?  I'm seeing the same behavior.

\startmode[whisper]
ask Taco for a after key and use \autoinsertnextspace
\stopmode

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-29 18:27     ` Wolfgang Schuster
@ 2009-03-29 19:24       ` Jesse Alama
  2009-03-30  7:37       ` Taco Hoekwater
  1 sibling, 0 replies; 9+ messages in thread
From: Jesse Alama @ 2009-03-29 19:24 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> Am 29.03.2009 um 20:09 schrieb Jesse Alama:
>
>> Aditya Mahajan <adityam@umich.edu> writes:
>>
>>> On Tue, 10 Mar 2009, Aditya Mahajan wrote:
>>>
>>>> So I am guessing that the difference is because of something else,
>>>> but I cannot see any differences.
>>>
>>> The old version gives
>>>
>>> \dodoubleempty #1->\noshowargumenterror \doifnextcharelse
>>> [{\dodoubletestempty #1} {\dodoublefakeempty #1}
>>> #1<-\dododocite
>>>
>>>
>>> The new one gives
>>>
>>> \dodoubleempty #1->\noshowargumenterror \doifnextoptionalelse
>>> {\dodoubletestemp
>>> ty #1} {\dodoublefakeempty #1}
>>> #1<-\dododocite
>>>
>>> So, \doifnextcharelse vs \doifnextoptionalelse.
>>
>> Any progress on this?  I'm seeing the same behavior.
>
> \startmode[whisper]
> ask Taco for a after key and use \autoinsertnextspace
> \stopmode

context --mode=whisper request.tex

-- 
Jesse Alama (alama@stanford.edu)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-29 18:27     ` Wolfgang Schuster
  2009-03-29 19:24       ` Jesse Alama
@ 2009-03-30  7:37       ` Taco Hoekwater
  2009-03-30 15:16         ` Jesse Alama
  1 sibling, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2009-03-30  7:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Wolfgang Schuster wrote:
>>>
>>> So, \doifnextcharelse vs \doifnextoptionalelse.

I still think Hans should fix that in the core, but ...

>> Any progress on this?  I'm seeing the same behavior.
> 
> \startmode[whisper]
> ask Taco for a after key and use \autoinsertnextspace
> \stopmode

can you try this in the header just to see how if it works out?

  \usemodule[bib]
  \let\normaldocite\docite
  \def\docite[#1][#2]%
    {\normaldocite[#1][#1]\autoinsertnextspace }

  ...
  \starttext

Best wishes,
Taco

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-30  7:37       ` Taco Hoekwater
@ 2009-03-30 15:16         ` Jesse Alama
  2009-03-31  7:43           ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: Jesse Alama @ 2009-03-30 15:16 UTC (permalink / raw)
  To: ntg-context

Taco Hoekwater <taco@elvenkind.com> writes:

> Wolfgang Schuster wrote:
>>>>
>>>> So, \doifnextcharelse vs \doifnextoptionalelse.
>
> I still think Hans should fix that in the core, but ...
>
>>> Any progress on this?  I'm seeing the same behavior.
>> 
>> \startmode[whisper]
>> ask Taco for a after key and use \autoinsertnextspace
>> \stopmode
>
> can you try this in the header just to see how if it works out?
>
>   \usemodule[bib]
>   \let\normaldocite\docite
>   \def\docite[#1][#2]%
>     {\normaldocite[#1][#1]\autoinsertnextspace }
>
>   ...
>   \starttext

Thanks for helping out with this.  Is the second "#1" supposed to be
"#2"?  In any case, this fix gives an error:

! You can't use `macro parameter character #' in horizontal mode.
\p!doifinstringelse ...tringelse \@EA ##\@EA 1#1##
                                                  2##3\war {\unless \if ##2@...
\rawdodoifinsetelse ...ingelse \@@@instring {,#1,}
                                                  \@EA \firstoftwoarguments ...
\addtocommalist #1#2->\rawdoifinsetelse {#1}#2
                                              \resetglobal {\dodoglobal \ede...
\doifreferencefoundelse ...ce \ifreferencefound #2
                                                  \else #3\fi \egroup \dores...
\redoloop ->\expandrecursecontent 
                                  \endofloop 
<to be read again> 
                   {
...
l.1184 \completepublications[criterium=all]

Jesse

-- 
Jesse Alama (alama@stanford.edu)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-30 15:16         ` Jesse Alama
@ 2009-03-31  7:43           ` Taco Hoekwater
  2009-03-31 16:43             ` Jesse Alama
  0 siblings, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2009-03-31  7:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Jesse Alama wrote:
> 
> Thanks for helping out with this.  Is the second "#1" supposed to be
> "#2"?  

Yes,

> In any case, this fix gives an error:


Are you sure that is related? Perhaps you should create a test file.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Spacing after \cite
  2009-03-31  7:43           ` Taco Hoekwater
@ 2009-03-31 16:43             ` Jesse Alama
  0 siblings, 0 replies; 9+ messages in thread
From: Jesse Alama @ 2009-03-31 16:43 UTC (permalink / raw)
  To: ntg-context

Taco Hoekwater <taco@elvenkind.com> writes:

> Jesse Alama wrote:
>> 
>> Thanks for helping out with this.  Is the second "#1" supposed to be
>> "#2"?  
>
> Yes,
>
>> In any case, this fix gives an error:
>
>
> Are you sure that is related? Perhaps you should create a test file.

Well, the problem seems to have gone away (after updating my local
minimals).  Thanks for the help!

Jesse

-- 
Jesse Alama (alama@stanford.edu)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-31 16:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-10 15:59 Spacing after \cite Aditya Mahajan
2009-03-10 16:09 ` Aditya Mahajan
2009-03-29 18:09   ` Jesse Alama
2009-03-29 18:27     ` Wolfgang Schuster
2009-03-29 19:24       ` Jesse Alama
2009-03-30  7:37       ` Taco Hoekwater
2009-03-30 15:16         ` Jesse Alama
2009-03-31  7:43           ` Taco Hoekwater
2009-03-31 16:43             ` Jesse Alama

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).