Hi wizards (I’m trying to adapt http://wiki.contextgarden.net/Manual_Bibliography, but that doesn’t really matter.) \item is documented to take a reference: \item[myref] But this reference is always unknown if I try to access it, see example: \starttext Siehe \in[eins] oder so. \startitemize \item[eins] Der erste Eintrag \item[zwei] Der zweite Eintrag \stopitemize \stoptext My error or ConTeXt bug? If that works, I’d like to setup something like: \definereferenceformat[cite][left={[},right={]},command=\in] I.e. \cite[Ramm 2015] should give … [Ramm 2015] … and that reference being a link to the bibliography item. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Henning Hraban Ramm mailto:texml@fiee.net 4. Dezember 2015 um 12:57 Hi wizards
(I’m trying to adapt http://wiki.contextgarden.net/Manual_Bibliography, but that doesn’t really matter.)
\item is documented to take a reference: \item[myref] But this reference is always unknown if I try to access it, see example:
\starttext
Siehe \in[eins] oder so.
\startitemize
\item[eins] Der erste Eintrag
\item[zwei] Der zweite Eintrag
\stopitemize
\stoptext
My error or ConTeXt bug? You can use the \in command only for numbered items (e.g. \startitemize[n]).
Wolfgang
Am 2015-12-04 um 19:58 schrieb Wolfgang Schuster
\item is documented to take a reference: \item[myref] But this reference is always unknown if I try to access it, see example: Siehe \in[eins] oder so. My error or ConTeXt bug? You can use the \in command only for numbered items (e.g. \startitemize[n]).
The same seems to be true for \at and \about. Then how must I setup my "cite" to get the reference label of an item? In my "manual bibliography" (as in http://wiki.contextgarden.net/Manual_Bibliography), I have \definereferenceformat[cite][left={[},right={]},command=\at] \startbibitem[Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopbibitem And in my text I want to use \cite[Ramm 2015] to get a link to the entry shown as [Ramm 2015]. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Henning Hraban Ramm mailto:texml@fiee.net 4. Dezember 2015 um 16:34
The same seems to be true for \at and \about. Then how must I setup my "cite" to get the reference label of an item?
In my "manual bibliography" (as in http://wiki.contextgarden.net/Manual_Bibliography), I have
\definereferenceformat[cite][left={[},right={]},command=\at] \startbibitem[Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopbibitem
And in my text I want to use \cite[Ramm 2015] to get a link to the entry shown as [Ramm 2015]. You can choose between a itemgroup where you have numbered entries:
\defineitemgroup[bibliography] \setupitemgroup[bibliography][each][n][left={[},right={]},stopper=] \definereferenceformat [bibnumber] [type=number,left={[},right={]}] \definereferenceformat [bibpage] [type=page] \starttext \startitemgroup[bibliography] \startitem[Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopitem \stopitemgroup See \bibnumber[Ramm 2015] at page \bibpage[Ramm 2015]. \stoptext or you use descriptions: \definedescription[bibitem][title=yes] \definereferenceformat [bibtitle] [type=title,left={[},right={]}] \definereferenceformat [bibpage] [type=page] \starttext \startbibitem[reference=Ramm 2015,title=Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopbibitem See \bibtitle[Ramm 2015] at page \bibpage[Ramm 2015]. \stoptext Wolfgang
Or you can use the bibliography module to manage a bibliographic
dataset. The rendering of the list is rather configurable. This appears
to be a bit more complicated than manually using itemgroups or
descriptions, but really isn't if one has few categories of references,
say only books, as one need not create a complete custom specification.
Alan
On Fri, 4 Dec 2015 18:23:07 +0100
Wolfgang Schuster
Henning Hraban Ramm mailto:texml@fiee.net 4. Dezember 2015 um 16:34
The same seems to be true for \at and \about. Then how must I setup my "cite" to get the reference label of an item?
In my "manual bibliography" (as in http://wiki.contextgarden.net/Manual_Bibliography), I have
\definereferenceformat[cite][left={[},right={]},command=\at] \startbibitem[Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopbibitem
And in my text I want to use \cite[Ramm 2015] to get a link to the entry shown as [Ramm 2015]. You can choose between a itemgroup where you have numbered entries:
\defineitemgroup[bibliography]
\setupitemgroup[bibliography][each][n][left={[},right={]},stopper=]
\definereferenceformat [bibnumber] [type=number,left={[},right={]}] \definereferenceformat [bibpage] [type=page]
\starttext
\startitemgroup[bibliography] \startitem[Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopitem \stopitemgroup
See \bibnumber[Ramm 2015] at page \bibpage[Ramm 2015].
\stoptext
or you use descriptions:
\definedescription[bibitem][title=yes]
\definereferenceformat [bibtitle] [type=title,left={[},right={]}] \definereferenceformat [bibpage] [type=page]
\starttext
\startbibitem[reference=Ramm 2015,title=Ramm 2015] Ramm, Hraban: The Unsolved Question. Bishkek 2015. \stopbibitem
See \bibtitle[Ramm 2015] at page \bibpage[Ramm 2015].
\stoptext
Wolfgang
-- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS UMR 3680 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.braslau@cea.fr
Am 2015-12-05 um 05:03 schrieb Alan BRASLAU
Or you can use the bibliography module to manage a bibliographic dataset. The rendering of the list is rather configurable. This appears to be a bit more complicated than manually using itemgroups or descriptions, but really isn't if one has few categories of references, say only books, as one need not create a complete custom specification.
Thank you, but in the given context, setting up a real bibliography database would be too much. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Am 2015-12-04 um 23:23 schrieb Wolfgang Schuster
or you use descriptions:
\definedescription[bibitem][title=yes]
\definereferenceformat [bibtitle] [type=title,left={[},right={]}] \definereferenceformat [bibpage] [type=page]
Thank you very much - this is, what I wanted to achieve: \def\emptyBibItemHead#1{} \def\dostartbibitem[#1]{\startBibItem[title={#1},reference={#1}]} \def\startbibitem{\dosingleempty\dostartbibitem} \def\stopbibitem{\stopBibItem} \definedescription[BibItem][ width=broad,margin=0pt, indenting=no,indentnext=no, headcommand=\emptyBibItemHead,] \definereferenceformat [cite] [type=title,left={[},right={]}] %\definereferenceformat [bibpage] [type=page] \starttext \title{Text} As shown in \cite[Ramm 2015], the question is now solved. \title{Bibliography} \startbitem[Ramm 2015] Ramm, Hraban: The Solved Question. Bishkek 2015. \stopbibitem \stoptext
Henning Hraban Ramm mailto:hraban@fiee.net 5. Dezember 2015 um 13:20
Thank you very much - this is, what I wanted to achieve:
\def\emptyBibItemHead#1{} \def\dostartbibitem[#1]{\startBibItem[title={#1},reference={#1}]} \def\startbibitem{\dosingleempty\dostartbibitem} \def\stopbibitem{\stopBibItem}
\definedescription[BibItem][ width=broad,margin=0pt, indenting=no,indentnext=no, headcommand=\emptyBibItemHead,] headcommand=\gobbleoneargument,
Wolfgang
participants (4)
-
Alan BRASLAU
-
Henning Hraban Ramm
-
Henning Hraban Ramm
-
Wolfgang Schuster