Re: [NTG-context] two problems for bib module
On 22-7-2010 2:27, Thomas A. Schmitz wrote: I'm afraid I can't really help you with your problems; I have just a thought on # 2.: at it's core, bibtex is still a 7-bit application. Development on replacements has begun - there's bibtexu, which is in TL2010, there's biber; none of them is quite mature yet. If memory serves right, Hans said that in the future, he wants to bypass bibtex altogether and develop something of his own. So, long story short: if you use Chinese characters in a .bib file, it's hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt can do about that as things stand now. in principle it is possible but i need testers etc etc etc as i never use this feature myself the attached example does not use bibtex at all, the bib file is read into mem (could also be an xml file) and it never sees bibtex there is a bxml-apa.mkiv file that you'l probably recognize .. \settrue \tracebibtexformat can be fun too 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 - \setuplayout[backspace=1cm,topspace=.5cm,header=.5cm,footer=0cm,width=middle,height=middle] \setuppapersize[S8][S8] \starttypescript[serif][zhfont] \definefontsynonym[western][name:latinmodernromanregular] \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F] \definefontsynonym[fbsong][western][fallbacks=song] \definefontsynonym[Serif][fbsong] \definefontsynonym[SerifItalic][fbsong] \stoptypescript \starttypescript[myfonts] \definetypeface[myfonts][rm][serif][zhfont] \stoptypescript \usetypescript[myfonts] \setupbodyfont[myfonts,rm,11pt] \starttext \definebibtexsession [somebibtex] \registerbibtexfile [somebibtex] [cjk.bib] \preparebibtexsession [somebibtex] [convert,strip] % \setuplist[somebibtex][before={\blank[medium]},after={\blank[medium]}] % hm % \settrue \tracebibtexformat \setupbibtexpublications[somebibtex][before={\blank[small]},after={\blank[small]}] \startxmlsetups bibtex:bibtex \xmlfilter{#1}{/entry/command(bibtex:format)} \stopxmlsetups \startxmlsetups bibtex:show \xmlshow{#1} \stopxmlsetups \applytobibtexsession[somebibtex][bibtex:list] cite: \bibtexcitation[somebibtex][test-entry] (ä¸å½å·¥ä¸ç产ççå¢é¿ä¸æ¶æ) % \applytobibtexsession[somebibtex][bibtex:show] \blank dataref: \bibtexdataref [somebibtex][test-entry]\blank \blank typeref: \bibtextyperef [somebibtex][test-entry]\blank \blank key ref: \bibtexkeyref[somebibtex][test-entry]\blank \blank serial ref: \bibtexserialref [somebibtex][test-entry]\blank \blank url ref: \bibtexurlref[somebibtex][test-entry]\blank \blank doi ref: \bibtexdoiref[somebibtex][test-entry]\blank \blank short ref: \bibtexshortref [somebibtex][test-entry]\blank \blank yearref: \bibtexyearref [somebibtex][test-entry]\blank \blank author ref: \bibtexauthorref [somebibtex][test-entry]\blank \blank authoryear ref: \bibtexauthoryearref [somebibtex][test-entry]\blank \blank authoryears ref: \bibtexauthoryearsref[somebibtex][test-entry]\blank \placebibtexpublications[somebibtex] \stoptext progressive-005.pdf Description: Adobe PDF document @article{ test-entry, title = {ä¸å½å·¥ä¸ç产ççå¢é¿ä¸æ¶æ}, author = {è°¢åéï¼ç½æ¯åºï¼å¼ 轶å¡}, journal = {ç»æµå¦(å£å)}, volume = {7}, number = {3}, pages = {809--826}, year= {2008} } ___ 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] two problems for bib module
Hi Yanrui, I'm afraid I can't really help you with your problems; I have just a thought on # 2.: at it's core, bibtex is still a 7-bit application. Development on replacements has begun - there's bibtexu, which is in TL2010, there's biber; none of them is quite mature yet. If memory serves right, Hans said that in the future, he wants to bypass bibtex altogether and develop something of his own. So, long story short: if you use Chinese characters in a .bib file, it's hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt can do about that as things stand now. All best Thomas On Jul 19, 2010, at 10:51 AM, Li Yanrui (李延瑞) wrote: > Hi all, > > I have the following problems when I use the bib module. > > 1. For the cite of 'authoryear', how to make it being clickable link? > > This is a minimum example: > > %%% > %% filename: test.tex > \setupinteraction[state=start] > \setupbibtex[database=ref] > > \setupcite[authoryear] > \setuppublications[refcommand=authoryear] > > \starttext > > A: \cite[zixuwuyou]. > > \title{References} > \placepublications[criterium=all] > > \stoptext > > %%% > > %% filename: ref.bib > @article{zixuwuyou, > title={{Several problems for bib module}}, > author={Zhou, Y. and Suri, S. and Yanry, L.}, > journal={Journal of Bala bala}, > volume={46}, > number={6}, > pages={833--857}, > year={1999}, > publisher={Bala Bala} > } > > 2. In .bib file for Chinese (maybe cjk more exact) references, because > the 'and' separator can not work, we have to use some Chinese > punctuations as separator, such as Chinese comma. In this case, the > cite of author's "et.al." can not work. > > The following is an example (needed AdobeSongStd-Light.otf). > > > %% filename: test.tex > > \starttypescript[serif][zhfont] > \definefontsynonym[western][name:latinmodernromanregular] > \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F] > \definefontsynonym[fbsong][western][fallbacks=song] > \definefontsynonym[Serif][fbsong] > \definefontsynonym[SerifItalic][fbsong] > \stoptypescript > > \starttypescript[myfonts] > \definetypeface[myfonts][rm][serif][zhfont] > \stoptypescript > > \usetypescript[myfonts] > \setupbodyfont[myfonts,rm,11pt] > > \setupinteraction[state=start] > \setupbibtex[database=ref] > > \setupcite[authoryear][andtext={,}] > \setuppublications[refcommand=authoryear,sorttype=bbl] > > \starttext > > A: \cite[谢2008] > > \title{References} > \placepublications[criterium=all] > > \stoptext > > > %% filename: ref.bib > > @article{谢2008, > title={中国工业生产率的增长与收敛}, > author={谢千里,罗斯基,张轶凡}, > journal={经济学(季刊)}, > volume={7}, > number={3}, > pages={809--826}, > year={2008} > } > > > -- > Best regards, > > Li Yanrui (李延瑞) > ___ > 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 ___
[NTG-context] two problems for bib module
Hi all, I have the following problems when I use the bib module. 1. For the cite of 'authoryear', how to make it being clickable link? This is a minimum example: %%% %% filename: test.tex \setupinteraction[state=start] \setupbibtex[database=ref] \setupcite[authoryear] \setuppublications[refcommand=authoryear] \starttext A: \cite[zixuwuyou]. \title{References} \placepublications[criterium=all] \stoptext %%% %% filename: ref.bib @article{zixuwuyou, title={{Several problems for bib module}}, author={Zhou, Y. and Suri, S. and Yanry, L.}, journal={Journal of Bala bala}, volume={46}, number={6}, pages={833--857}, year={1999}, publisher={Bala Bala} } 2. In .bib file for Chinese (maybe cjk more exact) references, because the 'and' separator can not work, we have to use some Chinese punctuations as separator, such as Chinese comma. In this case, the cite of author's "et.al." can not work. The following is an example (needed AdobeSongStd-Light.otf). %% filename: test.tex \starttypescript[serif][zhfont] \definefontsynonym[western][name:latinmodernromanregular] \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F] \definefontsynonym[fbsong][western][fallbacks=song] \definefontsynonym[Serif][fbsong] \definefontsynonym[SerifItalic][fbsong] \stoptypescript \starttypescript[myfonts] \definetypeface[myfonts][rm][serif][zhfont] \stoptypescript \usetypescript[myfonts] \setupbodyfont[myfonts,rm,11pt] \setupinteraction[state=start] \setupbibtex[database=ref] \setupcite[authoryear][andtext={,}] \setuppublications[refcommand=authoryear,sorttype=bbl] \starttext A: \cite[谢2008] \title{References} \placepublications[criterium=all] \stoptext %% filename: ref.bib @article{谢2008, title={中国工业生产率的增长与收敛}, author={谢千里,罗斯基,张轶凡}, journal={经济学(季刊)}, volume={7}, number={3}, pages={809--826}, year={2008} } -- Best regards, Li Yanrui (李延瑞) ___ 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 ___