ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bib module: \cite with page numbers
@ 2005-02-17  4:35 David Munger
  2005-02-17  9:14 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: David Munger @ 2005-02-17  4:35 UTC (permalink / raw)


Hello,

Is it possible to get page numbers (or a chapter number) displayed in a
citation, e.g.

\cite[authoryears]{pp. 163-170}[davidson2001]

and

see \cite[authoryear]{chap. 3}[davidson2001]

would format as:

(Davidson, 2001, pp. 163-170)

and

see Davidson (2001) chap. 3


Thanks for any clue,

David

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

* Re: bib module: \cite with page numbers
  2005-02-17  4:35 bib module: \cite with page numbers David Munger
@ 2005-02-17  9:14 ` Taco Hoekwater
  2005-02-18 18:16   ` David Munger
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2005-02-17  9:14 UTC (permalink / raw)




David Munger wrote:
> Hello,
> 
> Is it possible to get page numbers (or a chapter number) displayed in a
> citation, e.g.

No, but it is fairly simple to fake using the low-level
\cite commands (untested):

   \setupcite[author,year][left=,right=] % disable braces
   \def\citewithpages[#1]#2{% new command
     (\cite[author][#1], \cite[year][#1], #2)%
   }

   \citewithpages[davidson2001]{pp. 163-170}


Greetings, Taco

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

* Re: bib module: \cite with page numbers
  2005-02-17  9:14 ` Taco Hoekwater
@ 2005-02-18 18:16   ` David Munger
  0 siblings, 0 replies; 3+ messages in thread
From: David Munger @ 2005-02-18 18:16 UTC (permalink / raw)


It works pretty well, thanks a lot!

David

Taco Hoekwater wrote :
> 
>    \setupcite[author,year][left=,right=] % disable braces
>    \def\citewithpages[#1]#2{% new command
>      (\cite[author][#1], \cite[year][#1], #2)%
>    }
> 
>    \citewithpages[davidson2001]{pp. 163-170}

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

end of thread, other threads:[~2005-02-18 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-17  4:35 bib module: \cite with page numbers David Munger
2005-02-17  9:14 ` Taco Hoekwater
2005-02-18 18:16   ` David Munger

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