Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Aditya Mahajan
On Wed, 27 Dec 2006, Zhichu Chen wrote:

> Hi Aditya,
> 
> I've copied your codes and replaced the original ones with them, but I
> failed when I make the formats:
> texexec --make --all
> 
> It gives me the following message:
> ---
> 
> (d:\ConTeXt\usr\local\context\tex\texmf-local/tex/context/base/math-pln.tex
> ! Undefined control sequence.
> \@@toks ->\everymathematics
> 
> \dodoappendtoks ->\dodoglobal \@@toks
>   [EMAIL PROTECTED] [EMAIL PROTECTED] 
> \the [EMAIL PROTECTED] \@@toks \the
> ...
> l.382 \to \everymathematics
> 
> ? q
> OK, entering \batchmode

Sorry, about that. This is because of the loading order of files. For 
the time being, you can copy the definitions to cont-new.tex or to the 
top of your tex file.

Hans, what is the proper way of getting this to work. Also append to 
\everydisplay, or move the definitions to core-mat? (Or I am 
completely missing the point?)

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Zhichu Chen

Hi Aditya,

I've copied your codes and replaced the original ones with them, but I
failed when I make the formats:
texexec --make --all

It gives me the following message:
---

(d:\ConTeXt\usr\local\context\tex\texmf-local/tex/context/base/math-pln.tex
! Undefined control sequence.
\@@toks ->\everymathematics

\dodoappendtoks ->\dodoglobal \@@toks
 [EMAIL PROTECTED] [EMAIL PROTECTED] \the 
[EMAIL PROTECTED] \@@toks \the
...
l.382 \to \everymathematics

? q
OK, entering \batchmode

ConTeXt  ver: 2006.12.20 23:52 MK II  fmt: 2006.12.27  int: dutch/dutch

fonts   : needs map file: texnansi-public-lm
fonts   : needs map file: original-base
fonts   : needs map file: ec-public-lm
fonts   : needs map file: ec-base
fonts   : needs map file: lm-ec
! Missing \endcsname inserted.

  \@@ladefault
\defaultlanguage #1->[EMAIL PROTECTED] \ifx \csname \??la #1
  \c!default \endcsname \empty
...

\defaultlanguage ...\??la #1\c!default \endcsname
 \fi
\dogetupsometextprefix #1#2#3->\ifcsname #2#1
#3\endcsname \csname
#2#1#3\end...

\labeltexts #1#2->\leftlabeltext {#1}
#2\rightlabeltext {#1}
 ...enumber {\pageprefixes \pagenumber }
 \@@nmright
...
l.38 \protect \errorstopmode \dump
  \endinput
? q
OK, entering \batchmodeTeXExec | generating tex format mptopdf

--

On 12/27/06, Aditya Mahajan <[EMAIL PROTECTED]> wrote:


On Tue, 26 Dec 2006, Sanjoy Mahajan wrote:

> I just noticed this test file failing:
>
> \starttext
> $f'(x)$
> \startformula
> f^\prime(x)\quad f'(x)
> \stopformula
> \stoptext
>
> It gives:
>
> ! Undefined control sequence.
> l.4 f^\prime(x)\quad f'
>(x)
>

This is a typo in math-pln.tex. The end of the file should be

\bgroup
\catcode`\_ = 13
\catcode`\' = 13
\doglobal\appendtoks
\let_\activemathunderscore
\let'\activemathquote
\to \everymathematics %<--- was \everymath
\egroup

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context





--
Sincerely yours,
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Mojca Miklavec
On 12/27/06, Vyatcheslav Yatskovsky wrote:
>
> > I might have missed the point completely, but do you set the file
> > encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
> > anywhere? I didn't try your examples, but unless you set this
> > somewhere cyrilic glyphs unlikely to work properly.
>
> Thank you, Mojca.
>
> No, I didn't set the encoding and let me explain why.
>
> When I put \enableregime[cp1251] (I use that very encoding) at the top of my
> script, the output represents transliterated text (all Cyrillic glyphs are
> replaced with corresponding Latin letters). I didn't consider it strange
> until you pointed that to me. Here the .log file of the 'transliterated'

That's "normal". The problems is that you didn't specify the proper
encoding of your font, so TeX doesn't know that your font is cyrillic.

\font\myfirstfont=t2a-n021003l
\myfirstfont

is a plain TeX command, you have to use a ConTeXt command for that.

This is a way to go then:

\starttypescript [map] [timescyr] [t2a]
  \loadmapfile [\typescriptthree-urw-timescyr.map]
\stoptypescript

\starttypescript [serif] [timescyr] [name]
  \definefontsynonym [Serif] [...]
\stoptypescript

\starttypescript [serif] [timescyr] [t2a]
  \definefontsynonym [...] [\typescriptthree-progbot]
[encoding=\typescriptthree]
\stoptypescript

\starttypescript [serif] [t2a]
  \definetypeface [...] [rm] [serif] [timescyr] [default]
[encoding=\typescripttwo]
\stoptypescript

That's only a rought sketch. If you don't get any further using the
existing documentation and wiki, and if nobody else is willing to
help, I can try to complete the definitions if you ask again, but
someone is willing to do that instead ... I won't object.

(Although I suspect that there is a shorter way to tell to TeX which
encoding is being used for a specific font.)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Vyatcheslav Yatskovsky
> I might have missed the point completely, but do you set the file
> encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
> anywhere? I didn't try your examples, but unless you set this
> somewhere cyrilic glyphs unlikely to work properly.

Thank you, Mojca.

No, I didn't set the encoding and let me explain why. 

When I put \enableregime[cp1251] (I use that very encoding) at the top of my 
script, the output represents transliterated text (all Cyrillic glyphs are 
replaced with corresponding Latin letters). I didn't consider it strange until 
you pointed that to me. Here the .log file of the 'transliterated' document:


ConTeXt  ver: 2006.07.14 12:08  fmt: 2006.12.25  int: english  mes: english

language: language en is active

system  : cont-new loaded
(E:\MiKTeX\tex\context\base\cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(E:\MiKTeX\tex\context\base\cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(E:\MiKTeX\tex\context\base\cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(E:\MiKTeX\tex\context\user\cont-sys.rme
(E:\MiKTeX\tex\context\base\type-exa.tex)
(E:\MiKTeX\tex\context\base\type-syn.tex)
(E:\MiKTeX\tex\context\base\type-enc.tex)
(E:\MiKTeX\tex\context\base\type-siz.tex)
(E:\MiKTeX\tex\context\base\type-map.tex)
(E:\MiKTeX\tex\context\base\type-spe.tex)
(E:\MiKTeX\tex\context\base\type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
system  : test7timescyr.top loaded
(D:\~~\test7timescyr.top
specials: loading definition file tpd
(E:\MiKTeX\tex\context\base\spec-tpd.tex
specials: loading definition file fdf
(E:\MiKTeX\tex\context\base\spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
encoding: coding cp1251 is loaded
(E:\MiKTeX\tex\context\base\regi-cp1251.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(E:\MiKTeX\tex\context\base\sort-def.tex)
(E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo)
systems : begin file test7timescyr at line 14
fonts   : resetting map file list
fonts   : using map file: lm-texnansi
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
fonts   : using map file: t2a-urw-timescyr
(E:\MiKTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-texnansi.m
ap}{original-base.map}{ec-public-lm.map}{ec-base.map}{8r-base.map}{t5-base.map}
{original-ams-base.map}{original-ams-euler.map}{original-public-lm.map}{t2a-urw
-timescyr.map}]
systems : end file test7timescyr at line 26
system  : cont-err loaded
(E:\MiKTeX\tex\context\base\cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <

) ) 
Here is how much of TeX's memory you used:
 1337 strings out of 57725
 21657 string characters out of 577460
 590834 words of memory out of 1079821
 40050 multiletter control sequences out of 6
 76275 words of font info for 39 fonts, out of 100 for 2000
 192 hyphenation exceptions out of 8191
 51i,18n,51p,264b,540s stack positions out of 5000i,500n,1p,20b,32768s
PDF statistics:
 11 PDF objects out of 30
 0 named destinations out of 30
 5 words of extra memory for PDF output out of 1
{t2a.enc}{lm-ec.enc}
Output written on test7timescyr.pdf (1 page, 32893 bytes).

-- 
Best regards,
 Vyatcheslav

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fwd: Re[2]: Installing Cyrillic font

2006-12-26 Thread Vyatcheslav Yatskovsky
> I might have missed the point completely, but do you set the file
> encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
> anywhere? I didn't try your examples, but unless you set this
> somewhere cyrilic glyphs unlikely to work properly.

Thank you, Mojca.

No, I didn't set the encoding and let me explain why. 

When I put \enableregime[cp1251] (I use that very encoding) at the top of my 
script, the output represents transliterated text (all Cyrillic glyphs are 
replaced with corresponding Latin letters). I didn't consider it strange until 
you pointed that to me. Here the .log file of the 'transliterated' document:


ConTeXt  ver: 2006.07.14 12:08  fmt: 2006.12.25  int: english  mes: english

language: language en is active

system  : cont-new loaded
(E:\MiKTeX\tex\context\base\cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(E:\MiKTeX\tex\context\base\cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(E:\MiKTeX\tex\context\base\cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(E:\MiKTeX\tex\context\user\cont-sys.rme
(E:\MiKTeX\tex\context\base\type-exa.tex)
(E:\MiKTeX\tex\context\base\type-syn.tex)
(E:\MiKTeX\tex\context\base\type-enc.tex)
(E:\MiKTeX\tex\context\base\type-siz.tex)
(E:\MiKTeX\tex\context\base\type-map.tex)
(E:\MiKTeX\tex\context\base\type-spe.tex)
(E:\MiKTeX\tex\context\base\type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
system  : test7timescyr.top loaded
(D:\~~\test7timescyr.top
specials: loading definition file tpd
(E:\MiKTeX\tex\context\base\spec-tpd.tex
specials: loading definition file fdf
(E:\MiKTeX\tex\context\base\spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
encoding: coding cp1251 is loaded
(E:\MiKTeX\tex\context\base\regi-cp1251.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(E:\MiKTeX\tex\context\base\sort-def.tex)
(E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo)
systems : begin file test7timescyr at line 14
fonts   : resetting map file list
fonts   : using map file: lm-texnansi
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
fonts   : using map file: t2a-urw-timescyr
(E:\MiKTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-texnansi.m
ap}{original-base.map}{ec-public-lm.map}{ec-base.map}{8r-base.map}{t5-base.map}
{original-ams-base.map}{original-ams-euler.map}{original-public-lm.map}{t2a-urw
-timescyr.map}]
systems : end file test7timescyr at line 26
system  : cont-err loaded
(E:\MiKTeX\tex\context\base\cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <

) ) 
Here is how much of TeX's memory you used:
 1337 strings out of 57725
 21657 string characters out of 577460
 590834 words of memory out of 1079821
 40050 multiletter control sequences out of 6
 76275 words of font info for 39 fonts, out of 100 for 2000
 192 hyphenation exceptions out of 8191
 51i,18n,51p,264b,540s stack positions out of 5000i,500n,1p,20b,32768s
PDF statistics:
 11 PDF objects out of 30
 0 named destinations out of 30
 5 words of extra memory for PDF output out of 1
{t2a.enc}{lm-ec.enc}
Output written on test7timescyr.pdf (1 page, 32893 bytes).

-- 
Best regards,
 Vyatcheslav

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Aditya Mahajan
On Tue, 26 Dec 2006, Sanjoy Mahajan wrote:

> I just noticed this test file failing:
> 
> \starttext
> $f'(x)$
> \startformula
> f^\prime(x)\quad f'(x)
> \stopformula
> \stoptext
> 
> It gives:
> 
> ! Undefined control sequence.
> l.4 f^\prime(x)\quad f'
>(x)
>

This is a typo in math-pln.tex. The end of the file should be

\bgroup
 \catcode`\_ = 13
 \catcode`\' = 13
 \doglobal\appendtoks
 \let_\activemathunderscore
 \let'\activemathquote
 \to \everymathematics %<--- was \everymath
\egroup

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Vyatcheslav Yatskovsky wrote:
> > I am sorry to say that this really looks like the INF of the standard
> > Times-Roman font that does not have cyrillic glyphs (and the same was
> > true of your log file).
>
> Yes, Taco, you are right. I was muddled by Extensis Suitcase which displayed 
> Cyrillic text in a font preview mode (probably, substituted?). The font 
> (tir_.pfb) itself doesn't contain any Cyrillic glyphs, indeed. Thanks a 
> lot for your point.
>
> I've abandon the Adobe font and installed Times-Roman from the  collection 
> located at at http://freshmeat.net/projects/urw-fonts-cyrillic. Texfont has 
> performed its job excellent and now I'm able to typeset Russian. (The 
> filenames for Times-Roman are n021003l.afm, n021004l.afm, n021023l.afm and 
> n021024l.afm)
>
> However, now that Russian seems OK I have stuck with Ukrainian. Despite the 
> fact that this font DOES contain all Ukrainian-specific glyphs (Ie, I, and 
> Yi; if you never saw them then see http://www.alanwood.net/demos/wgl4.html), 
> They cause errors and are replaced by wrong symbols in the output pdf file.
>
> My test script is the following
> ...
>
> \loadmapfile[t2a-urw-timescyr.map]
>
> \font\myfirstfont=t2a-n021003l
> \myfirstfont
>
> \starttext
>
>  Hello world!
>
>  Привет, мир!
>
>  Добрий день, свiтове!
>
>  Ukrainian-specific letter are {ЄєIiЇї}
>
> % \showcharacters
>
> \stoptext

I might have missed the point completely, but do you set the file
encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
anywhere? I didn't try your examples, but unless you set this
somewhere cyrilic glyphs unlikely to work properly.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Vyatcheslav Yatskovsky
> I am sorry to say that this really looks like the INF of the standard
> Times-Roman font that does not have cyrillic glyphs (and the same was
> true of your log file).

Yes, Taco, you are right. I was muddled by Extensis Suitcase which displayed 
Cyrillic text in a font preview mode (probably, substituted?). The font 
(tir_.pfb) itself doesn't contain any Cyrillic glyphs, indeed. Thanks a lot 
for your point. 

I've abandon the Adobe font and installed Times-Roman from the  collection 
located at at http://freshmeat.net/projects/urw-fonts-cyrillic. Texfont has 
performed its job excellent and now I'm able to typeset Russian. (The filenames 
for Times-Roman are n021003l.afm, n021004l.afm, n021023l.afm and n021024l.afm)

However, now that Russian seems OK I have stuck with Ukrainian. Despite the 
fact that this font DOES contain all Ukrainian-specific glyphs (Ie, I, and Yi; 
if you never saw them then see http://www.alanwood.net/demos/wgl4.html), They 
cause errors and are replaced by wrong symbols in the output pdf file.

My test script is the following
...

\loadmapfile[t2a-urw-timescyr.map]

\font\myfirstfont=t2a-n021003l
\myfirstfont

\starttext

 Hello world!

 Привет, мир!

 Добрий день, свiтове! 
 
 Ukrainian-specific letter are {ЄєIiЇї}

% \showcharacters

\stoptext


And the log file is

This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded 
format=cont-en 2006.12.25)  27 DEC 2006 00:50
entering extended mode
**test7timescyr.tex \emergencyend
(test7timescyr.tex

ConTeXt  ver: 2006.07.14 12:08  fmt: 2006.12.25  int: english  mes: english

language: language en is active

system  : cont-new loaded
(E:\MiKTeX\tex\context\base\cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(E:\MiKTeX\tex\context\base\cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(E:\MiKTeX\tex\context\base\cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(E:\MiKTeX\tex\context\user\cont-sys.rme
(E:\MiKTeX\tex\context\base\type-exa.tex)
(E:\MiKTeX\tex\context\base\type-syn.tex)
(E:\MiKTeX\tex\context\base\type-enc.tex)
(E:\MiKTeX\tex\context\base\type-siz.tex)
(E:\MiKTeX\tex\context\base\type-map.tex)
(E:\MiKTeX\tex\context\base\type-spe.tex)
(E:\MiKTeX\tex\context\base\type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
system  : test7timescyr.top loaded
(D:\~~\test7timescyr.top
specials: loading definition file tpd
(E:\MiKTeX\tex\context\base\spec-tpd.tex
specials: loading definition file fdf
(E:\MiKTeX\tex\context\base\spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex)
(E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo)
systems : begin file test7timescyr at line 12
Missing character: There is no ? in font t2a-n021003l!
Missing character: There is no к in font t2a-n021003l!
Missing character: There is no ? in font t2a-n021003l!
fonts   : resetting map file list
fonts   : using map file: lm-texnansi
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
fonts   : using map file: t2a-urw-timescyr
(E:\MiKTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-texnansi.m
ap}{original-base.map}{ec-public-lm.map}{ec-base.map}{8r-base.map}{t5-base.map}
{original-ams-base.map}{original-ams-euler.map}{original-public-lm.map}{t2a-urw
-timescyr.map}]
systems : end file test7timescyr at line 24
system  : cont-err loaded
(E:\MiKTeX\tex\context\base\cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been u

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Hans Hagen wrote:
>
> core-job.tex:\ifx\pdfshellescape\undefined \else
> core-job.tex:\chardef\systemcommandmode \ifcase\pdfshellescape
> \plusone \else \plustwo \fi
>
> so \systemcommandmode is your friend

What exactly is the advantage of using \pdfshellescape over \ifeof18
as the basis of \systemcommandmode? The second one works in XeTeX as
well while the first is only good for pdfTeX, but perhaps there are
other reasons for using it.

Thanks,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] shading with stitching functions

2006-12-26 Thread Mojca Miklavec

Hello,

I'm still trying to get shading in MetaPost as the one in the attached
eps file, but I don't manage to decipher the way how other shandings
are done.

There's a .tex file attached with a failed (hardcoded) example tries
... but I don't know where to explore further.

I would appreciate any hints,
Mojca


sampled-shading.eps
Description: PostScript document


new-shading-type-test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Martin Schröder
2006/12/26, Mojca Miklavec <[EMAIL PROTECTED]>:
> Wait! So many alternatives that I'll have to create another function
> to choose one of them randomly ;)

pdftex 1.30 has functions for random numbers. :-)

Best
   Martin
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Hans Hagen wrote:
> Peter Münster wrote:
> > On Tue, 26 Dec 2006, Mojca Miklavec wrote:
> >
> >
> >> is there any command to test for write18/shell escape available in ConTeXt?
> >>
> > There is such a command in pdfTeX-1.40 but I don't remember the name
> > (I think it's "\ifshellescape").
> > Cheers, Peter
> >
> >
>  >grep shellescape *.tex
> core-job.tex:\ifx\pdfshellescape\undefined \else
> core-job.tex:\chardef\systemcommandmode \ifcase\pdfshellescape
> \plusone \else \plustwo \fi
>
> so \systemcommandmode is your friend

Wait! So many alternatives that I'll have to create another function
to choose one of them randomly ;)

Thanks a lot, (I'll use \systemcommandmode then),
   Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Sanjoy Mahajan
I just noticed this test file failing:

\starttext
$f'(x)$
\startformula
f^\prime(x)\quad f'(x)
\stopformula
\stoptext

It gives:

! Undefined control sequence.
l.4 f^\prime(x)\quad f'
   (x)

As you can see from lack of complaint about $f'(x)$, the ' still works
in inline math mode.  So somehow the ' active charcode setting didn't
make it into display-math mode?

I couldn't get any tests to produce a PDF file on the live context, so I
didn't test it there.  But I'm using:

ConTeXt  ver: 2006.12.20 23:52 MK II  fmt: 2006.12.25

-Sanjoy

`A nation of slaves is always prepared to applaud the clemency of their
 master who, in the abuse of absolute power, does not proceed to the
 last extremes of injustice and oppression.'  (Gibbon)  
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Hans Hagen
� wrote:
> On Tue, 26 Dec 2006, Mojca Miklavec wrote:
>
>   
>> is there any command to test for write18/shell escape available in ConTeXt?
>> 
>
> There is such a command in pdfTeX-1.40 but I don't remember the name
> (I think it's "\ifshellescape").
> Cheers, Peter
>
>   
 >grep shellescape *.tex
core-job.tex:\ifx\pdfshellescape\undefined \else
core-job.tex:\chardef\systemcommandmode \ifcase\pdfshellescape 
\plusone \else \plustwo \fi

so \systemcommandmode is your friend

-- 

-
  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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-26 Thread Hans Hagen
Hans van der Meer wrote:
> On Dec 24, 2006, at 0:21, Sanjoy Mahajan wrote:
>
>   
>>  ConText is developed rapidly, ... and illustrates the free- 
>> software philosophy of "release
>> often",  sometimes twice a day!  (<< my emphasis here, hvdm)
>> 
>
> I wouldn't stress that fact in this manner. And at the least advice  
> to rephrase this. From the formulation used here, people could get  
> the impression that ConTeXt is an extremely instable product and for  
> that reason refrain from using it. That would be a pity.
>   
the reason for updating current instead of beta has a few reasons (1) it's 
easier for me to update servers using ctxtools --update and (2) we near the tex 
live code freeze, after that we will probably go beta again, which (3) will 
also update frequently because taco and i are actively working on luatex (mkiv) 
code which demands mkii/mkiv code splitting 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Making a verbatim file for another language

2006-12-26 Thread cormullion
After looking at these files a bit more closely, I decided I didn't  
have a week to spare. Too much to learn and too few instructions. For  
now I'm sticking with plain old black verbatim code listings.  
Sometimes one has to set one's sights a little lower...! :-)

But thanks again.

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Martin Schröder
2006/12/26, Peter Münster <[EMAIL PROTECTED]>:
> There is such a command in pdfTeX-1.40 but I don't remember the name
> (I think it's "\ifshellescape").

It's new in 1.30:
  - \pdfshellescape is a read-only integer that is 1 if \write18 is enabled, 0
otherwise.

Best
   Martin
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Henning Hraban Ramm
Am 2006-12-26 um 19:57 schrieb Peter Münster:

>> is there any command to test for write18/shell escape available in  
>> ConTeXt?
>
> There is such a command in pdfTeX-1.40 but I don't remember the name
> (I think it's "\ifshellescape").

\ifeof18

 From the t-lilypond sources:
%D If \type{\ifeof18} creates an error for you, your pdfetex is too old.
%D (\type{\ifeof18} checks whether \type{\write18} is disabled.)




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Peter Münster
On Tue, 26 Dec 2006, Mojca Miklavec wrote:

> is there any command to test for write18/shell escape available in ConTeXt?

There is such a command in pdfTeX-1.40 but I don't remember the name
(I think it's "\ifshellescape").
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Making a verbatim file for another language

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Henning Hraban Ramm wrote:
> Am 2006-12-25 um 11:38 schrieb Taco Hoekwater:
>
> > There a few definition files already there, and you should start
> > from the one that is closest to the language you want to define
> > (especially wrt comment and string syntax).
> > ...
> > Good luck, Taco
>
> I found that interesting and wikified it at http://
> wiki.contextgarden.net/Verbatim_text (plus Mojca's comment to wait
> for LuaTeX) ;-)

Thanks for the remark. It seems that I'm not checking the wiki pages
reguraly enough to remove spam before others notice it ;)

Well ... I would now rather corerct my own remark into " ... or wait a
few days for Aditya's mail" ;)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \ifshellescape

2006-12-26 Thread Aditya Mahajan
On Tue, 26 Dec 2006, Mojca Miklavec wrote:

> Hello,
> 
> is there any command to test for write18/shell escape available in ConTeXt?

\ifeof18 checks if write18 is disabled. I think that it is etex only.


The next method is error prone, for a lot of reasons, the directory 
/tmp may not exist (atleast in Windows). A bit safer option may be 
$TEMP. I do not know of \ifmiktex switch, but I am sure TeXLive on 
windows will not set it to true.

> In one of the LaTeX packages I saw:
> 
> \newif\ifShellEscape
> ...
> \ifShellEscape
>\def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time}
>\ifmiktex
>   \immediate\write18{rem >"\tmpfile"}
>\else
>   \immediate\write18{touch \tmpfile}
>\fi
>\ifmiktex
>   \IfFileExists{\tmpfile.}{\ShellEscapetrue}{\ShellEscapefalse}
>\else
>   \IfFileExists{\tmpfile}{\ShellEscapetrue}{\ShellEscapefalse}
>\fi
> \fi
>

HTH,
Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Making a verbatim file for another language

2006-12-26 Thread Henning Hraban Ramm
Am 2006-12-25 um 11:38 schrieb Taco Hoekwater:

> There a few definition files already there, and you should start
> from the one that is closest to the language you want to define
> (especially wrt comment and string syntax).
> ...
> Good luck, Taco

I found that interesting and wikified it at http:// 
wiki.contextgarden.net/Verbatim_text (plus Mojca's comment to wait  
for LuaTeX) ;-)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \ifshellescape

2006-12-26 Thread Mojca Miklavec
Hello,

is there any command to test for write18/shell escape available in ConTeXt?


In one of the LaTeX packages I saw:

\newif\ifShellEscape
...
\ifShellEscape
   \def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time}
   \ifmiktex
  \immediate\write18{rem >"\tmpfile"}
   \else
  \immediate\write18{touch \tmpfile}
   \fi
   \ifmiktex
  \IfFileExists{\tmpfile.}{\ShellEscapetrue}{\ShellEscapefalse}
   \else
  \IfFileExists{\tmpfile}{\ShellEscapetrue}{\ShellEscapefalse}
   \fi
\fi

Thanks a lot,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context