Trying to compile simple example of using bibliography in ConText (from contextgarden wiki). My file is:
\mainlanguage[russian]
\usemodule[simplefonts][size=12pt]
\setmainfont[XITS]
\setsansfont[Arial]
\setupbibtex[database={mybib},sort=author]
\setuppublications[alternative=apa]
\cite[Tolh]
\completepublications[criterium=all]
\stoptext
Corresponding bib file is:
@Article{Tolh,
Title = {{Поляризация электронов. Теория и эксперимент}},
Author = {Тольхук, Х. А.},
Journal = {УФН},
Language = {russian},
Year = {1957},
Number = {12},
Pages = {761--800},
Volume = {63}
}
Well, it is in Russian, saved as utf8, and the main file is also in uft8. So, compilation with context stops with error:
tex error > error on line 1 in file 2.bbl: ! String contains an invalid utf-8 sequence
l.1 \setuppublicationlist[samplesize={Т
�57},totalnumber=1]
1 >> \setuppublicationlist[samplesize={Т�57},totalnumber=1]
2
3 \startpublication[k=Tolh,t=article,
4 a={{Тольхук}},y=1957,
5 n=1,s=Т�57]
6 \lang{russian}
7 \artauthor[]{Х.~А.}[�.~�.]{}{Тольхук}
8 \pubyear{1957}
9 \arttitle{{Поляризация электронов. Теория и
10 эксперимент}}
11 \journal{УФН}
As I understand, these "black ?" mean some encoding problems. How to resolve them?
Finally, I would have publications be printed in numbered list in the order of citation in main text, and citations are numbers in brackets (i.e. [1], [20] etc.). Just like LaTeX does bibliography. Is it possible with Context?