Re: [NTG-context] Bibliography (bug compiling components-001.tex?) (now with sample files)
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)
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)
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)
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 ___
Re: [NTG-context] Bibliography (bug compiling components-001.tex?)
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 ___ 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?)
Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two lines, so I got: % Was: components-001.tex % \endinput % to be adapted % adapted example from list \startpublication[ k=me, t=manual, a=Hoekwater, y=2006, s=TH2006, n=1, u=http://contextgarden.net/Bibliography, ] \author{Taco}[T.]{}{Hoekwater} \title{\CONTEXT\ Publication Module, The user documententation} \pubyear{2006} \note{In case you didn’t know: it’s the document you are reading now} \pages{14} \stoppublication \startproduct components-001 \startfrontmatter % \component components-002 two: \cite[me] \stopfrontmatter \placepublications [criterium=text] \stopproduct But, I'm not able to compile even this file. I'm getting: mtx-context | run 1: luatex --fmt=c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --interaction=nonstopmode --jobname=Bib --c:path=C:\\Lukas\\ConTeXt\\Styles cont-yes.mkiv This is LuaTeX, Version beta-0.80.1 (TeX Live 2015/W32TeX) (rev 5274) \write18 enabled. system callbacks not registering frozen 'find_format_file' open source 1 1 c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2015.07.01 21:40 MKIV beta fmt: 2015.7.2 int: english/english system 'cont-new.mkiv' loaded open source 2 2 c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv system jobfiles using path: C:\\Lukas\\ConTeXt\\Styles system files jobname 'Bib', input 'd:\\Lukas\\ConTeXt\\Test\\Bib.mkiv', result 'Bib' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 d://Lukas/ConTeXt/Test/Bib.mkiv fontspreloading latin modern fonts (second stage) fonts'fallback modern-designsize rm 12pt' is loaded structures begin of sectionblock 'frontpart' publications analyzing previous publication run for 'default' lua errorerror on line 30 in file d://Lukas/ConTeXt/Test/Bib.mkiv: c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: attempt to index field '?' (a nil value) stack traceback: c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: in function 'register' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:591: in function 'findallused' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2503: in function 'processcite' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2814: in function '?' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2304: in function c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2262 (...tail calls...) 20 \pages{14} 21 \stoppublication 22 23 \startproduct components-001 24 25 \startfrontmatter 26 27 % \component components-002 28 29 two: \cite[me] 30 31 \stopfrontmatter 32 33 \placepublications 34 [criterium=text] 35 36 \stopproduct 37 structures end of sectionblock 'frontpart' backend xmp using file 'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 lua errorerror on line 33 in file d://Lukas/ConTeXt/Test/Bib.mkiv: c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: attempt to index field '?' (a nil value) stack traceback: c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: in function 'register' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:591: in function 'findallused' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2503: in function 'processcite' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2814: in function '?' c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2304: in function c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2262 (...tail calls...) 23 \startproduct components-001 24 25 \startfrontmatter 26 27 % \component components-002 28 29 two: \cite[me] 30 31 \stopfrontmatter 32 33 \placepublications 34 [criterium=text] 35 36 \stopproduct 37 pagesflushing realpage 2, userpage 2 close source 2 3 d://Lukas/ConTeXt/Test/Bib.mkiv close source 1 3 c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv ... mtx-context | fatal error: return code: 1 The full log is attached... What is wrong? Best regards, Lukas -- 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
Re: [NTG-context] Bibliography (bug compiling components-001.tex?)
Hello, On Wed, 08 Jul 2015 20:53:10 +0200, Hans Hagen pra...@wxs.nl wrote: On 7/8/2015 4:06 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two lines, so I got: % Was: components-001.tex % \endinput % to be adapted that file is not working now which is why it had an \endinput OK. Is there a way to have list of publications... - something like this to work: \startpublication [k=me, t=article, a=LPr, y=2000, s=Shr, n=1, ] \city{Prg} \stoppublication \starttext Hello \cite[me]. \placepublications[criterium=all] \stoptext So: - publications to be defined before \starttext, with each publication enclosed in \startpublication ... \stoppublication pairs, - \cite command to work, - list of publications via \placepublications to work. I mentioned this theme once in the mailing list - with subject Bibliography - but with no response... The bibtex/components-002.tex seemed to be quite close... Or: which is the recommended way to: - have a DB of publications (preferably in standard ConTeXt space, not in a .bib file) - to refer to a publication - to build a list of publications? (A MWE or a link would be appreciated...) Best regards, Lukas Hans -- 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 ___
Re: [NTG-context] Bibliography (bug compiling components-001.tex?)
On 7/8/2015 4:06 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I also tried one of the ConTeXt suite test files, namely: test\doc\context\tests\mkiv\bibtex\components-002.tex where I just commented two lines, so I got: % Was: components-001.tex % \endinput % to be adapted that file is not working now which is why it had an \endinput Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 bug
On 02/27/2011 11:48 PM, Pontus Lurcock wrote: After some further staring at the code and bibmod-doc, I've come up with the following patch: That patch looks fine. Hans, can you include it? Best wishes, Taco --- bibl-apa.tex.orig 2011-02-28 11:32:05.996248627 +1300 +++ bibl-apa.tex2011-02-28 11:32:47.576251922 +1300 @@ -133,13 +133,13 @@ \def\insertorg#1#2#3% {\insertorganization {\insertcity {#1} -{\insertcountry{, }{}{#2}: }% -{\insertcountry{}{: }{#2}}}% - {}% +{\insertcountry{, }{}{}: }% +{\insertcountry{}{: }{}}}% + {#2}% {\insertcity {#1} {\insertcountry{, }{}{#2}}% {\insertcountry{}{#2}{#3}}}% } This fixes my example, and makes (to me) better sense according to the semantics of the \insert... commands: theafter argument to \insertorg gets passed down to theafter of \insertcity rather than spliced into thebefore. It's also closer to the definition of \insertpublisher immediately preceding it in the file. I hope that this can be integrated into the next beta, if it doesn't turn out to be a horrendous mistake... ___ 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
After some further staring at the code and bibmod-doc, I've come up with the following patch: --- bibl-apa.tex.orig 2011-02-28 11:32:05.996248627 +1300 +++ bibl-apa.tex2011-02-28 11:32:47.576251922 +1300 @@ -133,13 +133,13 @@ \def\insertorg#1#2#3% {\insertorganization {\insertcity {#1} -{\insertcountry{, }{}{#2}: }% -{\insertcountry{}{: }{#2}}}% - {}% +{\insertcountry{, }{}{}: }% +{\insertcountry{}{: }{}}}% + {#2}% {\insertcity {#1} {\insertcountry{, }{}{#2}}% {\insertcountry{}{#2}{#3}}}% } This fixes my example, and makes (to me) better sense according to the semantics of the \insert... commands: the after argument to \insertorg gets passed down to the after of \insertcity rather than spliced into the before. It's also closer to the definition of \insertpublisher immediately preceding it in the file. I hope that this can be integrated into the next beta, if it doesn't turn out to be a horrendous mistake... Regards, Pont On Sun 27 Feb 2011, Pontus Lurcock wrote: Greetings everyone, Since this is my first post here, I would like to start by saying thank you to all the ConTeXt developers and documenters for a great system. I'm using ConTeXt to typeset my doctoral dissertation, with (so far) reasonable success. But I've run into what I think is a minor bug in the default bibliography style. Minimal example: ---8--- \startpublication[k=test,t=inproceedings,a=Smith,y=2000] \author[]{John}[J.]{}{Smith} \pubyear{2000} \arttitle{A fascinating exposition} \editor[]{Adam}[A.]{}{Jones} \title{Proceedings of Something} \city{London} \pages{123--132} \organization{Institute of Whatever} \stoppublication \starttext \placepublications[criterium=all] \stoptext ---8--- Using Linux minimals, context Mark IV, v. 2011.02.25 22:03, this gives me: Smith, J. (2000). A fascinating exposition. In Jones, A., editor, Proceedings of Something, pages 123–132. London.: Institute of Whatever I think that London.: Institute of Whatever should be London: Institute of Whatever. with full stop after organization rather than city. I assume the fix is simple, but I swiftly got lost when I tried jumping into the bibliography code, so I hope that someone else can help here. Thanks, Pont ___ 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] Bibliography bug
Greetings everyone, Since this is my first post here, I would like to start by saying thank you to all the ConTeXt developers and documenters for a great system. I'm using ConTeXt to typeset my doctoral dissertation, with (so far) reasonable success. But I've run into what I think is a minor bug in the default bibliography style. Minimal example: ---8--- \startpublication[k=test,t=inproceedings,a=Smith,y=2000] \author[]{John}[J.]{}{Smith} \pubyear{2000} \arttitle{A fascinating exposition} \editor[]{Adam}[A.]{}{Jones} \title{Proceedings of Something} \city{London} \pages{123--132} \organization{Institute of Whatever} \stoppublication \starttext \placepublications[criterium=all] \stoptext ---8--- Using Linux minimals, context Mark IV, v. 2011.02.25 22:03, this gives me: Smith, J. (2000). A fascinating exposition. In Jones, A., editor, Proceedings of Something, pages 123–132. London.: Institute of Whatever I think that London.: Institute of Whatever should be London: Institute of Whatever. with full stop after organization rather than city. I assume the fix is simple, but I swiftly got lost when I tried jumping into the bibliography code, so I hope that someone else can help here. Thanks, Pont ___ 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 ___