* Enclosing the year in round brackets in online citation.
@ 2013-05-31 14:53 Thomas Friedrich
2013-05-31 15:24 ` Thomas A. Schmitz
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Friedrich @ 2013-05-31 14:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
A question to the \cite command. Following,
http://wiki.contextgarden.net/Bibliography
I defined
\def\onlinecite{\cite[left=,right=]}
so that I can cite bib-entries online in the text. However, I need to
enclose the year of a citation in round-brackets.
At the moment, I get: Jon Doe, 2013, has shown that...
But I need: Jon Doe (2013) has shown that..., as this is required.
I couldn't find any reference what I can do with \cite and what
possibilities there are. Any idea?
Thank you for your help.
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Enclosing the year in round brackets in online citation.
2013-05-31 14:53 Enclosing the year in round brackets in online citation Thomas Friedrich
@ 2013-05-31 15:24 ` Thomas A. Schmitz
0 siblings, 0 replies; 2+ messages in thread
From: Thomas A. Schmitz @ 2013-05-31 15:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 05/31/2013 04:53 PM, Thomas Friedrich wrote:
> I couldn't find any reference what I can do with \cite and what
> possibilities there are. Any idea?
>
> Thank you for your help.
This seems to work, though it looks bizarre to me:
\def\onlinecite{\cite[inbetween={ },right={)}]}
\setuppublications
[refcommand=authoryear]
For future questions: please do not send code snippets, but minimal
examples which can be compiled. And the wiki page on bibliographies has
a reference to the bibmod manual, which is where I found information on
this topic. Have you looked at it?
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-31 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-31 14:53 Enclosing the year in round brackets in online citation Thomas Friedrich
2013-05-31 15:24 ` Thomas A. Schmitz
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).