Re: [NTG-context] bibliography authoryears problem
Hi, Michael Green wrote: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. Here is the cause: the first \cite in mkiv internally runs \usepublications[\jobname]. This inputs bib-test.bbl, which contains a \par, and that is where the new line comes from. A workaround is to add \usepublications[\jobname] in the document preamble. It works in mkii because in mkii, that command is executed at \starttext. For Hans: perhaps \usemodule[bib] should run the command? I know that is supposed to be obsolete, but I assume you do not want to use the odd logic from mkii in mkiv. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
On Dec 4, 2009, at 3:00 AM, ntg-context-requ...@ntg.nl wrote: Message: 4 Date: Fri, 04 Dec 2009 09:23:13 +0100 From: Taco Hoekwater t...@elvenkind.com To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] bibliography authoryears problem Message-ID: 4b18c6f1.5090...@elvenkind.com Content-Type: text/plain; charset=ISO-8859-1 Hi, Michael Green wrote: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. Here is the cause: the first \cite in mkiv internally runs \usepublications[\jobname]. This inputs bib-test.bbl, which contains a \par, and that is where the new line comes from. A workaround is to add \usepublications[\jobname] in the document preamble. It works in mkii because in mkii, that command is executed at \starttext. For Hans: perhaps \usemodule[bib] should run the command? I know that is supposed to be obsolete, but I assume you do not want to use the odd logic from mkii in mkiv. Best wishes, Taco That solves both the problems I noted. Thanks! mjg ___ 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 authoryears problem
Am 04.12.2009 um 09:23 schrieb Taco Hoekwater: Michael Green wrote: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. Here is the cause: the first \cite in mkiv internally runs \usepublications[\jobname]. This inputs bib-test.bbl, which contains a \par, and that is where the new line comes from. A workaround is to add \usepublications[\jobname] in the document preamble. It works in mkii because in mkii, that command is executed at \starttext. For Hans: perhaps \usemodule[bib] should run the command? I know that is supposed to be obsolete, but I assume you do not want to use the odd logic from mkii in mkiv. How about this: \def\preloadbiblist {\globallet\preloadbiblist\relax \pushendofline \dousepublications\jobname \popendofline} 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] bibliography authoryears problem
Michael Green wrote: On Dec 4, 2009, at 3:00 AM, ntg-context-requ...@ntg.nl wrote: Message: 4 Date: Fri, 04 Dec 2009 09:23:13 +0100 From: Taco Hoekwater t...@elvenkind.com To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] bibliography authoryears problem Message-ID: 4b18c6f1.5090...@elvenkind.com Content-Type: text/plain; charset=ISO-8859-1 Hi, Michael Green wrote: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. Here is the cause: the first \cite in mkiv internally runs \usepublications[\jobname]. This inputs bib-test.bbl, which contains a \par, and that is where the new line comes from. A workaround is to add \usepublications[\jobname] in the document preamble. It works in mkii because in mkii, that command is executed at \starttext. For Hans: perhaps \usemodule[bib] should run the command? I know that is supposed to be obsolete, but I assume you do not want to use the odd logic from mkii in mkiv. Best wishes, Taco That solves both the problems I noted. Thanks! \unprotect \def\dousepublications#1% {\doonlyonce{#1.\f!bibextension} {\let\@@savedpar\par \let\par\ignorespaces \ifhmode\kern\zeropoint\fi \readfile{#1.\f!bibextension} {\showmessage\m!publications{4}{#1.\f!bibextension}} {\showmessage\m!publications{2}{#1.\f!bibextension}}% \ifhmode\removeunwantedspaces\fi \let\par\@@savedpar}} \protect should also work ... the reason for the automatic loading is that it circumvents problems with projects, products, components etc where settings can come after teh first starttext so that's not the best hook then of course implicit loading as suggested by taco is the best - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
Wolfgang Schuster wrote: Am 04.12.2009 um 09:23 schrieb Taco Hoekwater: Michael Green wrote: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. Here is the cause: the first \cite in mkiv internally runs \usepublications[\jobname]. This inputs bib-test.bbl, which contains a \par, and that is where the new line comes from. A workaround is to add \usepublications[\jobname] in the document preamble. It works in mkii because in mkii, that command is executed at \starttext. For Hans: perhaps \usemodule[bib] should run the command? I know that is supposed to be obsolete, but I assume you do not want to use the odd logic from mkii in mkiv. How about this: \def\preloadbiblist {\globallet\preloadbiblist\relax \pushendofline \dousepublications\jobname \popendofline} that's also a nice solution (i didn't know it was till in mkiv -) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
Am 04.12.2009 um 19:32 schrieb Hans Hagen: \def\dousepublications#1% {\doonlyonce{#1.\f!bibextension} {\let\@@savedpar\par \let\par\ignorespaces \ifhmode\kern\zeropoint\fi \readfile{#1.\f!bibextension} {\showmessage\m!publications{4}{#1.\f!bibextension}} {\showmessage\m!publications{2}{#1.\f!bibextension}}% \ifhmode\removeunwantedspaces\fi \let\par\@@savedpar}} why not \let\par\normalpar 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] bibliography authoryears problem
Wolfgang Schuster wrote: How about this: \def\preloadbiblist {\globallet\preloadbiblist\relax \pushendofline \dousepublications\jobname \popendofline} btw, i played with endlinechar a bit but rejected it because i was not sure about bibtex .. take Author = {Calfee oeps oeps oeps oeps, John E.}, this becomes a={{Calfee oeps oeps~oeps oeps}},y=2009, and a solution for the spaces creeping in needs to preserve them someho win entries can we be sure that the values end up on one line? btw, the injected ~ is kind of funny and probably some hard coded assumption in bibtex itself (about oeps begins a title or letter as well as ~ having some special meaning); maybe this fuzzyness is why bibtex is still version 0.99 (in spite of several announcements at conferences of a 1.00 release) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
Wolfgang Schuster wrote: Am 04.12.2009 um 19:32 schrieb Hans Hagen: \def\dousepublications#1% {\doonlyonce{#1.\f!bibextension} {\let\@@savedpar\par \let\par\ignorespaces \ifhmode\kern\zeropoint\fi \readfile{#1.\f!bibextension} {\showmessage\m!publications{4}{#1.\f!bibextension}} {\showmessage\m!publications{2}{#1.\f!bibextension}}% \ifhmode\removeunwantedspaces\fi \let\par\@@savedpar}} why not \let\par\normalpar actually i had that but then i was not sure if par might have been redefined as a \cite command can occure anywhere; it's also why we cannot use grouping ... or use \startnointerference \globaldefs\plusone ... \stopnointerference actually, it's not the \startpublication that is the problem as we can add \ignorespaces at the end, or use tricks that need grouping as they are defined global anyway, but it's the \setuppublciations in the bbl file that interferes 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
Hello, see http://archive.contextgarden.net/message/20091115.194137.4395932d.en.html best regards Am 03.12.2009 um 01:26 schrieb Michael Green: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. With MkII it comes out correctly. And in MkIV, every reference except the first is correct. This is similar to a problem reported in another thread, but I don't see how the resolution proposed there applies here. http://archive.contextgarden.net/message/20091116.073439.c2549ecb.en.html It isn't a crucial thing for me. I can use MkII when I need to use this citation style. I'm just submitting this as a possible bug report. This is LuaTeX, Version beta-0.46.0-2009112820 \write18 enabled. (bib-test.tex ConTeXt ver: 2009.12.01 17:09 MKIV fmt: 2009.12.1 int: english/english I'm attaching three files: the source, the bibliography, and the pdf output that I get. bib-test.textest-bib.bib bib-test.pdf ___ 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 ___ ___ 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 authoryears problem
Bernhard Rosensteiner wrote: Hello, see http://archive.contextgarden.net/message/20091115.194137.4395932d.en.html seen but i wait till Thomas or Taco (the bibliography experts) comments on it 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
Michael Green wrote: When using refcommand=authoryears and Mk IV the first reference is formatted incorrectly. There is the left parenthesis, then a line break, then the rest of the reference followed by the right parenthesis. With MkII it comes out correctly. And in MkIV, every reference except the first is correct. This is similar to a problem reported in another thread, but I don't see how the resolution proposed there applies here. http://archive.contextgarden.net/message/20091116.073439.c2549ecb.en.html I'll check this tomorrow (my luatex is a bit unstable at the moment, have to fix that first). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography authoryears problem
I should have mentioned that there's a similar problem with refcommand=authoryear (my previous post concerned refcommand=authoryears). Using Mk IV, the first citation is preceded with a new line. Mk II behaves appropriately. And all citations other than the first one are formatted correctly by Mk IV. This is quite similar to the problem I reported with refcommand=authoryears. In both cases, only the first citation is wrong and the error in both cases involves a line break. Perhaps they have a related cause. Happy hunting! mjg Samples are attached. This is LuaTeX, Version beta-0.46.0-2009112820 \write18 enabled. (bib-test-2.tex ConTeXt ver: 2009.12.01 17:09 MKIV fmt: 2009.12.1 int: english/ english bib-test-2.pdf Description: Adobe PDF document bib-test-2.tex Description: Binary data test-bib.bib Description: Binary data ___ 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 ___