Re: [NTG-context] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-11 Thread Alan BRASLAU
On Fri, 10 Jul 2015 11:29:17 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 3) I would like to alter citation style from [1] to MA2004; I
 guess this could be done by \setuppublications[refcommand=author]...

MKIV:

\cite[short][bibtexkey]

or, to make this the default cite style:

\setupbtx[alternative=short]

which should give MA04 (the short style is first two initials of the
author name or the first initials of multiple author names followed by
a two digit year)

You can modify the style using

\setupbtx[default:cite:short][left=,right=]

to get rid of the brackets.

 4) Finally, in list of publications, I'd rather enumerate
 publications in [1] style rather than simple 1, i.e. enclose the
 publication number into [].

Similarly,

\setupbtx[default:list:numbering][left={[},right={]}]

to add brackets to the list.


Alan
___
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] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Alan,

thanks for the idea. Now I have:

 Bib6.mkiv, UTF-8
\startbuffer[biblio]
@article{Angell,
   Author = {Marcia Angell},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
@article{Me,
   Author = {Štěpán Čech},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
@article{101,
   Author = {Štěpán Čech},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
\stopbuffer

%%

\usebtxdataset[biblio.buffer]

\if+- % (1)
   \def\bracketed#1{\hbox to 20pt{\hfill [#1]}}

   \setuppublications
 [sorttype=bbl,
  autohang=no,
  refcommand=num,
  criterium=all,
  numbering=bib,
  %numbercommand=\bracketed,
 ]
\fi

%%

\starttext
   Hello \cite[Angell] \cite[Me] \cite[101]!

   \hairline
   \placelistofpublications[criterium=all]
   \hairline
   %\placepublications[criterium=all] % (2)
\stoptext


Some more questions:

1) Is \placepublications deprecated?

I'm getting Undefined control sequence when I uncomment (2);
even though \placepublications is widely cited on wiki (e.g. 
http://wiki.contextgarden.net/Bibliography_mkiv ) and is also mentioned in 
bibmod-doc.pdf 
(http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf ).

2) When I turn (1) on (\if+- - \if++), the Ctx doesn't crash but citations are 
broken and no list of pubs is generated.

I copied \setuppublications from 
http://wiki.contextgarden.net/Theory_book_style ;
strange for me that also empty \setuppublications (i.e.

   \setuppublications
 [%sorttype=bbl,
  %autohang=no,
  %refcommand=num,
  %criterium=all,
  %numbering=bib,
  %numbercommand=\bracketed,
 ]

) produces the same no-result.

3) I would like to alter citation style from [1] to MA2004; I guess this could be 
done by \setuppublications[refcommand=author] (see bibmod-doc.pdf, art. 2.1, pg. 2);
but - as mentioned at 2) - it doesn't work.

4) Finally, in list of publications, I'd rather enumerate publications in [1] style 
rather than simple 1, i.e. enclose the publication number into [].

In http://wiki.contextgarden.net/Theory_book_style , 
\setuppublications[numbercommand=\bracketed] provided that, but again, it 
doesn't work here due to 2).

So, how to overcome all these obstacles?

Best regards,

Lukas


On Thu, 09 Jul 2015 20:30:27 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


On Wed, 8 Jul 2015 22:21:36 +0200
Lukáš Procházka l...@pontex.cz wrote:


- have a DB of publications (preferably in standard ConTeXt
space, not in a .bib file)


MKiv bibliographies:

\startbuffer[biblio]
entries in .bib format
\stopbuffer

\usebtxdataset[biblio.buffer]

\cite[bibkey]

\placelistofpublications



Alan




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bib6.log
Description: Binary data


Bib6.mkiv
Description: Binary data


Bib6.pdf
Description: Adobe PDF document
___
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] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Alan BRASLAU
On Fri, 10 Jul 2015 08:47:35 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 I'm getting Undefined control sequence when I uncomment (2);
 even though \placepublications is widely cited on wiki (e.g.
 http://wiki.contextgarden.net/Bibliography_mkiv ) and is also
 mentioned in bibmod-doc.pdf
 (http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf
 ).

Do not mix-up the bibmod (mkii, also adapted for mkiv)
with the mkiv bibliography dataset system (which is completely new).

I do not know anything about the wiki on this subject but it must be
completely obsolete as the development of this new system has been very
active over the past year.

Hans and I are (still) working on the documentation that has been
promised.

Alan
___
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] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Fri, 10 Jul 2015 10:29:52 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


On Fri, 10 Jul 2015 08:47:35 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:


I'm getting Undefined control sequence when I uncomment (2);
even though \placepublications is widely cited on wiki (e.g.
http://wiki.contextgarden.net/Bibliography_mkiv ) and is also
mentioned in bibmod-doc.pdf
(http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf
).


Do not mix-up the bibmod (mkii, also adapted for mkiv)
with the mkiv bibliography dataset system (which is completely new).


OK. I studied MkIV related part on bibliography on wiki, probably too archaic.


I do not know anything about the wiki on this subject but it must be
completely obsolete as the development of this new system has been very
active over the past year.

Hans and I are (still) working on the documentation that has been
promised.


Great.

Back to my questions:

3) I would like to alter citation style from [1] to MA2004; I guess this could be 
done by \setuppublications[refcommand=author]...

4) Finally, in list of publications, I'd rather enumerate publications in [1] style 
rather than simple 1, i.e. enclose the publication number into [].

Are / will be points 3) a 4) achievable anyhow - now, in near future, any day?

Thank you anyway.

Best regards,

Lukas


Alan




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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