ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* BibTeX again: citing without parenthesis
@ 2009-01-28 20:30 J.A.J. Pater
  2009-01-28 21:06 ` J.A.J. Pater
  0 siblings, 1 reply; 8+ messages in thread
From: J.A.J. Pater @ 2009-01-28 20:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

The wiki suggests to make a macro: 
\def\onlinecite#1{\cite[left=,right=][#1]}
for inline citations.

However it says you can use this macro with: \onlinecite[myRef]

It works for me with: \onlinecite{myRef}

But not with \onlinecite[myRef] for in that case it produces: 
"Xxxxxxxxxx, 0000myRef]"

Is the wiki wrong?
Or is something else wrong?

Thanks in advance,

Adriaan.
___________________________________________________________________________________
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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-28 20:30 BibTeX again: citing without parenthesis J.A.J. Pater
@ 2009-01-28 21:06 ` J.A.J. Pater
  2009-01-28 23:00   ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: J.A.J. Pater @ 2009-01-28 21:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I think I've got it.

The macro should be: \def\onlinecite[#1]{\cite[left=,right=][#1]}
- with [] around the first #1
now \onlinecite[myRef] works

should I change the wiki?

> The wiki suggests to make a macro: 
> \def\onlinecite#1{\cite[left=,right=][#1]}
> for inline citations.
>
> However it says you can use this macro with: \onlinecite[myRef]
>
> It works for me with: \onlinecite{myRef}
>
> But not with \onlinecite[myRef] for in that case it produces: 
> "Xxxxxxxxxx, 0000myRef]"
>
> Is the wiki wrong?
> Or is something else wrong?
>
> Thanks in advance,
>
> Adriaan.
>

___________________________________________________________________________________
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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-28 21:06 ` J.A.J. Pater
@ 2009-01-28 23:00   ` Aditya Mahajan
  2009-01-29  0:07     ` Pau
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2009-01-28 23:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 28 Jan 2009, J.A.J. Pater wrote:

> I think I've got it.
>
> The macro should be: \def\onlinecite[#1]{\cite[left=,right=][#1]}
> - with [] around the first #1
> now \onlinecite[myRef] works

You can remove the redunent [#1] from both sides.

\def\onlinecite{\cite[left=,right=]}

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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-28 23:00   ` Aditya Mahajan
@ 2009-01-29  0:07     ` Pau
  2009-01-29  0:38       ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Pau @ 2009-01-29  0:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

nice!

I have defined this to \def\citealt{\cite[left=,right=]}
for the equivalent

what's the equivalent in ConTeXt of citep??



2009/1/29 Aditya Mahajan <adityam@umich.edu>:
> On Wed, 28 Jan 2009, J.A.J. Pater wrote:
>
>> I think I've got it.
>>
>> The macro should be: \def\onlinecite[#1]{\cite[left=,right=][#1]}
>> - with [] around the first #1
>> now \onlinecite[myRef] works
>
> You can remove the redunent [#1] from both sides.
>
> \def\onlinecite{\cite[left=,right=]}
>
> 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
> ___________________________________________________________________________________
>



-- 
Let there be peace on earth. And let it begin with misc
___________________________________________________________________________________
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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-29  0:07     ` Pau
@ 2009-01-29  0:38       ` Aditya Mahajan
  2009-01-29 10:59         ` J.A.J. Pater
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2009-01-29  0:38 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users

On Thu, 29 Jan 2009, Pau wrote:

> nice!
>
> I have defined this to \def\citealt{\cite[left=,right=]}
> for the equivalent
>
> what's the equivalent in ConTeXt of citep??

What is \citep supposed to do?

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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-29  0:38       ` Aditya Mahajan
@ 2009-01-29 10:59         ` J.A.J. Pater
  2009-01-29 13:40           ` Pau
  0 siblings, 1 reply; 8+ messages in thread
From: J.A.J. Pater @ 2009-01-29 10:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

\citep[see][]{jon90}                     -->        (see Jones et al., 1990)
\citep[see][chap. 2]{jon90}         -->        (see Jones et al., 1990, 
chap. 2)

I guess you could do that with

\def\citep[#1][#2][#3]{#1\ \citealt[#3], #2}

or something like that...

Guess it would be nice to have all natbib commands in a macro-file.
And add that to the wiki.

Adriaan

> On Thu, 29 Jan 2009, Pau wrote:
>
>> nice!
>>
>> I have defined this to \def\citealt{\cite[left=,right=]}
>> for the equivalent
>>
>> what's the equivalent in ConTeXt of citep??
>
> What is \citep supposed to do?
>
> 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
> ___________________________________________________________________________________ 
>
>

___________________________________________________________________________________
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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-29 10:59         ` J.A.J. Pater
@ 2009-01-29 13:40           ` Pau
  2009-01-29 13:53             ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Pau @ 2009-01-29 13:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

thanks for the answer; unfortunately it does not work; it protests
about a runaway argument...

If somebody has a fix for this, please let me know as soon as possible

Pau

2009/1/29 J.A.J. Pater <jajpater@gmail.com>:
> \citep[see][]{jon90}                     -->        (see Jones et al., 1990)
> \citep[see][chap. 2]{jon90}         -->        (see Jones et al., 1990,
> chap. 2)
>
> I guess you could do that with
>
> \def\citep[#1][#2][#3]{#1\ \citealt[#3], #2}
>
> or something like that...
>
> Guess it would be nice to have all natbib commands in a macro-file.
> And add that to the wiki.
>
> Adriaan
>
>> On Thu, 29 Jan 2009, Pau wrote:
>>
>>> nice!
>>>
>>> I have defined this to \def\citealt{\cite[left=,right=]}
>>> for the equivalent
>>>
>>> what's the equivalent in ConTeXt of citep??
>>
>> What is \citep supposed to do?
>>
>> 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
>>
>> ___________________________________________________________________________________
>>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>



-- 
Let there be peace on earth. And let it begin with misc
___________________________________________________________________________________
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] 8+ messages in thread

* Re: BibTeX again: citing without parenthesis
  2009-01-29 13:40           ` Pau
@ 2009-01-29 13:53             ` Taco Hoekwater
  0 siblings, 0 replies; 8+ messages in thread
From: Taco Hoekwater @ 2009-01-29 13:53 UTC (permalink / raw)
  To: vim.unix, mailing list for ConTeXt users



Pau wrote:
> thanks for the answer; unfortunately it does not work; it protests
> about a runaway argument...
> 
> If somebody has a fix for this, please let me know as soon as possible

Another [] vs {} mixup. Correct usage is \citep[see][chap. 2][jon90]

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] 8+ messages in thread

end of thread, other threads:[~2009-01-29 13:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28 20:30 BibTeX again: citing without parenthesis J.A.J. Pater
2009-01-28 21:06 ` J.A.J. Pater
2009-01-28 23:00   ` Aditya Mahajan
2009-01-29  0:07     ` Pau
2009-01-29  0:38       ` Aditya Mahajan
2009-01-29 10:59         ` J.A.J. Pater
2009-01-29 13:40           ` Pau
2009-01-29 13:53             ` Taco Hoekwater

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