Re: [NTG-context] metapost and luatex (or xetex)

2008-10-06 Thread Mojca Miklavec
On Sat, Oct 4, 2008 at 2:14 PM, Diego Depaoli wrote:
> 2008/10/3 Hans Hagen:
>> is ok, use btex color[white]{COPYRIGHT} etex instead
>
> Please see attached output...
> I missed such command?

\color[gray] of course

Mojca
___
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] Fails to load certain Chinese fonts (Yanrui Li)

2008-10-06 Thread Yanrui Li
These problems which include lousy code of certain Chinese fonts in
pdf that is generated by MkIV, seem to connect with LuaTeX.

>From revision 1525 to 1535, LuaTeX can always work very well except
text of using SimSun font is lousy code in pdf.

After cleaning $TEXMFCACHE,  I compiled revision 1540 of LuaTeX and
used it, and then I encountered fails to load almost Chinese fonts.
However, if I don't  clean $TEXMFCACHE generated by revision 1535 of
LuaTeX and use revision 1541, there is no any problem.
___
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] How to obtain blackboard bold?

2008-10-06 Thread Aditya Mahajan
On Sun, 5 Oct 2008, Marcin Borkowski wrote:

> As in subject;)
>
> I found out that {\mb R} gives me the symbol for the real line; is it
> _the_ ConTeXt way or should I do it in another way?

The context way is \reals

Other symbols defined are (in math-ams.tex)

\definemathcommand [integers]   {\blackboard{Z}}
\definemathcommand [reals]  {\blackboard{R}}
\definemathcommand [rationals]  {\blackboard{Q}}
\definemathcommand [naturalnumbers] {\blackboard{N}}
\definemathcommand [complexes]  {\blackboard{C}}
\definemathcommand [primes] {\blackboard{P}}

You can also use \blackboard{R} instead of {\mb R}.

Aditya
___
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] strange problem with mkiv (windows)

2008-10-06 Thread .
Same over here Peter with XP SP3.


On Mon, Oct 6, 2008 at 3:08 PM, Peter Rolf <[EMAIL PROTECTED]> wrote:

> Hi,
>
> the following code breaks compilation here (XP SP3).
>
> \starttext
> \limitatefirstline{\underbar{WqTextdummy}}{8ex}{...}
> \stoptext
>
>
> [..]
> systems: begin file crop2 at line 2
> ! Emergency stop.
> \processisolatedwords ...latedlastskip \lastskip }
>  \setbox 2\normalvbox
> {\lef...
> \redounderbar ...sisolatedwords {#2}\dodounderbar
>  \egroup
> \limitatefirstline ...ratchbox \hbox {\begstrut #1
>  \endstrut }\ifdim \wd
> \scr...
> l.4 ...firstline{\underbar{WqTextdummy}}{8ex}{...}
>
> !  ==> Fatal error occurred, no output PDF file produced!
> MtxRun | loading configuration for r:/tex/texmf/web2c from
>
> r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/trees/b69cd8db662fdc8e4c09165909c3f8af
> MtxRun | run 1: luatex
>
> --fmt="r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/formats/cont-en"
>
> --lua="r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/formats/cont-en.lua"
> "./crop2"
> MtxRun | fatal error, code: 1
>
>
> I also tried with latest untouched minimals, but same result. If I
> remove the \underbar macro, things work ok.
>
> My first thought was, that this is related to attributes. *Strangely the
> example has no problems on contextgarden.* Can anyone with Windos OS
> test, if this is a general (windows) problem? Thanks.
>
>
> Best wishes, Peter
>
>
>
> ___
> 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
>
> ___
>
>
___
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] Some Metapost Problems

2008-10-06 Thread Mojca Miklavec
On Sun, Oct 5, 2008 at 8:03 PM, Wolfgang Werners-Lucchini wrote:
> Hallo,
>
> I have a lot of problems with the following example:
> 

> \startuseMPgraphic{Wochentage}
...
>  label.top(\sometxt{Samstag}, z0) ;

> 1. The labels of the first graphic are xscaled (randomly)

They are not scaled randomly :P
They inherit the sizes from the second graphic.

See
http://archive.contextgarden.net/message/20061204.102337.280a6589.en.html

> when the
> second graphic is included. Comment the second, and the first is ok.
> What I am doing wrong here?

You need
\runMPgraphicstrue

> This seems to be ok with luatex.

LuaTeX is a story on its own. It works differentrly anyway.

> 2. The settings in \startMPenvironment do not use the smaller font
> size [8pt] without [global]. And the outside Text (Bla) remains not
> big [11pt] with [global]. How can I toggle the two sizes differently?

These settings are used exclusevely for btex ... etex and textext.
\sometxt uses the surounding font.

There could be some settings for fonts in metapost graphics, but I'm
not aware of any.
However, it's rather easy to either:

a) write your own metapost macro for placing labels that scales down
everything by 20%
label.top(myscaled(\sometxt{Samstag}), z0) ;
where
vardef myscaled(expr t) = (t scaled 0.8) enddef;

