Re: [NTG-context] \cite command (bib-module)
Message: 4 Date: Thu, 11 Sep 2008 12:35:59 +0200 From: "Thomas A. Schmitz"
Subject: Re: [NTG-context] use of the \cite command (bib-module) To: mailing list for ConTeXt users Message-ID: <7C5C18CF-9FF7-45BA-B699-8BF005D3F0B2@uni-bonn.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On Sep 11, 2008, at 12:19 PM, Martin Hoher wrote:
Hello,
concerning the bib-module and the \cite command I've got two questions:
(1) The output in the text of the document should look like this: Goldstein (2003:95). The name of the author should be located on the outside of the brackets.
Goldstein refers to the name of the author, 2003 is the year of publication and 95 is the relevant page number. My approach until now: \cite[extras={:95}][G:2003] It generates the following output: (Goldstein 2003:95)
\setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ (}, left={}, right={)}]
(chapter 2.3 of the bib manual)
(2) The output in the text should look like this: (vgl. Goldstein 2003:95) My intention is to place the expression "vgl." in front of the authorname and inside of the brackets.
\setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ (vgl. }, left={}, right={)}]
HTH
Thomas
Thank you for your answer. The first example works. The result is: "Goldstein (2003)" but unfortunately it is impossible to combine it with the [extras={:95}] option to get the page number behind the citation. If you type \cite [authoryear][extras={:95}] it won't work. Although I've tried it with the [authoryear,page] nothing works. The result of the second example is "Goldstein (vgl. 2003)". I've tried to use the left={} option instead, but nothing changed. \setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={}, left={(vgl. }, right={)}] still leads to the result Goldstein (vgl. 2003) when I type in the command \cite [authoryear][G:2003]. It seems to be impossible to place something (like "vgl.") in front of the name of the author and inside of the brackets like (vgl. Goldstein 2003:95) I couldn't find anything specific about these problems in the bib-manual. Perhaps you or someone else can help me? Regards Martin
On Sep 11, 2008, at 5:01 PM, Martin Hoher wrote:
Thank you for your answer. The first example works.
The result is: "Goldstein (2003)" but unfortunately it is impossible to combine it with the [extras={:95}] option to get the page number behind the citation. If you type \cite [authoryear][extras={:95}] it won't work. Although I've tried it with the [authoryear,page] nothing works. The result of the second example is "Goldstein (vgl. 2003)". I've tried to use the left={} option instead, but nothing changed. \setupcite [authoryear] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={}, left={(vgl. }, right={)}]
still leads to the result Goldstein (vgl. 2003) when I type in the command \cite [authoryear][G:2003]. It seems to be impossible to place something (like "vgl.") in front of the name of the author and inside of the brackets like (vgl. Goldstein 2003:95)
Sorry, in the second case, you'll need the option "authoryears": \setupcite [authoryears] [pubsep={, }, lastpubsep={ und }, compress=yes, inbetween={ }, left={(vgl. }, right={)}] I had a quick look at the source, and it doesn't look like you can have three [] arguments after \cite. So you can't have \cite[STYLE] [EXTRAS][KEY], you must use the \setuppublications command and set the default. If you want to have a different citation style in the footnotes and in the main text, you will probably want to have a \setuppublications[refcommand=authoryears] in the setup of your footnotes (see p. 101 of cont-eni.pdf). Thomas
Thomas A. Schmitz wrote:
I had a quick look at the source, and it doesn't look like you can have three [] arguments after \cite. So you can't have \cite[STYLE] [EXTRAS][KEY],
But you can do: \cite[KEY][alternative=STYLE,extras=EXTRAS] Best wishes, Taco
On Sep 12, 2008, at 8:25 AM, Taco Hoekwater wrote:
Thomas A. Schmitz wrote:
I had a quick look at the source, and it doesn't look like you can have three [] arguments after \cite. So you can't have \cite[STYLE] [EXTRAS][KEY],
But you can do:
\cite[KEY][alternative=STYLE,extras=EXTRAS]
Best wishes, Taco
Ah, I should have taken a longer look! Very elegant, thanks Taco. But maybe hooking the \setupcite setup into the \setufootnotes "before" option is more efficient than adding the style manually every time. All best Thomas
On Fri, 12 Sep 2008, Taco Hoekwater wrote:
Thomas A. Schmitz wrote:
I had a quick look at the source, and it doesn't look like you can have three [] arguments after \cite. So you can't have \cite[STYLE] [EXTRAS][KEY],
But you can do:
\cite[KEY][alternative=STYLE,extras=EXTRAS]
Shouldn't that be \cite[alternative=STYLE, extras=EXTRAS][KEY] Aditya
Aditya Mahajan wrote:
On Fri, 12 Sep 2008, Taco Hoekwater wrote:
Thomas A. Schmitz wrote:
I had a quick look at the source, and it doesn't look like you can have three [] arguments after \cite. So you can't have \cite[STYLE] [EXTRAS][KEY], But you can do:
\cite[KEY][alternative=STYLE,extras=EXTRAS]
Shouldn't that be
\cite[alternative=STYLE, extras=EXTRAS][KEY]
The syntax that works is the correct one :-) Best wishes, Taco
participants (4)
-
Aditya Mahajan
-
Martin Hoher
-
Taco Hoekwater
-
Thomas A. Schmitz