* missing reference of items
@ 2015-12-04 11:57 Henning Hraban Ramm
2015-12-04 13:58 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2015-12-04 11:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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)
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-04 11:57 missing reference of items Henning Hraban Ramm
@ 2015-12-04 13:58 ` Wolfgang Schuster
2015-12-04 15:34 ` Henning Hraban Ramm
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2015-12-04 13:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 652 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 1759 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-04 13:58 ` Wolfgang Schuster
@ 2015-12-04 15:34 ` Henning Hraban Ramm
2015-12-04 17:23 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2015-12-04 15:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 2015-12-04 um 19:58 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:
>> \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)
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-04 15:34 ` Henning Hraban Ramm
@ 2015-12-04 17:23 ` Wolfgang Schuster
2015-12-04 23:03 ` Alan BRASLAU
2015-12-05 12:20 ` Henning Hraban Ramm
0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2015-12-04 17:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1454 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 2771 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-04 17:23 ` Wolfgang Schuster
@ 2015-12-04 23:03 ` Alan BRASLAU
2015-12-05 12:22 ` Henning Hraban Ramm
2015-12-05 12:20 ` Henning Hraban Ramm
1 sibling, 1 reply; 8+ messages in thread
From: Alan BRASLAU @ 2015-12-04 23:03 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
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 <schuster.wolfgang@gmail.com> wrote:
> > 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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-04 17:23 ` Wolfgang Schuster
2015-12-04 23:03 ` Alan BRASLAU
@ 2015-12-05 12:20 ` Henning Hraban Ramm
2015-12-05 14:22 ` Wolfgang Schuster
1 sibling, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2015-12-05 12:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 2015-12-04 um 23:23 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:
> 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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-04 23:03 ` Alan BRASLAU
@ 2015-12-05 12:22 ` Henning Hraban Ramm
0 siblings, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm @ 2015-12-05 12:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 2015-12-05 um 05:03 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
> 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)
___________________________________________________________________________________
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] 8+ messages in thread
* Re: missing reference of items
2015-12-05 12:20 ` Henning Hraban Ramm
@ 2015-12-05 14:22 ` Wolfgang Schuster
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2015-12-05 14:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 485 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 1505 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2015-12-05 14:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-04 11:57 missing reference of items Henning Hraban Ramm
2015-12-04 13:58 ` Wolfgang Schuster
2015-12-04 15:34 ` Henning Hraban Ramm
2015-12-04 17:23 ` Wolfgang Schuster
2015-12-04 23:03 ` Alan BRASLAU
2015-12-05 12:22 ` Henning Hraban Ramm
2015-12-05 12:20 ` Henning Hraban Ramm
2015-12-05 14:22 ` Wolfgang Schuster
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).