b) write your own handle
\definetextext[scaled]{\switchtobodyfont[8pt]\strut}
and then
label.top(\sometxt[scaled]{Samstag}, z0) ;

c) write your own macro or put some font size switch in front of the
graphic (I did not try it out)
\long\def\startuseMPgraphicwithscaledtext#1\stopuseMPgraphicwithscaledtext
{\bgroup\switchtobodyfont[8pt]\startuseMPgraphic#1\stopuseMPgraphic\egroup}

Disclaimer: I did not try out any of the methods mentioned about, so
it might be that they don't work and need some syntactic changes, but
they should work in principle.

> 3. After editing the mp-code I allways have to purge files between
> two runs. Is this normal?

Probably not, but I somehow got used to run every document twice
before getting the right graphic. It should be fixed, but Hans is
probably focused on mkiv now.

Mojca
___
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] A problem on lousy code of certain Chinese fonts in pdf

2008-10-06 Thread Yanrui Li
Hi,

When I used SimSun font in the newest MkIV (2008.10.3), I found lousy
code in pdf document, as an example attached to in this email, and I
am sure that there is no this problem in the version 2008.10.1.

Best wishes.

Li Yanrui


example.tar.gz
Description: GNU Zip compressed data
___
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] a bug of math subscript

2008-10-06 Thread Aditya Mahajan
On Sun, 5 Oct 2008, Zhaopeng Xing wrote:

> Hi,
>
> I found a strange problem with the latest beta on my linux box. $\cal{F}_t$
> produces no subscript as in the attachment.

There are no lowercase caligraphic letters. Did you mean ${\cal F}_t$ or 
$\cal F_T$?

Aditya
___
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] Fails to load certain Chinese fonts

2008-10-06 Thread Yanrui Li
Hi,

In MkIV of last beta version (2008.10.03 23:45), when I was loading
certain Chinese fonts such as AdobeSongStd-Light or SimSun,  LuaTeX
happened to be interrupted.

As the following example:

\definefontfeature
  [zh][mode=node,script=hang,lang=zhs]
\definefontsynonym
  [Song][name:AdobeSongStd-Light][features=zh]
\definefont[myfont][Song at 12pt]

\starttext
\myfont
中文~English~之间的间隔\par
中文\;English\;之间的间隔
\stoptext

I got such informations of error:

load otf | loading: /usr/share/fonts/adobe/AdobeSongStd-Light.otf
load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4
(EUC-CN->UTF-8)
load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4
(EUC-CN->UTF-8)
load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4
(EUC-CN->UTF-8)
load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4
(EUC-CN->UTF-8)
MtxRun | fatal error, message: luatex: execution interrupted

Now, I can't compile any Chinese document using MkIV.
___
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] metapost and luatex (or xetex)

2008-10-06 Thread luigi scarso
On Sat, Oct 4, 2008 at 2:14 PM, Diego Depaoli <[EMAIL PROTECTED]> wrote:

