ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* References in MKIV and bib module
@ 2009-09-05  9:23 Mojca Miklavec
  2009-09-05 10:23 ` Jean Magnan de Bornier
  2009-09-05 21:59 ` Hans Hagen
  0 siblings, 2 replies; 10+ messages in thread
From: Mojca Miklavec @ 2009-09-05  9:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I have not been following the list too closely ... what is the status
of cross-references in MKIV? I don't seem to get any number printed.

\starttext
this is in figure \in[bla]
\placefigure[force][bla]{caption}{figure}
\stoptext

The bib module almost works (Hans and Taco - thanks a lot!). But
self-defined publication layouts seem to have problems or don't appear
in the list of references at least:

\newbibfield[conference]
\newbibfield[cobissid]

\setuppublicationlayout[conference]{%
	\insertartauthors{}{\unskip. }{}%
	\insertarttitle{\bgroup }{\egroup. }{}%
	\insertconference{\bgroup \it}{\egroup\insertday{, }{.
}{}\insertmonth{}{\ }{}\insertpubyear{}{}{}. }{}%
	\insertcobissid{[COBISS.SI-ID\ }{]}{}%
}

\startpublication
	[k=key,
	 t=conference,
	 y=2009,
	 s=,
	 u=,
	]
	\artauthor[]{Me}[M.]{}{Personally}
	\arttitle{Very important title}
	\conference{Very important conference in Bochum}
	\pubyear{2009}\month{March}\day{16-20}
	\cobissid{42}
\stoppublication

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-05  9:23 References in MKIV and bib module Mojca Miklavec
@ 2009-09-05 10:23 ` Jean Magnan de Bornier
  2009-09-08 22:07   ` Hans Hagen
  2009-09-05 21:59 ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Jean Magnan de Bornier @ 2009-09-05 10:23 UTC (permalink / raw)
  To: ntg-context

Le 05 septembre à 11:23:44 Mojca Miklavec <mojca.miklavec.lists@gmail.com> écrit notamment:

| The bib module almost works (Hans and Taco - thanks a lot!).

Here is how it works for me:

"texexec --xtx myfile": creates and populates myfile.bbl, and bib works ok

Then,

"context myfile": myfile.bbl is still there but is now **empty**!!
And no more references...

