Re: [NTG-context] missing reference of items

2015-12-05 Thread Wolfgang Schuster

Henning Hraban Ramm 
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
___
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
___

Re: [NTG-context] missing reference of items

2015-12-05 Thread Henning Hraban Ramm
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
___
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
___

Re: [NTG-context] missing reference of items

2015-12-05 Thread Henning Hraban Ramm

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)

___
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
___

[NTG-context] missing reference of items

2015-12-04 Thread Henning Hraban Ramm
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
___

Re: [NTG-context] missing reference of items

2015-12-04 Thread Henning Hraban Ramm
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)

___
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
___

Re: [NTG-context] missing reference of items

2015-12-04 Thread Wolfgang Schuster

Henning Hraban Ramm 
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
___
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
___

Re: [NTG-context] missing reference of items

2015-12-04 Thread Wolfgang Schuster

Henning Hraban Ramm 
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
___
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
___

Re: [NTG-context] missing reference of items

2015-12-04 Thread 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.

Alan

On Fri, 4 Dec 2015 18:23:07 +0100
Wolfgang Schuster  wrote:

> > Henning Hraban Ramm 
> > 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.bras...@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
___