> 2008/10/3 Hans Hagen <[EMAIL PROTECTED]>:
> > Diego Depaoli wrote:
> >> Hi all,
> >> from metafun manual, page 157, I took this example
> >>
> >> \startuniqueMPgraphic{copyright}
> >> picture p ; p := btex COPYRIGHT etex rotated 90 ;
> >> setbounds p to boundingbox p enlarged 1pt ;
> >> draw p withcolor .8white ;
> >> xyscale_currentpicture(\the\leftmarginwidth,\the\textheight) ;
> >> \stopuniqueMPgraphic
> >> \setuptexttexts [margin] [] [\uniqueMPgraphic{copyright}]
> >> \starttext
> >> \input knuth
> >> \stoptext
> >>
> >> but compiling it I get some trouble
> >>
> >> texexec --pdf works as expected
> >> texexec --lua drops colors (COPYRIGHT is black)
> >
> > is ok, use btex color[white]{COPYRIGHT} etex instead
>
(prepend \setupcolors[state=start])

btex \color[gray]{COPYRIGHT} etex %% gray
btex \color[white]{COPYRIGHT} etex %% white (hard to see with a white
background)

-- 
luigi
___
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] relative file locations when compiling from different folders (in projects)

2008-10-06 Thread luigi scarso
On Sun, Oct 5, 2008 at 8:17 PM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:

> Am 2008-10-03 um 20:15 schrieb Hans Hagen:
>
>  I'm just wondering if there's some recipe about how to simplify the
>  work when icluding other files and images in projects, when one is
>  compiling from different folders.
> >>> \usepath[..]
> >>> \usesubpath[...] (on top of paths)
> >>> \setupexternalfigures[directory={.}]
> >> I knew that there must be some secret to do it in some more elegant
> >> way than I was trying to cook up.
> > you don't want to know how old these features are
>
>
> 2 hours? 2 days? or 10 years?
>
\usepath and \usesubpath are in core-job
at least from
\def\contextversion{2002.6.25}



-- 
luigi
___
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] Some Metapost Problems

2008-10-06 Thread Wolfgang Werners-Lucchini
Hallo,

I have a lot of problems with the following example:

\usetypescriptfile[type-exa]
\usetypescript[iwona][ec]
\setupbodyfont[iwona,11pt]

\startMPenvironment%[global]
\usetypescript[iwona][ec]
\setupbodyfont[iwona,8pt]
\stopMPenvironment

\startuseMPgraphic{Wochentage}
 save x,y ;

 z0 = (3cm,6cm) ;
 for i:=1 upto 6:
  z[i] = z[i-1] rotatedaround((3cm,3cm),720/7) ;
 endfor ;

 label.top(\sometxt{Samstag}, z0) ;
 label.lft(\sometxt{Donnerstag}, z1) ;
 label.lrt(\sometxt{Dienstag}, z2) ;
 label.urt(\sometxt{Sonntag}, z3) ;
 label.ulft(\sometxt{Freitag}, z4) ;
 label.llft(\sometxt{Mittwoch}, z5) ;
 label.rt(\sometxt{Montag}, z6) ;
\stopuseMPgraphic

\startuseMPgraphic{Tierkreis}
 save x,y ;

 z0 = (4cm,8cm) rotatedaround((4cm,4cm),15) ;
 for i:=1 upto 11:
  z[i] = z[i-1] rotatedaround((4cm,4cm),30) ;
 endfor ;

 label.ulft(\sometxt{Zwillinge}, z0) ;
 label.ulft(\sometxt{Stier}, z1) ;
 label.lft(\sometxt{Widder}, z2) ;
 label.lft(\sometxt{Fische}, z3) ;
 label.llft(\sometxt{Wassermann}, z4) ;
 label.llft(\sometxt{Steinbock}, z5) ;
 label.lrt(\sometxt{Schütze}, z6) ;
 label.lrt(\sometxt{Skorpion}, z7) ;
 label.rt(\sometxt{Waage}, z8) ;
 label.rt(\sometxt{Jungfrau}, z9) ;
 label.urt(\sometxt{Löwe}, z[10]) ;
 label.urt(\sometxt{Krebs}, z[11]) ;