:-(

This is LuaTeX, Version beta-0.43.0-2009081914

-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-05  9:23 References in MKIV and bib module Mojca Miklavec
  2009-09-05 10:23 ` Jean Magnan de Bornier
@ 2009-09-05 21:59 ` Hans Hagen
  1 sibling, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2009-09-05 21:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mojca Miklavec wrote:

> The bib module almost works (Hans and Taco - thanks a lot!). But
> self-defined publication layouts seem to have problems or don't appear
> in the list of references at least:

\setuppublications
   [numbering=yes]

\newbibfield[conference]
\newbibfield[cobissid]

\setuppublicationlayout[conference]{%
     \insertartauthors{}{\unskip. }{}%
     \insertarttitle{\bgroup }{\egroup. }{}%
     \insertconference{\bgroup \it}{\egroup\insertday{, }{.
}{}\insertmonth{}{\ }{}\insertpubyear{}{}{}. }{}%
     \insertcobissid{[COBISS.SI-ID\ }{]}{}%
}

\startpublication[k=key,t=conference,y=2009,s=,u=]
  	\artauthor[]{Me}[M.]{}{Personally}
	\arttitle{Very important title}
	\conference{Very important conference in Bochum}
	\pubyear{2009}\month{March}\day{16-20}
	\cobissid{42}
\stoppublication

\starttext

\cite[key]

\placepublications[criterium=all]

\stoptext


shows a cite and a description

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-05 10:23 ` Jean Magnan de Bornier
@ 2009-09-08 22:07   ` Hans Hagen
  2009-09-09  7:00     ` Jean Magnan de Bornier
  2009-09-13 12:09     ` Thomas A. Schmitz
  0 siblings, 2 replies; 10+ messages in thread
From: Hans Hagen @ 2009-09-08 22:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jean Magnan de Bornier wrote:
> Le 05 septembre à 11:23:44 Mojca Miklavec <mojca.miklavec.lists@gmail.com> écrit notamment:
> 
> | The bib module almost works (Hans and Taco - thanks a lot!).
> 
> Here is how it works for me:
> 
> "texexec --xtx myfile": creates and populates myfile.bbl, and bib works ok
> 
> Then,
> 
> "context myfile": myfile.bbl is still there but is now **empty**!!
> And no more references...
> 
> :-(
> 
> This is LuaTeX, Version beta-0.43.0-2009081914

hard to test ... anyway, Thomas Schmitz is coordinating the bib tests so 
best coordinate with him

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-08 22:07   ` Hans Hagen
@ 2009-09-09  7:00     ` Jean Magnan de Bornier
  2009-09-13 12:09     ` Thomas A. Schmitz
  1 sibling, 0 replies; 10+ messages in thread
From: Jean Magnan de Bornier @ 2009-09-09  7:00 UTC (permalink / raw)
  To: ntg-context

Le 09 septembre à 00:07:50 Hans Hagen <pragma@wxs.nl> écrit notamment:

| Jean Magnan de Bornier wrote:
| > Le 05 septembre à 11:23:44 Mojca Miklavec <mojca.miklavec.lists@gmail.com> écrit notamment:
| >
| > | The bib module almost works (Hans and Taco - thanks a lot!).
| >
| > Here is how it works for me:
| >
| > "texexec --xtx myfile": creates and populates myfile.bbl, and bib works ok
| >
| > Then,
| >
| > "context myfile": myfile.bbl is still there but is now **empty**!!
| > And no more references...
| >
| > :-(
| >
| > This is LuaTeX, Version beta-0.43.0-2009081914
>
| hard to test ... anyway, Thomas Schmitz is coordinating the bib tests
| so best coordinate with him
>

Here are two small files:
bbaa.tex
...................
\usemodule[bib]

\setupbibtex [database=/home/jean/bbaa]
\setuppublications[sorttype=bbl]
\starttext

\cite[aj]

\completepublications[criterium=all]
\stoptext
....................

and bbaa.bib

....................
@article{aj,
   author    = {H. Averch and L. Johnson},
   title     = {Behavior of the Firm under Regulatory Constraint},
   journal   = {American Economic Review},
   year      = {1962},
   volume    = {52}
}
.....................

With texexec I get what is expected, not with context (producing an empty
bbl file).

With texexec I have these lines in the .blg file:

Database file #1: /home/jean/bbaa.bib
You've used 1 entry,
            2181 wiz_defined-function locations,
            499 strings with 3613 characters,
and the built_in function-call counts, 436 in all, are:  

Whereas with context:

I found no \citation commands---while reading file bbaa.aux
I found no \bibdata command---while reading file bbaa.aux
I found no \bibstyle command---while reading file bbaa.aux

tia,
-- 
Jean
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-08 22:07   ` Hans Hagen
  2009-09-09  7:00     ` Jean Magnan de Bornier
@ 2009-09-13 12:09     ` Thomas A. Schmitz
  2009-09-13 12:23       ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas A. Schmitz @ 2009-09-13 12:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Sep 9, 2009, at 12:07 AM, Hans Hagen wrote:

> hard to test ... anyway, Thomas Schmitz is coordinating the bib  
> tests so best coordinate with him
>
> Hans

OK, I'm back from my vacation and ready to roll. For coordinating  
tests with bib: bibliographies offer so many different possibilities  
and so many switches that it is impossible to write a complete test  
suit. I will set up a page on the wiki that will just offer a  
container for a bib file and a tex file. When users meet problems in  
their "real-life" work, I would ask them to boil them down to minimal  
examples and just add them to the page, which I hope to watch on a  
regular basis.

For the time being, however, I can't do any testing . I tried the  
latest beta and get this error with my minimal bib test files:

structure       : subsection @ level 4 : 0.0.0.1 -> Bibliography
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua: 
275: attempt to call global 'concat' (a nil value)
stack traceback:
	...text/tex/texmf-context/tex/context/base/strc-lst.lua:275: in  
function <...text/tex/texmf-context/tex/context/base/strc-lst.lua:138>
	(tail call): ?
	...text/tex/texmf-context/tex/context/base/strc-lst.lua:323: in  
function 'analyze'
	<main ctx instance>:1: in main chunk.
\analysestructurelist ....analyze("#1","#2","#3")}

\dodeterminelistcharacteristics ...ter \c!number }
                                                   \xdef  
