[NTG-context] [***SPAM***] How to add pdf bookmark without adding it to the content?

2009-01-15 Thread Andrey Riabushenko
I have tried many ways

\bookmark[section]{Bookmark text} seems to add bookmark twice and it is also 
appears in the table of contents which is strange.


I have prepared a small example that demonstrates the problem


\setupinteraction [state=start]

\setupinteractionscreen [option=bookmark]

\placebookmarks [part,chapter,section,subsection] [part, chapter]

\title{Contents}
\bookmark[chapter]{Contents}
\completecontent

\starttext
\dorecurse{7}{\input tufte \input knuth}
\stoptext


I using latest stable ConTeXt minimals on FreeBSD and compile with mkii.
___
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

2008-12-31 Thread Andrey Riabushenko
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
___


[NTG-context] Looks like a bug in \typefile[option=LANG]

2008-12-31 Thread Andrey Riabushenko
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] Newcomer bibliography question

2008-12-31 Thread Andrey Riabushenko
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.

}

   \endgroup
 ...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.

}

   \endgroup
 ...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.

}

   \endgroup
 ...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.

}

   \endgroup
 ...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.

}

   \endgroup
 ...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.

}

   \endgroup
 ...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},
  pages={77-91},
  language={ukrainian},
}

@Article{binomial-tree,
  author={Cox, John C. and Ross, Stephen A. and Rubinstein, Mark},
  title={Option Pricing: A Simplified Approach},
  journal={Journal of Financial economics},

Re: [NTG-context] Does ConTeXt really support russian language?

2008-12-25 Thread Andrey Riabushenko
So far I have tried using pdfetex:

Sample 1:
\enableregime[utf]
\usemodule[lang-cyr]

\mainlanguage[ru]

\usetypescript[postscript][t2a]
\setupbodyfont[postscript, 12pt]

This one doesn't work on any of three systems described earlier. Latin 
transliteration instead of Cyrillic letters.

Sample 2:

\enableregime[utf]
\mainlanguage[ru]

\usetypescript[antykwa-torunska][t2a]
\setupbodyfont[antykwa, 12pt]

Works on ConTeXt Minimals, but does not work on TeX Live 2008 and teTeX 3.0. 
Latin transliteration instead of Cyrillic letters.


Sample 3:
\enableregime[utf]
\mainlanguage[ru]
\definetypeface [russian] [rm] [serif] [computer-modern] [default]
[encoding=t2a]
\setupbodyfont [russian]

This one doesn't work on any of three systems described earlier. Latin 
transliteration instead of Cyrillic letters.


In there a solution that will work on every of three distributions?
___
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] Does ConTeXt really support russian language

2008-12-24 Thread Andrey Riabushenko
Pdftex
Preferably utf8 encoding


>pdfTeX, XeTeX or LuaTeX?

>Wolfgang

>> I have spend three days trying to make ConTeXt show Cyrillic letters  
>> with zero
>> success.
>> I have tried to follow  http://wiki.contextgarden.net/Russian  
>> precisely still
>> I see only latin transliteration instead of Cyrillic letters.
>> The funny thing that http://wiki.contextgarden.net/Vietnamese gives  
>> absolutely
>> different set of commands for internationalization. I have tried  
>> them as well
>> with no luck.
>>
>> I have tried about 10 variants that I have found on  
>> wiki.contextgarden.net and
>> ntg-context@ntg.nl maillist NONE of them produce russian letters  
>> just latin
>> transliteration and empty text.
>>
>> I have tried so far:
>> Fresh install of TeX Live 2008 on Windows XP
>> Fresh install of TeTeX 3 on FreeBSD 7
>> Fresh install of Latest Context Minimals on FreeBSD 7 (installed on
>> 22-12-2008)
>>
>>
>> LaTeX, from the same installations of TeXlive 2008 and teTeX,  works  
>> out box,
>> just as simple as:
>> \usepackage[utf8]{inputenc}
>> \usepackage[T2A]{fontenc}
>>
>> Does any can give me a working example of cyrillic text in conTeXt?
___
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] Does ConTeXt really support russian language?

2008-12-24 Thread Andrey Riabushenko
I have spend three days trying to make ConTeXt show Cyrillic letters with zero 
success.
I have tried to follow  http://wiki.contextgarden.net/Russian precisely still 
I see only latin transliteration instead of Cyrillic letters.
The funny thing that http://wiki.contextgarden.net/Vietnamese gives absolutely 
different set of commands for internationalization. I have tried them as well 
with no luck.

I have tried about 10 variants that I have found on wiki.contextgarden.net and 
ntg-context@ntg.nl maillist NONE of them produce russian letters just latin 
transliteration and empty text.

I have tried so far:
Fresh install of TeX Live 2008 on Windows XP
Fresh install of TeTeX 3 on FreeBSD 7
Fresh install of Latest Context Minimals on FreeBSD 7 (installed on 
22-12-2008)


LaTeX, from the same installations of TeXlive 2008 and teTeX,  works out box,  
just as simple as:
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}

Does any can give me a working example of cyrillic text in conTeXt?
___
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
___