\stopuseMPgraphic

\starttext

\useMPgraphic{Wochentage}

Bla

\useMPgraphic{Tierkreis}

\stoptext


1. The labels of the first graphic are xscaled (randomly) when the 
second graphic is included. Comment the second, and the first is ok.
What I am doing wrong here?

This seems to be ok with luatex.

2. The settings in \startMPenvironment do not use the smaller font 
size [8pt] without [global]. And the outside Text (Bla) remains not 
big [11pt] with [global]. How can I toggle the two sizes differently?

3. After editing the mp-code I allways have to purge files between 
two runs. Is this normal?

Thanks for your help

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
___


[NTG-context] a bug of math subscript

2008-10-06 Thread Zhaopeng Xing
Hi,

I found a strange problem with the latest beta on my linux box. $\cal{F}_t$
produces no subscript as in the attachment.

-- 
Zhaopeng XING

Tinbergen Institute


zpxing.tar.gz
Description: GNU Zip compressed data
___
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] How to obtain blackboard bold?

2008-10-06 Thread Marcin Borkowski
As in subject;)

I found out that {\mb R} gives me the symbol for the real line; is it
_the_ ConTeXt way or should I do it in another way?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Kim jest ta, co wyłania się z pustyni,
Idzie wsparta na swoim Oblubieńcu?
___
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] strange problem with mkiv (windows)

2008-10-06 Thread Peter Rolf
Hi,

the following code breaks compilation here (XP SP3).

\starttext
\limitatefirstline{\underbar{WqTextdummy}}{8ex}{...}
\stoptext


[..]
systems: begin file crop2 at line 2
! Emergency stop.
\processisolatedwords ...latedlastskip \lastskip }
  \setbox 2\normalvbox
{\lef...
\redounderbar ...sisolatedwords {#2}\dodounderbar
  \egroup
\limitatefirstline ...ratchbox \hbox {\begstrut #1
  \endstrut }\ifdim \wd
\scr...
l.4 ...firstline{\underbar{WqTextdummy}}{8ex}{...}

!  ==> Fatal error occurred, no output PDF file produced!
MtxRun | loading configuration for r:/tex/texmf/web2c from
r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/trees/b69cd8db662fdc8e4c09165909c3f8af
MtxRun | run 1: luatex
--fmt="r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/formats/cont-en"
--lua="r:/tex/texmf-cache/luatex-cache/context/d0b787cd25b9175dc4eaa276af366360/formats/cont-en.lua"
"./crop2"
MtxRun | fatal error, code: 1


I also tried with latest untouched minimals, but same result. If I
remove the \underbar macro, things work ok.

My first thought was, that this is related to attributes. *Strangely the
example has no problems on contextgarden.* Can anyone with Windos OS
test, if this is a general (windows) problem? Thanks.


Best wishes, Peter


___
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] substitutions

2008-10-06 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

Sometimes I use the following for simple substitutions:

\defineactivecharacter  '  {\otfchar{quoteright}}

But is there a more general mechanism to do things

\definesubstitution{}{}

eg

\definesubstitution{--}{–}

Of course ConTeXt already provides this particular substitution but I'm  
interested in such a mechanism for more general purposes.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] metapost and luatex (or xetex)

2008-10-06 Thread Diego Depaoli
2008/10/4 Mojca Miklavec <[EMAIL PROTECTED]>:
> In the case of XeTeX: no, it's not normal. If you add
> \loadmapfile[lm-ec.map] this solves the problem, but if I was on your
> place, I would use \sometxt{COPYRIGHT} instead of btex COPYRIGHT etex.
\sometxt works nice.

Many thanks.
-- 
Diego Depaoli
___
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] hz broken?

2008-10-06 Thread Steffen Wolfrum

Hi,

in current luatex snapshot
(LuaTeX, Version snapshot-0.30.0-2008093012, ConTeXt  ver: 2008.10.03  
23:45)