\utilitylistlength {...
<to be read again>
                    \initializepubslist
\dodoplacepublications ...ubs]\initializepubslist
                                                   \doifnot  
{\namedlistparame...
l.36 \placepublications[criterium=cite]

Thomas
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-13 12:09     ` Thomas A. Schmitz
@ 2009-09-13 12:23       ` Hans Hagen
  2009-09-13 17:43         ` Thomas A. Schmitz
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2009-09-13 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:
> 
> On Sep 9, 2009, at 12:07 AM, Hans Hagen wrote:
> 
>> hard to test ... anyway, Thomas Schmitz is coordinating the bib tests 
>> so best coordinate with him
>>
>> Hans
> 
> OK, I'm back from my vacation and ready to roll. For coordinating tests 
> with bib: bibliographies offer so many different possibilities and so 
> many switches that it is impossible to write a complete test suit. I 
> will set up a page on the wiki that will just offer a container for a 
> bib file and a tex file. When users meet problems in their "real-life" 
> work, I would ask them to boil them down to minimal examples and just 
> add them to the page, which I hope to watch on a regular basis.
> 
> For the time being, however, I can't do any testing . I tried the latest 
> beta and get this error with my minimal bib test files:

line 16 strc-lst.lua:

local concat, insert, remove = table.concat, table.insert, table.remove

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-13 12:23       ` Hans Hagen
@ 2009-09-13 17:43         ` Thomas A. Schmitz
  2009-09-13 19:34           ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas A. Schmitz @ 2009-09-13 17:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Sep 13, 2009, at 2:23 PM, Hans Hagen wrote:

> line 16 strc-lst.lua:
>
> local concat, insert, remove = table.concat, table.insert,  
> table.remove

Thanks, that helped. One new problem (this used to work three weeks  
ago): the criterium=cite key is not applied. Example:

\setuppublicationlist[samplesize={{{The}}24},totalnumber=2]

\startpublication[k=silktragedytragic,t=book,
a={{Silk}},y=1996,
n=1855,s=Sil96]
\editor[]{Michael~S.}[M.~S.]{}{Silk}
\pubyear{1996}
\title{Tragedy and the Tragic. Greek Theatre and Beyond}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication

\startpublication[k=depewobbinkmatrices,t=book,
a={{Depew},{Obbink}},y=2000,
n=2445,s=DO00]
\editor[]{Mary}[M.]{}{Depew}
\editor[]{Dirk~D.}[D.~D.]{}{Obbink}
\pubyear{2000}
\title{Matrices of Genre: Authors, Canons, and Society}
\series{Center for Hellenic studies colloquia}
\volume{4}
\city{Cambridge (Mass.)}
\pubname{Harvard UP}
\stoppublication

\setuppublications[state=start]

\starttext

\section{one}
\nocite[silktragedytragic]
\placepublications[criterium=cite]

\section{two}
\nocite[depewobbinkmatrices]
\placepublications[criterium=cite,option=continue]

\stoptext

All best

Thomas
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-13 17:43         ` Thomas A. Schmitz
@ 2009-09-13 19:34           ` Hans Hagen
  2009-09-13 20:50             ` Thomas A. Schmitz
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2009-09-13 19:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:
> 
> On Sep 13, 2009, at 2:23 PM, Hans Hagen wrote:
> 
>> line 16 strc-lst.lua:
>>
>> local concat, insert, remove = table.concat, table.insert, table.remove
> 
> Thanks, that helped. One new problem (this used to work three weeks 
> ago): the criterium=cite key is not applied. Example:

ok, revert ... (patch to criterum=here)


\def\typesetpubslist
   {\dobeginoflist
    \the\initializebibdefinitions
    \edef\currentlist{pubs}%
 
\doif{\listparameter\c!criterium}\v!cite{\setuplist[pubs][\c!criterium=\v!here]}%
    \ctxlua{bibtex.hacks.reset(\number\bibtexoncemode)}%
 
\placestructurelist{pubs}{\listparameter\c!criterium}{\listparameter\c!number}% 
only collects
    \ctxlua{bibtex.hacks.flush("\@@pbsorttype")}%
    \doendoflist}



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: References in MKIV and bib module
  2009-09-13 19:34           ` Hans Hagen
@ 2009-09-13 20:50             ` Thomas A. Schmitz
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas A. Schmitz @ 2009-09-13 20:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Sep 13, 2009, at 9:34 PM, Hans Hagen wrote:

> ok, revert ... (patch to criterum=here)
>
>
> \def\typesetpubslist
>  {\dobeginoflist
>   \the\initializebibdefinitions
>   \edef\currentlist{pubs}%
> \doif{\listparameter\c!criterium}\v!cite{\setuplist[pubs][\c! 
> criterium=\v!here]}%
>   \ctxlua{bibtex.hacks.reset(\number\bibtexoncemode)}%
> \placestructurelist{pubs}{\listparameter\c!criterium}{\listparameter 
> \c!number}% only collects
>   \ctxlua{bibtex.hacks.flush("\@@pbsorttype")}%
>   \doendoflist}

Excellent, works again! Thanks, and I'll look into other things  
tomorrow.

Thomas

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-13 20:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-05  9:23 References in MKIV and bib module Mojca Miklavec
2009-09-05 10:23 ` Jean Magnan de Bornier
2009-09-08 22:07   ` Hans Hagen
2009-09-09  7:00     ` Jean Magnan de Bornier
2009-09-13 12:09     ` Thomas A. Schmitz
2009-09-13 12:23       ` Hans Hagen
2009-09-13 17:43         ` Thomas A. Schmitz
2009-09-13 19:34           ` Hans Hagen
2009-09-13 20:50             ` Thomas A. Schmitz
2009-09-05 21:59 ` Hans Hagen

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).