[NTG-context] Mail troubles

2005-08-10 Thread Taco Hoekwater

Hi,

I just want to let everybody know that I am experiencing problems with
email delivery since monday morning around 8 a.m. Hopefully, everything
should return to normal during the day. I'm writing this because chances
are that I've missed some mail addressed to me, esp. private off-list
email. If you expect me to answer to something you sent, it is probably
wisest to re-send it.

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


Re: [NTG-context] Clipping a path to a boundary --- Being more specific

2005-08-10 Thread David Arnold

Hans et al,

I think I've found something that works. I know ahead of time that 
there will only be two crossings of the clipping path boundary (I make 
sure of the by the parameters I choose):


beginfig(0);

% initialize a, h, and h for f(x)=ax^2+bx+c=a(x-h)^2+k
numeric a, h, k;
a=-1;
h=-3;
k=2;

% initialize scale
numeric u; 10u=3in;

% draw grid
for k=-5u step 1u until 5u:
draw (-5u,k)--(5u,k) withcolor 0.85white;
draw (k,-5u)--(k,5u) withcolor 0.85white;
endfor;

% draw axes
drawarrow (-5u,0)--(5u,0);
drawarrow (0,-5u)--(0,5u);

% label axes
label.rt(btex $x$ etex, (5.2u,0));
label.top(btex $y$ etex, (0,5.2.u));
label.bot(btex $5$ etex, (5u,0));
label.lft(btex $5$ etex, (0,5u));

% define function f(x)=a|x-b|+c
vardef f(expr x)=
a*(x-h)*(x-h)+k
enddef;

% draw line with given point and slope
path F;
F:=(-6,f(-6));
for x=-6 step .1 until 6:
F:=F--(x,f(x));
endfor;

% the line
F:=F scaled 1u;

% clipping path
path cpath;
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle;
cpath:=cpath scaled 1u;

% clip the path F
pair A, B;
F:=F cutbefore cpath;
F:=reverse F;
F:=F cutbefore cpath;
drawdblarrow F;



endfig;

end.

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


Re: [NTG-context] MPcolor problem (CMYK)

2005-08-10 Thread Vit Zyka

Jin-Hwan Cho wrote:

In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
using the color .5\MPcolor{cmyyellow}. But I could not generate
the color. Could anyone check the attached sample?


Let check
- \setupcolors[state=start]
- perhaps typo 'cmyyellow - cmykyellow' or define it by yourself:
  \definecolor[cmyyellow][c=0,m=0,y=1,k=0]

Cheers
vit


Best, ChoF.

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


Re: [NTG-context] MPcolor problem (CMYK)

2005-08-10 Thread Taco Hoekwater

Vit Zyka wrote:

Jin-Hwan Cho wrote:


In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
using the color .5\MPcolor{cmyyellow}. But I could not generate
the color. Could anyone check the attached sample?



Let check
- \setupcolors[state=start]
- perhaps typo 'cmyyellow - cmykyellow' or define it by yourself:
  \definecolor[cmyyellow][c=0,m=0,y=1,k=0]


Both were present in the example. I've created a collector item
for this. (which means that I believe it really is a bug :-))

  http://context.literatesolutions.com/collector/22/pcng_issue_view

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


Re: [NTG-context] MPcolor problem (CMYK)

2005-08-10 Thread Mojca Miklavec
Jin-Hwan Cho wrote:
 In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
 using the color .5\MPcolor{cmyyellow}. But I could not generate
 the color. Could anyone check the attached sample?

You get pretty different results depending on what you write to
\setupcolors[conversion=yes/no/always,reduction=yes/no,rgb=yes/no,cmyk=yes/no,mpcmyk=yes/no]
but I don't know what exactly they mean. The example in the manual
with \MPcolor{cmyyellow} doesn't seem to be proper cmyk kind of
yellow (c=0.08,m=0,y=0.89,k=0), so Hans probably used a set of setups
which handles the .5\MPcolor{cmyyellow} the same way as if it was an
rgb yellow.

Does \setupcolors[cmyk=no] suit your needs? However, you have to be
aware that your cmyyellow won't be y=1 any more, but the yellow
mentioned above.