hz seems to be broken (unless I made a typo here):


\definefontfeature[hz][default] 
[protrusion=pure,expansion=quality,mode=node,script=latn]

\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default][features=hz]

\setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
\setupalign[line,block,hanging,hz]

\starttext

\showframe

\input tufte

\stoptext




hz_test_mkiv.pdf
Description: Adobe PDF document




Steffen___
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] off-topic : about smultron

2008-10-06 Thread Dalyoung Jeong
Dear all,

I hope that you understand a little bit off topic question.

Recently, I installed smultron and set it up to use ConTeXt Minimals  
following the instruction in ConTeXt wiki.
Basically it worked.
But the command result window didn't properly show what is going on  
during the compilation.
But it appeared some time but it didn't some other time. I couldn't  
figure out when it did and when it didn't.
Even in the case that it showed the result, it didn't refresh after I  
compiled the same file again.

Does some one help me to fix it?

Thank you.

Best regards,

Dalyoung
___
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] metapost and luatex (or xetex)

2008-10-06 Thread Diego Depaoli
2008/10/3 Hans Hagen <[EMAIL PROTECTED]>:
> Diego Depaoli wrote:
>> Hi all,
>> from metafun manual, page 157, I took this example
>>
>> \startuniqueMPgraphic{copyright}
>> picture p ; p := btex COPYRIGHT etex rotated 90 ;
>> setbounds p to boundingbox p enlarged 1pt ;
>> draw p withcolor .8white ;
>> xyscale_currentpicture(\the\leftmarginwidth,\the\textheight) ;
>> \stopuniqueMPgraphic
>> \setuptexttexts [margin] [] [\uniqueMPgraphic{copyright}]
>> \starttext
>> \input knuth
>> \stoptext
>>
>> but compiling it I get some trouble
>>
>> texexec --pdf works as expected
>> texexec --lua drops colors (COPYRIGHT is black)
>
> is ok, use btex color[white]{COPYRIGHT} etex instead

Please see attached output...
I missed such command?

-- 
Diego Depaoli


test.pdf
Description: Adobe PDF document
___
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] relative file locations when compiling from different folders (in projects)

2008-10-06 Thread Henning Hraban Ramm
Am 2008-10-03 um 20:15 schrieb Hans Hagen:

 I'm just wondering if there's some recipe about how to simplify the
 work when icluding other files and images in projects, when one is
 compiling from different folders.
>>> \usepath[..]
>>> \usesubpath[...] (on top of paths)
>>> \setupexternalfigures[directory={.}]
>> I knew that there must be some secret to do it in some more elegant
>> way than I was trying to cook up.
> you don't want to know how old these features are


2 hours? 2 days? or 10 years?

Never saw \use(sub)path before...
Would have solved some of my own problems.


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

___
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] hz MkIV

2008-10-06 Thread Steffen Wolfrum

Am 04.10.2008 um 00:25 schrieb Hans Hagen:

> Steffen Wolfrum wrote:
>> Hi,
>>
>> in MkIV hz is bound to the found (thus the speed increase).
>>
>> Now, how do I assign different degrees of hz to different areas?
>> Say, moderate hz in the normal text and more drastic in controlled
>> situation, like this:
>>
>> % main text:
>> \setupbodyfont[postscript,10pt]
>> \setupalign[block,hanging,hz]
>>
>> % and in controlled situation:
>> \setupwhatever[align=hzXXL,style=...]
>>
>>
>> This doesn't work:
>>
>> fonts.expansions.classes['NormalQuality'] = {
>> stretch = 1, shrink = 1, step = .5, vector = 'default', factor  
>> = 1
>> }
>>
>> fonts.expansions.classes['DrasticQuality'] = {
>> stretch = 2, shrink = 2, step = .5, vector = 'default', factor  
>> = 1
>> }
>>
>>
>> \definefontfeature[hz][default]
>> [protrusion=pure,expansion=sstquality,mode=node,script=latn]
>> \definefontfeature[hzXXL][default]
>> [protrusion=pure,expansion=sstquality,mode=node,script=latn]
>>
>> \usetypescript[postscript]
>> \definetypeface[postscript][rm][serif][times][default][features=hz]%
>> <- what to do with hzXXL ???
>
> just define an extra typeface with different characteristics



