Re: [NTG-context] basic \cite[]

2010-04-18 Thread Taco Hoekwater


Hi,

Michael Green wrote:


Mk II gets the desired result; Mk IV does not.

Example:


... 
\placepublications


Please change the above line to

  \placepublications[criterium=all]

This is a bug in the mkiv port of the module that I thought was
already documented, but maybe not. To be sure, I created a bug
tracker item for Hans to look at.

On the criterium vs. criterion: this bad 'translation' is actually
a keyword left over from the Dutch interface. It has been this
way since 1996 I think. Actually changing it is not an option.
but perhaps an alias could be created. I have also created a
tracker item for that.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Salil Sayed
In mkIV the option seems mandatory too. Otherwise I get the empty brackets. But 
only the authoryear and authoryears works for me. Not authornum.

This is how I use it. (following the habit of using natbib in Latex)

\usemodule[bib]
\setupbibtex
 [database={Manuscript},
  sort=author]
\setuppublications[numbering=yes]
\def\LocalRefList {\subject{References}\placepublications[criterium=chapter, 
option=continue]} 
\def\citet[#1]{\cite[authoryear][#1]}
\def\citep[#1]{\cite[authoryears][#1]}

The line
\def\LocalRefList {\subject{References}\placepublications[criterium=chapter, 
option=continue]} 
worked in mkII but not in mkIV.

Best regards,

Salil



From: Taco Hoekwater t...@elvenkind.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Sent: Sat, April 17, 2010 10:31:17 PM
Subject: Re: [NTG-context] basic \cite[]

Michael Saunders wrote:
 One cryptic line tells me:
 
 refcommand  the default option for \cite
 
 just like that.  Based on this, I'm guessing refcommand=key will let
 me write things like \cite[myFirstKey].  The manual goes on to clear
 up the confusion by explaining:

Well, no. You always use keys as arguments, the option controls the
resulting output.  It called an option because it controls the
optional argument of \cite. A reference key is mandatory, because
otherwise the whole command would be pointless.

 \setuppublications[refcommand=key,alternative=apa,setupinteraction=start,numbering=yes]

Try

  \setuppublications[alternative=num]

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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Michael Saunders
Taco:

  \placepublications

 Please change the above line to

\placepublications[criterium=all]

Thanks, but that's what I was using already.  To be clear, in Mk IV:
\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[alternative=num]
...
\cite[myKey]
...
\placepublications[criterium=all]


The references in the back look okay, but at the point where
\cite[myKey]  occurs, I get  empty brackets: [], not [1].
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Taco Hoekwater

Michael Saunders wrote:

Taco:


\placepublications

Please change the above line to

   \placepublications[criterium=all]


Thanks, but that's what I was using already.  To be clear, in Mk IV:
\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[alternative=num]
...
\cite[myKey]
...
\placepublications[criterium=all]


The references in the back look okay, but at the point where
\cite[myKey]  occurs, I get  empty brackets: [], not [1].


That works OK for me (I ran your 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 08:31, schrieb Taco Hoekwater:

On the criterium vs. criterion: this bad 'translation' is actually
a keyword left over from the Dutch interface. It has been this
way since 1996 I think. Actually changing it is not an option.
but perhaps an alias could be created. I have also created a
tracker item for that.

As internal command you can't change the name but a synonym
for the users is easy:

\setinterfacevariable{criterium}{criterion}

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-17 Thread Michael Saunders
Taco:

 Try

\setuppublications[alternative=num]

Thank you, but using that I get the same result:

\cite[myKey]  prints out empty brackets [], not [1].
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-17 Thread Michael Green
Michael Saunders odradek5 at gmail.com writes:

 Taco:
 
  Try
 
 \setuppublications[alternative=num]
 
 Thank you, but using that I get the same result:
 

Mk II gets the desired result; Mk IV does not.

Example:

\usemodule[bib]
\setuppublications[alternative=num,refcommand=num]
\setupbibtex[database=bibl-test]

\starttext

\subject{Text}

Sentence referring to Shue’s article. \cite[Shue:1978lg]

Sentence referring to Sussman’s article. \cite[Sussman:2005oz]

\subject{References}
\placepublications

\stoptext

bibl-test.tex

@article{Sussman:2005oz,
Author = {Sussman, David},
Journal = {Philosophy \ Public Affairs},
Number = {1},
Pages = {1--33},
Title = {What's Wrong with Torture?},
Volume = {33},
Year = {2005}}

@article{Shue:1978lg,
Author = {Shue, Henry},
Journal = {Philosophy \ Public Affairs},
Number = {2},
Pages = {124--143},
Title = {Torture},
Volume = {7},
Year = {1978}}

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic \cite[]

2010-04-17 Thread Michael Saunders
Michael Green:

 Mk II gets the desired result; Mk IV does not.

 Example:

 \usemodule[bib]
 \setuppublications[alternative=num,refcommand=num]
...

That's it then.  I'm using Mk IV.  Is there a proper way to use it?

By the way, the developers should know something:  in English, a
criterium is a kind of bicycle race.  The key should be called
criterion.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___