Your example results in a color that is (c=.68,m=.71,y=.64,k=.86), so
it is still a kind of OK mixing, but the computer doesn't know in
which way you would like the colors to be mixed.


An alternative (for brighter colors in this case) is to write

.5[\MPcolor{cmyyellow},\MPcolor{cmywhite}]

if you define cmykwhite to be something like
\definecolor[cmywhite][y=0.1]


What I don't understand is why
\definecolor[cmywhite][c=0,y=0,m=0,k=0]
is converted to black (even a warning is issued).

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


[NTG-context] A wee bit more about OpenType (Myriad Pro)

2005-08-10 Thread David Wooten

Greetings all  Adam,

Having successfully installed Jenson  Minion Pro I've been trying to  
get Myriad Pro to install as a companion Sans (motivated in part by  
the fact that Adam has a nice typescript file for Warnock Pro with  
Myriad). I'm having some difficulties, which seem similar to  
difficulties I had earlier on…but apparently we finished our  
conversation off the list, so I can't locate what the solution was ;)  
(I believe it was try updating to the latest version of LCDF from  
*EXPERIMENTAL*). Before I display some error messages, I want to  
ask, Adam, why the Myriad Pro fontsynonyms in your typescript do not  
have any of the OpenType features—liga? kern? Is this due to Myriad  
Pro's particulars?