Well, how to define an extra typeface to a hidden predefined  
typescript "postscript"?
The following might work, but it is admittedly a very, very ugly hack  
(redefining poor sans helvetica  ...).

Thus, please: any improvement very welcome!!

Thanks,
Steffen
=

\starttypescript [sans] [helvetica]
   \definefontsynonym [Helvetica] [file:texgyretermes- 
regular][features=default]
   \definefontsynonym [Helvetica-Oblique] [file:texgyretermes- 
italic] [features=default]
   \definefontsynonym [Helvetica-Bold][file:texgyretermes- 
bold]   [features=default]
   \definefontsynonym [Helvetica-BoldOblique] [file:texgyretermes- 
bolditalic] [features=default]
   \definefontsynonym [Helvetica-Caps][file:texgyretermes- 
regular][features=smallcaps]
\stoptypescript

\starttypescript [postscript]
 \definetypeface [postscript] [rm] [serif] [times] [default]
 \definetypeface [postscript] [ss] [sans]  [helvetica] [default]  
[rscale=2]
 \definetypeface [postscript] [tt] [mono]  [courier]   [default]  
[rscale=1.1]
 \definetypeface [postscript] [mm] [math]  [times] [default]
 \quittypescriptscanning
\stoptypescript


\startluacode
fonts.expansions.classes['extraquality'] = {
 stretch = 2, shrink = 2, step = .5, vector = 'default', factor = 1
}
\stopluacode
%
\definefontfeature[hz][default] 
[protrusion=pure,expansion=quality,mode=node,script=latn]
\definefontfeature[extrahz][default] 
[protrusion=pure,expansion=extraquality,mode=node,script=latn]
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default][features=hz]
\definetypeface[postscript][ss][sans][helvetica][default] 
[features=extrahz]


\setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
\setupalign[line,block,hanging,hz]

\starttext

\showframe

\input tufte

{\ss \input tufte }

\input tufte


\stoptext
___
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] Downloading problem

2008-10-06 Thread Mehdi Omidali
Hi everyone,
I tried to download the linux minimal several times but I couldn't and
the download progress stoped after 26%. Is the link correct?
Thanks
MO
___
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] highlight VB typesetting

2008-10-06 Thread Zhaopeng Xing
Hi,

I want to type a VB code file named "vba.bas" in context. After read the
manual, the following codes seems not working well for me. Any suggestion?
There are two features desired: language-specific color typing and small
style. Thanks.

 \definetyping[vb]

\setuptyping[vb][style=small,option=color]

\typefile{assignment1.bas}{vb}


-- 
Zhaopeng XING

Tinbergen Institute
___
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] Some Metapost Problems

2008-10-06 Thread Wolfgang Werners-Lucchini
Hallo,

I have a lot of problems with the following example:

\usetypescriptfile[type-exa]
\usetypescript[iwona][ec]
\setupbodyfont[iwona,11pt]

\startMPenvironment%[global]
\usetypescript[iwona][ec]
\setupbodyfont[iwona,8pt]
\stopMPenvironment

\startuseMPgraphic{Wochentage}
 save x,y ;

 z0 = (3cm,6cm) ;
 for i:=1 upto 6:
  z[i] = z[i-1] rotatedaround((3cm,3cm),720/7) ;
 endfor ;

 label.top(\sometxt{Samstag}, z0) ;
 label.lft(\sometxt{Donnerstag}, z1) ;
 label.lrt(\sometxt{Dienstag}, z2) ;
 label.urt(\sometxt{Sonntag}, z3) ;
 label.ulft(\sometxt{Freitag}, z4) ;
 label.llft(\sometxt{Mittwoch}, z5) ;
 label.rt(\sometxt{Montag}, z6) ;
