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.
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.
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
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
\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 ___________________________________________________________________________________
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
\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
participants (4)
-
Aditya Mahajan
-
J.A.J. Pater
-
Pau
-
Taco Hoekwater