[I've just checked, and it isn't only Myriad Pro that won't install.]

I'm using Gerben's i-Installer, 2004 stable, ConTeXt updater, LCDF  
2.26 (no longer in the experimental directory). I've also tried  
with the 2005 development set. The result is the same.


In any case, here we go:

sudo texfont --fo=/ME/texmf --ve=adobe --co=myriadpro --lcdf --pre -- 
ma --in


TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004

mktexlsr: Updating /Users/wooten/Library/texmf/ls-R...
mktexlsr: Done.
   encoding vector : texnansi
   vendor name : adobe
   source path : .
   font collection : myriadpro
   texmf font root : /users/wooten/library/texmf
   pdftex map file : texnansi-adobe-myriadpro.map
   source path : .
  processing files : all on afm path
locating afm files : using pattern ./*.afm
locating afm files : using otf files
converting : ./MyriadPro-Black.otf to ./MyriadPro-Black.pfb

[etc.]

 font identifier : MyriadPro-Black - text - tfm
  processing files : otf - tfm + enc
otftotfm: /usr/local/Build/TeXLive.tl2003.development/share/lcdf- 
typetools/glyphlist.txt: warning: No such file or directory

I had to round some heights by 14.500 units.
I had to round some depths by 4.000 units.

(if I install the 2005 teTeX it is identical, except says .../ 
TeXLive.tl2004.development/...


——

In trying to texexec the generated sample file, I receive:

 texexec --pdf texnansi-adobe-myriadpro.tex

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

fixing engine variable : pdfetex
 executable : pdfetex
 format : cont-en
 inputfile : texnansi-adobe-myriadpro
 output : pdftex
 interface : en
 options: once
 current mode : compact

This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./texnansi-adobe-myriadpro.tex

ConTeXt  ver: 2005.08.04  fmt: 2005.8.9  int: english  mes: english

[etc.]

Warning: pdfetex (file texnansi-MyriadPro-BlackCondIt): Font texnansi- 
MyriadPro

-BlackCondIt at 72 not found
kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72  
texnansi-MyriadPro-BlackCond
mktexpk: don't know how to create bitmap font for texnansi-MyriadPro- 
Black.


[etc.]

…ending up with a big set of blank glyph charts.

Thanks again for any advice, and for patience!
David___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MPcolor problem (CMYK)

2005-08-10 Thread Hans Hagen

Mojca Miklavec wrote:


yellow (c=0.08,m=0,y=0.89,k=0), so Hans probably used a set of setups
which handles the .5\MPcolor{cmyyellow} the same way as if it was an
rgb yellow.
 


indeed, i use slightly different red/yellow in the metafun manual -)

but i'm not sure if that is the problem here

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] MPcolor problem (CMYK)

2005-08-10 Thread Mojca Miklavec
Taco Hoekwater wrote:
  Jin-Hwan Cho wrote:
 
  In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
  using the color .5\MPcolor{cmyyellow}. But I could not generate
  the color. Could anyone check the attached sample?
 
 Both were present in the example. I've created a collector item
 for this. (which means that I believe it really is a bug :-))

I tried

\definecolor[cmyyellow][y=1]
\definecolor[cmycyan][c=1]

and then .5[\MPcolor{cmycyan},\MPcolor{cmyyellow}]

Without the cmyk=no option, color mixing really works wrong (I get
yellow instead of green, perhaps c=.5,y=.5 would be something to
expect), but with it, my Acrobat states that the colors are not proper
cyan and yellow any more (but the exact numbers probably depend on
settings for cmky-rgb-cmyk conversion).

Well, the best conversion ever seen was the one by MS Word (when I
tried to include a cmyk pdf image into a document): blue became green,
red resulted in blue and yellow in pink ;)

About the problem of white cmyk color
(\definecolor[colorname][c=0,m=0,y=0,k=0]): I guess that the problem
could lie in the \doifelse loop(s) of \dododefinecolor in
colo-ini.tex. The loop simply checks if any color component is
different from zero and chooses the first suitable color space. CMYK
white is probably the only exception to this rule.
What about deciding about the color system on the basis of settings
used (r=0 = rgb or c=0 = cmy(k) or ...), before executing this
(modified) loop? Or perhaps having some predefined zero colors
(cmykwhite for example)? An usual rgb white can be used, but I'm not
sure if it can be properly mixed with cmyk colors then.

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


Re: [NTG-context] MPcolor problem (CMYK)

2005-08-10 Thread Hans Hagen

Taco Hoekwater wrote:


Vit Zyka wrote:


Jin-Hwan Cho wrote:


In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
using the color .5\MPcolor{cmyyellow}. But I could not generate
the color. Could anyone check the attached sample?




Let check
- \setupcolors[state=start]
- perhaps typo 'cmyyellow - cmykyellow' or define it by yourself:
  \definecolor[cmyyellow][c=0,m=0,y=1,k=0]



Both were present in the example. I've created a collector item
for this. (which means that I believe it really is a bug :-))

  http://context.literatesolutions.com/collector/22/pcng_issue_view


i'll add an note that taco will implement specials associated with paths in teh coming metapost release -) 

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] MPcolor problem (CMYK)

2005-08-10 Thread Hans Hagen

Mojca Miklavec wrote:



\definecolor[cmyyellow][y=1]
\definecolor[cmycyan][c=1]

and then .5[\MPcolor{cmycyan},\MPcolor{cmyyellow}]
 

look in mp-spec how cmyk is defined and you'll see why it gets messed up ... cmyk expands to a special directive and .5 scales that one, if needed i can make a scale macro 

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] MPcolor problem (CMYK)

2005-08-10 Thread Hans Hagen

Jin-Hwan Cho wrote:


In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
using the color .5\MPcolor{cmyyellow}. But I could not generate
the color. Could anyone check the attached sample?


scaling of cmykcolors does not work when cmykcolors i sset to true; this is 
because i used colors as signals for the postprocessor and in this case the 
postprocessor code gets scaled and is no longer recognizable as  such and 
therefore it's treates as a normal color

tricky stuff 

a solution is to define the 50% color beforehand 

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


[NTG-context] \Shaped macro in MetaFun manual

2005-08-10 Thread Jin-Hwan Cho
The third line in the page 145 in the MetaFun manual (metafun-p.pdf)  
says


The \Shaped macro was defined as:

    some \inframed[background=Shape]{text} with a frame ...
    some \Shaped{text} with a frame ...

It seems to be a typo. Let me know the exact definition of \Shaped  
macro.


Thanks in advance.

Best, ChoF.
~   ***
| Cho, Jin-Hwan == ChoF |   ^ ^
~~~  o
| Dept. of Mathematics| ---
| The University of Suwon |  |
~~~  |
| Korean TeX Users Group  |  |
| http://www.ktug.or.kr   |  |
~~~  |
| [EMAIL PROTECTED] | ***
~~~

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