Re: [NTG-context] Presentation
piskala upendran wrote: hello valle, I did test your example. It complained as you said. however, it works ok under miktex + winedt with the following changes. a. remove the small square in front of the \usemodule[pre-08]. b. \input reich changed to knuth because \citaat of reich is not decoded. I do not know the reason. Any contexpert can only tell.otherwise it compiled smoothly. you can try. The file was never converted from dutch to english. \citaat should be \quotation Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] style in registers
Vit Zyka wrote: Good evening, I have opened another topic. Why both Hans's page numbers are bold? Because Hans is much bolder than i am ;-) Looks like this is on purpose, but I don't understand why. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] encodings for Antiqwa
Hello, In the following example \Scaron and \Zcaron are taken from the font, while \Ccaron is constructed using C and caron (the difference is clearly seen in the result as Ccaron is originally composed using C and Caron; caron and Caron are different in Antiqwa). I understand that this is because I use the wrong encoding (texnansi), but ec/il2 don't seem to work. In Antiqwa documentation I saw cork and cs encoding, which are both be OK, but it seems that ConTeXt isn't aware of them. (Cork is even better as this seems to be the only encoding where \dstroke is present.) (I slowly begin to understand why the Croats deserved their own MacCroatian encoding [regime] :) \definetypeface[antykwa][rm][serif][antykwa-torunska][default][encoding=texnansi] \setupbodyfont[antykwa] \starttext \Ccaron\Scaron\Zcaron \dstroke\Dstroke % also composed :( \stoptext Can anyone point me to the proper way to access other characters in a font, not present in any standard encoding? I know approximately that a .map file has to be written, a typescript file, encoding has to be defined somewhere, but I have never managed to make all those files cooperate together. (An example: how to access edblgrave, udblgrave, odblgrave, ... possibly in such a way that someone could use my (set of) documents without hundred sites of documentation how to compile them on his own computer.) Thank you very much, Mojca (The more I know about the encodings, the more I hate them.) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Clipping a path to a boundary
All, I'm looking for a new idea for something I need to do. I typically create a path on a domain [-5,5] as follows, a arbitrary. Then I randomly reflect the path about and axis, a line, or maybe rotate it. The result is that parts of the path may lie outside a bounding window. % define linear function f vardef f(expr x)= a*x*x enddef; % define paths for functions f, g, and h, respectively path P; P:=(-5,f(-5)); for x=-5 step .1 until 5: P:=P--(x,f(x)); endfor; % initialize scale numeric u; 10u=w; % scale and draw graph P:=P scaled u; draw P withcolor blue; % clipping path path cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; cpath:=cpath scaled 1u; % clip and save current picture picture pic; clip currentpicture to cpath; pic:=currentpicture; % erase currentpicture currentpicture:=nullpicture; Then I do some stuff I need to do and bring back the path at a later time with: draw pic; This works fine. However, what I need to do is somehow clip the path P to the bounding box, but retain the resulting cutpath in a path variable Q. That is, I need to cut off the parts of the path P that lie outside the bounding box cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle and store the clipped path in the path variable Q. The difficulty is I have no advance knowledge if the path P lies entirely inside the bounding box or if it escapes through one of the sides. Any hints, tips, etc., would be very appreciated. Thanks. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Font size in FLOWchart module.
I am using the flowchart module to create various goodies. What I don't know how to do is regulate the size of the font for the text that goes inside the little boxes. Any suggestions? - John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ 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
Hans, I tried: % redraw line path q; q:=pathpart pic; drawdblarrow q withcolor blue; But it drew the clipping path. I wanted the part of the path inside the clipping path. Am I missing something in your directions? On Aug 7, 2005, at 2:56 PM, Hans Hagen wrote: David Arnold wrote: This works fine. However, what I need to do is somehow clip the path P to the bounding box, but retain the resulting cutpath in a path variable Q. That is, I need to cut off the parts of the path P that lie outside the bounding box cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle and store the clipped path in the path variable Q. The difficulty is I have no advance knowledge if the path P lies entirely inside the bounding box or if it escapes through one of the sides. it all depends on what you want to do further on; - you can do some cutbefore and cutafter trickery, i.e. determine intersectionpoints with the edges of the bbox and do some cutting - if you just want the path back .. just ask for pathpart pic 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 mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Clipping a path to a boundary --- Being more specific
Hans et al, Let me try to be more specific. Here is a file which is very typical of the way I draw graphs for my mathematics classes. When you compile, you will see the graph of the absolute value of x-1. That is, it draws the graph of y=|x-1|, but only after clipping it to the cpath. What I would like to do is draw the graph with the drawdblarrow command so that the graph of the absolute value ends in arrowheads. So, I want to clip the graph to the bounding box, save the picture, null the picture, then somehow extract the path into the variable F in its clipped form (not the original path F that extends outside the clip path) so that I can replace the command draw pic with drawdblarrow F. beginfig(0); numeric a, c; a=1; % define function f(x)=|x-a| vardef f(expr x)= abs(x-a) enddef; % draw line with given point and slope path F; F:=(-5,f(-5)); for x=-5 step 1 until 5: F:=F--(x,f(x)); endfor; % initialize scale numeric u; 10u=3in; % the line F:=F scaled 1u; draw F withcolor blue; % clipping path path cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; cpath:=cpath scaled 1u; % clip and save current picture picture pic; clip currentpicture to cpath; pic:=currentpicture; currentpicture:=nullpicture; % erase currentpicture currentpicture:=nullpicture; % 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)); % redraw line draw pic; endfig; end. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context