[NTG-context] Newcomer bibliography question
Happy New Year, I am trying to create style skeleton for my reports in ConTeXt. Aw test case I decided to add my bibliography from previous articles written in LaTeX. I have tried this bibliography with plain bibtex, natbib, biblatex with no problems. With ConTeXt bib module I get bunch of errors. I am using latest ConTeXt minimals on FreeBSD. I am adding the bibliography like this: \usemodule[bib] \setuppublications[alternative=apa, refcommand=authoryears, numbering=yes, criterium=all] \setupbibtex[database=report, sort=author] \completepublications[criterium=all] I can't figure out on my own what is wrong with my bibliography (attached). title : - References ! Missing } inserted. inserted text } to be read again \endgroup argument ...typesetapublication {garch}\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.86 \completepublications[criterium=all] ? ! Missing } inserted. inserted text } to be read again \endgroup argument ...pesetapublication {calvet2}\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.86 \completepublications[criterium=all] ? ! Missing } inserted. inserted text } to be read again \endgroup argument ...pesetapublication {calvet3}\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.86 \completepublications[criterium=all] ? ! Missing } inserted. inserted text } to be read again \endgroup argument ...otypesetapublication {arch}\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.86 \completepublications[criterium=all] ? ! Missing } inserted. inserted text } to be read again \endgroup argument ...setapublication {mad-optim}\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.86 \completepublications[criterium=all] ? ! Missing } inserted. inserted text } to be read again \endgroup argument ...esetapublication {accuracy}\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.86 \completepublications[criterium=all] ? P.S. By the way. Is it possible to supply multiple sorting criteria? Possible like this, \setupbibtex[database=report, sort={author,year,title}] @MANUAL { my-fractal, AUTHOR={Andrii Riabushenko}, TITLE={Multifractal model: forecasting stock return in the {U}kranian stock market}, ORGANIZATION={Economics education and research consortium}, YEAR=2008, LANGUAGE={ukrainian}, } @Article{black-scholes, author={Black, Fischer and Scholes, Myron}, title={The Pricing of Options and Corporate Liabilities}, journal={Journal of Political Economy}, year=1973, volume={81}, number={3}, pages={637-54}, LANGUAGE={ukrainian}, } @Article{markowitz, author={Harry Markowitz}, title={Portfolio Selection}, journal={Journal of Finance}, year=1952, volume={7}, number={1},
Re: [NTG-context] kurier font?
Am 31.12.2008 um 00:20 schrieb Hans Hagen: Wolfgang Schuster wrote: Am 30.12.2008 um 18:27 schrieb Yue Wang: Hi, \usetypescript[iwona][ec] \setupbodyfont[iwona,ss,12pt] works fine. however, if i change iwona to kurier, it will give me lmodern. why? Missing typefaces for kurier. type-one.tex \starttypescript [kurier-light,kurier,kurier-medium] [texnansi,ec,qx,t5] \definetypeface[\typescriptone][ss][sans] [\typescriptone] [default][encoding=\typescripttwo] \definetypeface[\typescriptone][rm][serif][modern] [default][encoding=\typescripttwo] \definetypeface[\typescriptone][tt][mono] [modern] [default][encoding=\typescripttwo] \definetypeface[\typescriptone][mm][math] [\typescriptone] [default][encoding=\typescripttwo,text=ss] \quittypescriptscanning \stoptypescript type-otf.tex \starttypescript [iwona,iwona-light,iwona-medium,iwona-heavy] \definetypeface[\typescriptone][ss][sans] [\typescriptone] [default] \definetypeface[\typescriptone][rm][serif][modern] [default] \definetypeface[\typescriptone][tt][mono] [modern] [default] \definetypeface[\typescriptone][mm][math] [\typescriptone] [default][text=ss] \quittypescriptscanning \stoptypescript ok, added; is mono scaled ok or is a rscale (reative scale) needed? The typewriter font is too small, add 'rscale=1.05'. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] kurier font?
Wolfgang Schuster wrote: The typewriter font is too small, add 'rscale=1.05'. ok, thanks - 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newcomer bibliography question
Andrey Riabushenko wrote: Happy New Year, I am trying to create style skeleton for my reports in ConTeXt. Aw test case I decided to add my bibliography from previous articles written in LaTeX. I have tried this bibliography with plain bibtex, natbib, biblatex with no problems. With ConTeXt bib module I get bunch of errors. I am using latest ConTeXt minimals on FreeBSD. I am adding the bibliography like this: \usemodule[bib] \setuppublications[alternative=apa, refcommand=authoryears, numbering=yes, criterium=all] \setupbibtex[database=report, sort=author] \completepublications[criterium=all] I can't figure out on my own what is wrong with my bibliography (attached). It is bug in the module triggered by the lack of issue information in some of the article entries. To fix it, best put this in your preamble for now: \setuppublicationlayout[article]{% \insertartauthors{}{ }{\insertthekey{}{ }{}}% \insertpubyear{(}{). }{\unskip.}% \insertarttitle{\bgroup }{\egroup. }{}% \insertjournal{\bgroup \it}{\egroup} {\insertcrossref{In }{}{}}% \insertvolume {\bgroup \it, } {\egroup\insertissue{\/(}{)}{}\insertpages{, }{.}{.}} {\insertpages{, pp. }{.}{.}}% \insertnote{ }{.}{}% \insertcomment{}{.}{}% } I will fix this in the next release. P.S. By the way. Is it possible to supply multiple sorting criteria? Possible like this, \setupbibtex[database=report, sort={author,year,title}] No, that is not possible. I have a lua-based bibliography converter planned and once that is in place, this will be possible. 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 ___
Re: [NTG-context] kurier font?
Mojca Miklavec wrote: On Wed, Dec 31, 2008 at 1:02 PM, Hans Hagen wrote: Wolfgang Schuster wrote: The typewriter font is too small, add 'rscale=1.05'. ok, thanks Kurier is exactly the same size as iwona, I think (please correct me if I'm wrong, I didn't try to overlay the fonts). If that is true then either both should have that setting or none of them. Just to optimize the matters a bit - wouldn't this work OK? \starttypescript [iwona,iwona-light,iwona-heavy,iwona-medium,kurier,kurier-light,kurier-medium] [texnansi,ec,qx,t2a,t5,greek] \definetypeface[\typescriptone][ss][sans] [\typescriptone] [default][encoding=\typescripttwo] \definetypeface[\typescriptone][rm][serif][modern] [default][encoding=\typescripttwo] \definetypeface[\typescriptone][tt][mono] [modern] [default][encoding=\typescripttwo] \definetypeface[\typescriptone][mm][math] [\typescriptone] [default][encoding=\typescripttwo,text=ss] \quittypescriptscanning \stoptypescript ok, just figure it out with wolfgang and send me what is needed 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Looks like a bug in \typefile[option=LANG]
I have defined a new float environment for source file listings. \definefloat [listing] [listings] \definetyping[listing][numbering=file] \placelisting[lst:set]{Example of set tree} { \typefile[listing][option=C]{set.cpp} } It works just as expected. Then I have tried to change standard color palet with my own palet. \definepalet[corp-pretty][prettyone=corp-color-darkblue, prettytwo=corp-color-blue, prettythree=corp-color-lightblue, prettytwoone=corp-color-grey, prettyfour=corp-color-green, prettyfourone=corp-color-green, prettyfourtwo=corp-color-green, prettyfourthree=corp-color-green, prettyfourfour=corp-color-orange, prettysixone=corp-color-orange, prettysixtwo=corp-color-orange prettyeight=corp-color-orange, prettynine=corp-color-orange] \definefloat [listing] [listings] \definetyping[listing][numbering=file, palet=corp-pretty] \placelisting[lst:set]{Example of set tree} { \typefile[listing][option=C]{set.cpp} } The colors did not appear, in the texexec output I got lots of errors like color : TEXcorp-pretty:prettythree is not defined color : TEXcorp-pretty:prettythree is not defined color : TEXcorp-pretty:prettyone is not defined color : TEXcorp-pretty:prettytwo is not defined color : TEXcorp-pretty:prettythree is not defined color : TEXcorp-pretty:prettyfour is not defined NOTICE \typefile LOOKS FOR PALET TEXcorp-pretty and not corp-pretty as I have defined. There is some bug or feature that makes an implicit assumption of the palet prefix name - TEX. I have managed to make it work by definition a palet with name TEXcorp-pretty and still passing as palet option of \definetyping the name corp-pretty, but it is a ugly hack. ___ 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 ___
[NTG-context] create and grade multiple choice exams with MUCH an ConTeXT
Dear Sirs, For create and grade my MCQ (multiple choice quiz) I use the MUCH command that in had found at http://fourier.math.uoc.gr/~mk/much/. this is a very useful command for create and grade quizzes. Actually my main propose is use MUCH with context (or luatext). I prepare my exams in this way: Each question = one file Question example: Today is: . 31 December --- the true question is the first . 25 December . 13 Mars . In the test-description I include my specifications. And them I do: much create test-description A mc-outfile.tex is created. Now I do: pdflatex exam.tex for making the pdf file with all exams. If you can help I would use ConTeXT to prepare the pdf file. The migration should be very easy. I think there is necessary to define in context several commands like: \newcommand{\mcglobalheader} \newcommand{\mcpaperheader} \newcommand{\mcpaperfooter} \newcommand{\mcquestionheader}{\noindent{\bf Question \mcquestionnumber}: } \newcommand{\mcquestionfooter}{} In the file questions (mc-output.tex). mc-output.tex \mcglobalheader \def\mcserialnumber{500} \mcpaperheader \def\mcquestionnumber{1} \mcquestionheader How many circular orderings of the numbers $0,1,\ldots,10$ are there? (Two circular orderings which differ only by a rotation are not considered different.) \\ {$A$}: $10!$ \ \ {$B$}: $3^{11}$ \ \ {$C$}: $11!$ \ \ {$D$}: $9!$ \ \ \mcquestionfooter \mcpaperfooter % another exam \def\mcserialnumber{501} \mcpaperheader \def\mcquestionnumber{1} \mcquestionheader In how many ways can we select, from a set of 20 people, a committee of 3 different persons with a chair, secretary and member? \\ {$A$}: $20\cdot19\cdot18$ \ \ {$B$}: $\frac{20!}{3!}$ \ \ {$C$}: $20^3$ \ \ {$D$}: $3^{20}$ \ \ \mcquestionfooter \mcpaperfooter %%% Thanks a lot for your support. Happy New Year to all Jorge ___ 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 ___
Re: [NTG-context] Unicode and BibTeX
On Tue, Dec 23, 2008 at 10:34:38AM -0700, Idris Samawi Hamid ادريس سماوي حامد wrote: Salaam, Khaled, On Mon, 22 Dec 2008 10:51:56 -0700, Khaled Hosny khaledho...@eglug.org wrote: I'm trying to typeset an Arabic book with Arabic bibliography, I'm using bib module, but bibtex doesn't support unicode. Any workaround or another alternative? Can you port your database to bbl format -- \start-stoppublication -- and just use the bib module without bibtex? Thanks for the tip, that worked for me. Regards, -- Khaled Hosny Arabic localizer and member of Arabeyes.org team signature.asc Description: Digital signature ___ 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 ___
[NTG-context] PDF bookmarks appear twice
I have found similar issue was discussed in this list, but it doesn't contain a suitable solution for me These command work just fine to add bookmark for every part, chapter and etc. \setupinteraction [state=start] \setupinteractionscreen [option=bookmark] \placebookmarks [part,chapter,section,subsection] [chapter] But I want to add three additional bookmarks (without adding them to the contents): title page, resume(second page), contents. I have defined it the following way: \definemakeup[Titlepage][pagestate=start, page=right] \definemakeup[Resume][pagestate=start, page=right] \definestartstop[Abstract][before={\page[blank,right] \midaligned{\bf Abstract}\startnarrower[2*middle]}, after={\stopnarrower\blank[big] }] \starttext \startTitlepagemakeup \bookmark[chapter]{Title page} \tfd Title page \\ \stopTitlepagemakeup \startResumemakeup \bookmark[chapter]{Resume} \startAbstract Abstract paragraph full of text \stopAbstract Author name \stopResumemakeup \title{Contents} \bookmark[chapter]{Contents} \placecontent[interaction=all] \stoptext In this case bookmarks appear twice in the bookmark menu. If I use \bookmark{} without [chapter] the bookmarks do not appear at all. I have tried to put bookmarks out of start/stop environments but it didn't help. How to work around this issue? ___ 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 ___