\stopuseMPgraphic

\startuseMPgraphic{Tierkreis}
 save x,y ;

 z0 = (4cm,8cm) rotatedaround((4cm,4cm),15) ;
 for i:=1 upto 11:
  z[i] = z[i-1] rotatedaround((4cm,4cm),30) ;
 endfor ;

 label.ulft(\sometxt{Zwillinge}, z0) ;
 label.ulft(\sometxt{Stier}, z1) ;
 label.lft(\sometxt{Widder}, z2) ;
 label.lft(\sometxt{Fische}, z3) ;
 label.llft(\sometxt{Wassermann}, z4) ;
 label.llft(\sometxt{Steinbock}, z5) ;
 label.lrt(\sometxt{Schütze}, z6) ;
 label.lrt(\sometxt{Skorpion}, z7) ;
 label.rt(\sometxt{Waage}, z8) ;
 label.rt(\sometxt{Jungfrau}, z9) ;
 label.urt(\sometxt{Löwe}, z[10]) ;
 label.urt(\sometxt{Krebs}, z[11]) ;
\stopuseMPgraphic

\starttext

\useMPgraphic{Wochentage}

Bla

\useMPgraphic{Tierkreis}

\stoptext


1. The labels of the first graphic are xscaled (randomly) when the 
second graphic is included. Comment the second, and the first is ok.
What I am doing wrong here?

This seems to be ok with luatex.

2. The settings in \startMPenvironment do not use the smaller font 
size [8pt] without [global]. And the outside Text (Bla) remains not 
big [11pt] with [global]. How can I toggle the two sizes differently?

3. After editing the mp-code I allways have to purge files between 
two runs. Is this normal?

Thanks for your help

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] misbehaving \column

2008-10-06 Thread Henning Hraban Ramm
Am 2008-10-03 um 18:40 schrieb Mojca Miklavec:

> The \column command does not want to obey me ... The text following
> \column simply jumps to the next page.
> This time I cannot think of any workaround :(
> Well, in the worst case I can still insert a table.
>
> \starttext
> \section{first}
> \dorecurse{80}{dummy }
> \startcolumns
> \externalfigure[dummy][width=\textwidth]
> \input tufte
> \column
> \input tufte
> \stopcolumns
> \input tufte
> \stoptext


I'm complaining since about 2002 that \column does nothing (at least  
not reliably) within \startcolums ... \stopcolumns.

Finally I resorted to column sets, that works for me.


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

___
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] showcase on mac?

2008-10-06 Thread John Culleton
On Sunday 28 September 2008 08:13:15 am Hans Hagen wrote:
> Frans Goddijn wrote:
> > Willi Egger helped me get a minimal install working on my mac and
> > I'm working on a collection of columns illustrated with pictures.
> > It's been a while since I used Context so I want to download some
> > basic manuals to refresh my memory and learn new things.
> >
> > On my Windows machine I can view/navigate and download manuals
> > from the http://www.pragma-ade.nl/showcase.pdf
> > page, but on my mac this doesn't work. In the Safari browser,
> > nothing happens if I click on the "manuals" link. In Firefox, the
> > showcase PDF is downloaded and I can open it. After allowing the
> > file to go full screen, I get error messages for the links "there
> > was an error opening this document/ the file cannot be found',
> > execpt on the "quit" link ;-)
> >
> > Is there a simple thing I should change to make it work on the
> > mac as well?
>
> doesn't acrobat work? (the mac pdf browser is somewhat limited);
> best use acrobat reader as plugin

I use Acrobat Reader 8 on my Slackware Linux 12.0 system with Firefox 
as the browser.  The main page comes up but when I click on e.g., 
Manuals or Examples I get a File Not Found error. 

I experimented with Konqueror and Kpdf as the viewer.  That seems to 
work, but slowly because of the download time.  

Il try to switch Firefox to Kpdf to see if that will work. 

-- 
John Culleton
Precision Typesetting
Able Indexers and Typesetters
http://wexfordpress.com
___
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
___