Hi everybody. I have two files: "texfile.tex" and "references.bib". They are attached and also copied in the bottom of the email. There is one citation. The **problem** is: the citation appears correctly in the body of the text in the PDF, but the References list is empty. However, if one changes line 14 \subsection{Top trading procedures} to \subsubject{Top trading procedures} then everything works: the citation appears correctly *and* the reference appears in the References list. I don't know why. Any ideas? Here are the files: \\---------- texfile.tex ---------- \usemodule[bib] \setupbibtex[database={./references}] \setuppublications[ refcommand=authoryear, sort=auhor] \starttext Let $X = \{h_{1}, \ldots, h_{n} \}$ and $D$ be all the unitary subsets of $X$; $N = \{1, \ldots, n\}$ and preferences given by linear orders (complete and strict rankings) over $D$. This is the housing market introduced by \cite{shapley_cores_1974}. \section{Procedures} \subsection{Top trading procedures} % \subsubject{Top trading procedures} % If we use "subsection" instead of "subsubject", the References disappear. In the classic housing assignment problem, Gale's {\em top trade cycles} (TTC) algorithm yields an efficient allocation that is in the core. \completepublications \stoptext ---------------------------------// And the BibTeX file: \\---------- references.bib ---------- @article{shapley_cores_1974, title = {On cores and indivisibility}, volume = {1}, journal = {Journal of Mathematical Economics}, author = {Lloyd Shapley and Herbert Scarf}, month = mar, year = {1974}, pages = {23--37} } ------------------------------------// -- Guilherme P. de Freitas http://www.gpfreitas.com
Guilherme P. de Freitas wrote:
then everything works: the citation appears correctly *and* the reference appears in the References list. I don't know why. Any ideas?
Yes. Change this line
\completepublications
to \completepublications[criterium=all] Best wishes, Taco
Hi, Taco
Yes, that worked!
I tried to find documentation about \completepublications on the wiki
and on the documents at articles.contextgarden.net (looking at titles,
and searching the main Pragma-ADE manuals), but I didn't find any.
Actually, it is not the first time that I can't find the desired
documentation. Where can I find it? Is it somehwere in the sources?
Best,
Guilherme
On Sat, Nov 29, 2008 at 2:47 PM, Taco Hoekwater
Guilherme P. de Freitas wrote:
then everything works: the citation appears correctly *and* the reference appears in the References list. I don't know why. Any ideas?
Yes. Change this line
\completepublications
to
\completepublications[criterium=all]
Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Guilherme P. de Freitas http://www.gpfreitas.com
Guilherme P. de Freitas wrote:
Hi, Taco
Yes, that worked!
I tried to find documentation about \completepublications on the wiki and on the documents at articles.contextgarden.net (looking at titles, and searching the main Pragma-ADE manuals), but I didn't find any. Actually, it is not the first time that I can't find the desired documentation. Where can I find it? Is it somehwere in the sources?
The bibliography module has its own manual. There is a link here: http://modules.contextgarden.net/bib but it is probably on your harddisk already as <context>/doc/context/bib/bibmod-doc.pdf Best wishes, Taco
Hi Taco, 1. How do I get coloured citations? E.g., \cite[jacky:critial] should produce a coloured link. 2. If is possible to get the list of pages an item was cited at? I'm sure LaTeX could do this. E.g., Jacky, J., 1995. “Specifying a safety-critical control system in z”, in IEEE Trans. Softw. Eng., Volume 21, Number 2, pages 99–106. Page(s) 1,2,...n. Thanks Taco Hoekwater wrote:
Guilherme P. de Freitas wrote:
Hi, Taco
Yes, that worked!
I tried to find documentation about \completepublications on the wiki and on the documents at articles.contextgarden.net (looking at titles, and searching the main Pragma-ADE manuals), but I didn't find any. Actually, it is not the first time that I can't find the desired documentation. Where can I find it? Is it somehwere in the sources?
The bibliography module has its own manual. There is a link here:
http://modules.contextgarden.net/bib
but it is probably on your harddisk already as
<context>/doc/context/bib/bibmod-doc.pdf
Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________
1. Using \completepublications[criterium=all] produces the error message; title : - References ! Missing } inserted. <inserted text> } <to be read again> \dostopattributes <argument> ...cation {shapley_cores_1974}\strut }} \egroup \ifdim \wd 4=\zero... \secondoftwoarguments #1#2->#2 \dosomelistelement ...hss \dostoplistattributes }} \endgraf \nointerlineskip ... \dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6} \global \utilitydonetrue ... l.38 \completepublications[criterium=all] ? I was using ConTeXt ver: 2008.10.31 13:58 MKIV fmt: 2008.11.2 int: english/english then I update to ConTeXt ver: 2008.11.30 14:39 MKIV fmt: 2008.12.1 int: english/english But the problem still persists. 2. Compiling with the following using \completepublications and \subsubject{Top trading procedures} or \subsection{Top trading procedures}; context testfile.tex It comes out as; This is the housing market introduced by Xxxxxxxxxx (0000). and the 'References' is empty. Instead of; This is the housing market introduced by Shapley and Scarf (1974). Why? 3. Taco, could you please include a minimal example of using bibtex in your bibmod-doc.pdf file please, much like what Guilherme has done. It'll probably be a good idea to include about 3 references. 4. Why is the [criterium=all] parameter needed? %%% testfile.tex %%% % engine=luatex \enableregime [utf-8] \mainlanguage[uk] \language[uk] \usemodule[bib] \setupbibtex[database={./references}] \setuppublications[refcommand=authoryear,sorttype=cite]%, sort=author] \starttext \cite{shapley_cores_1974} \completepublications[criterium=all] \stoptext %%% references.bib - same as Guilherme's %%% ---------- references.bib ---------- @article{shapley_cores_1974, title = {On cores and indivisibility}, volume = {1}, journal = {Journal of Mathematical Economics}, author = {Lloyd Shapley and Herbert Scarf}, month = mar, year = {1974}, pages = {23--37} } ------------------------------------ Taco Hoekwater wrote:
Guilherme P. de Freitas wrote:
then everything works: the citation appears correctly *and* the reference appears in the References list. I don't know why. Any ideas?
Yes. Change this line
\completepublications
to
\completepublications[criterium=all]
Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Le 01 décembre à 02:16:10 Mohamed Bana
| title : - References | ! Missing } inserted. | <inserted text> | } | <to be read again> | \dostopattributes | <argument> ...cation {shapley_cores_1974}\strut }} | \egroup \ifdim \wd | 4=\zero...
| \secondoftwoarguments #1#2->#2
| \dosomelistelement ...hss \dostoplistattributes }} | \endgraf | \nointerlineskip ...
| \dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6} | \global \utilitydonetrue | ... | l.38 \completepublications[criterium=all]
| ?
| I was using
| ConTeXt ver: 2008.10.31 13:58 MKIV fmt: 2008.11.2 int: english/english
| then I update to
| ConTeXt ver: 2008.11.30 14:39 MKIV fmt: 2008.12.1 int: english/english
| But the problem still persists.
| 2. Compiling with the following using \completepublications and | \subsubject{Top trading procedures} or \subsection{Top trading procedures};
| context testfile.tex
| It comes out as;
| This is the housing market introduced by Xxxxxxxxxx (0000).
| and the 'References' is empty.
| Instead of;
| This is the housing market introduced by Shapley and Scarf (1974).
| Why?
| 3. Taco, could you please include a minimal example of using bibtex in | your bibmod-doc.pdf file please, much like what Guilherme has done. | It'll probably be a good idea to include about 3 references.
| 4. Why is the [criterium=all] parameter needed?
| %%% testfile.tex %%% | % engine=luatex | \enableregime [utf-8] | \mainlanguage[uk] | \language[uk] | \usemodule[bib] | \setupbibtex[database={./references}] | \setuppublications[refcommand=authoryear,sorttype=cite]%, sort=author]
| \starttext | \cite{shapley_cores_1974} | \completepublications[criterium=all] | \stoptext
| %%% references.bib - same as Guilherme's %%% | ---------- references.bib ----------
| @article{shapley_cores_1974, | title = {On cores and indivisibility}, | volume = {1}, | journal = {Journal of Mathematical Economics}, | author = {Lloyd Shapley and Herbert Scarf}, | month = mar, | year = {1974}, | pages = {23--37} | }
| ------------------------------------
| Taco Hoekwater wrote: | > Guilherme P. de Freitas wrote: | >> then everything works: the citation appears correctly *and* the | >> reference appears in the References list. I don't know why. Any ideas? | > | > Yes. Change this line | > | >> \completepublications | > | > to | > | > \completepublications[criterium=all] | > | > Best wishes, | > Taco Mohamed, AFAIK the command "context" is not yet able to create the bbl file; if you use "texexec myfile" (just once) the file will be created and bibliographic references found. After that you can go back using context for more compilations if needed. I hope to see bibliography implemented in context soon... cheers, -- Jean
Mohamed Bana wrote:
1. Using \completepublications[criterium=all] produces the error message;
Because there is no bbl file, as Jean said. You should run bibtex 'by hand' in mkiv, but I'll upload a mkiv-aware version of the bib module later today.
2. Compiling with the following using \completepublications and \subsubject{Top trading procedures} or \subsection{Top trading procedures};
Why?
Same reason as under 1.
3. Taco, could you please include a minimal example of using bibtex in your bibmod-doc.pdf file please, much like what Guilherme has done.
Is that the biblatex guy?
4. Why is the [criterium=all] parameter needed?
Because the default is to create local bibliography list (just like local toc's ). This may have been the wrong decision, but it is too late to change now, I fear. Best wishes, Taco
Le 01 décembre à 09:06:20 Taco Hoekwater
Jean Magnan de Bornier wrote:
Le 01 décembre à 09:06:20 Taco Hoekwater
écrit notamment: | Because there is no bbl file, as Jean said. You should run bibtex | 'by hand' in mkiv, but I'll upload a mkiv-aware version of the bib | module later today.
Strange! My experience is that texexec with «%engine=luatex» on top of the file creates the bbl file, so mkiv seems to be able to work with bibtex already.
"texexec" does, "context" doesn't (yet). I have uploaded a patched version of the bib module that runs bibtex internally in mkiv mode. http://modules.contextgarden.net/bib Best wishes, Taco
participants (4)
-
Guilherme P. de Freitas
-
Jean Magnan de Bornier
-
Mohamed Bana
-
Taco Hoekwater