Re: [NTG-context] colors in pgf within context

2008-02-18 Thread Jesse Alama
it, and, when trying to compile the following example PGF code \starttikzpicture[scale=3] \clip (-2,-0.2) rectangle (2,0.8); \draw[step=.5cm,gray,very thin] (-1.4,-1.4) grid (1.4,1.4); \filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0mm) arc (0:30:3mm) -- cycle; \draw

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
} \Character{text} \character{text} \Characters{text} \characters{text} \chem{text}{text}{text} \clip[settings]{text} \clonefield[name][names][name][names] \color[text{text} \column # \commalistelement \comment[name][settings]{text} \comparecolorgroup[name] \comparepalet[name] \completecombinedlist[name

Re: [NTG-context] Images centered on page

2007-11-24 Thread Wolfgang Schuster
]{\flushnextbox}}\hss}% \fi \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}% \startTEXpage \flushnextbox \stopTEXpage \egroup} \hbox} \protect \starttext \fullpagebox{\externalfigure[image

Re: [NTG-context] Images centered on page

2007-11-23 Thread Wolfgang Schuster
\setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}% \fi \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}% \startTEXpage \flushnextbox \stopTEXpage \egroup} \hbox

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
\setbox\nextbox\vbox\!!to\paperheight{\vss\expanded{\scale[\c!width=\paperwidth]{\flushnextbox}}\vss}% \else \setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}% \fi \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height

Re: [NTG-context] Feature request for backgrounds

2007-10-11 Thread Wolfgang Schuster
\nextbox\vbox{\dorecurse{\count2}{\copy\nextbox\endgraf}}% \fi \fi \ifdim\nextboxwd#2\relax \setbox\nextbox\hbox to #2{\hss\flushnextbox\hss}% \setbox\scratchbox\hbox{\expanded{\clip[\c!width=#2,\c!height=\the\nextboxht]{\box\scratchbox

Re: [NTG-context] Margins around figures

2007-09-08 Thread Mojca Miklavec
, but the MetaPost newbie I am, I am unable to figure out the error: mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip

Re: [NTG-context] Margins around figures

2007-09-07 Thread Wolfgang Schuster
2007/9/7, Oliver Buerschaper [EMAIL PROTECTED]: mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip

Re: [NTG-context] Margins around figures

2007-09-07 Thread Oliver Buerschaper
mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip'. to be read again ; l.26 ...o

Re: [NTG-context] Margins around figures

2007-09-07 Thread Kumar Appaiah
to figure out the error: mpost seminar.mp This is MetaPost, Version 0.993 (Web2C 7.5.6) (seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp) (/usr/share/texmf-texlive/metapost/base/boxes.mp) boundingbox.currentpicture.enlarged1cm ! Improper `clip'. to be read again ; l.26

Re: [NTG-context] Mysterious clipping for shaded MetaFun page background

2007-08-20 Thread Hans Hagen
Peter Rolf wrote: Oliver Buerschaper schrieb: Dear folks, can anyone reproduce this? (Live ConTeXt on the garden seems to run into this \faststartcolor thing ... with pdfTeX.) it may help to increase \def\objectoffset{1cm} (by default reused objects clip and this creates a virtual bbox

Re: [NTG-context] placefigure

2007-07-25 Thread Liesbeth van der Plas
In GhostScript: Options àEPS Clip File à Convert à pdfwrite, Variable Page File à Convert à pdfwrite, Fixed Page Size File à Convert à pdfwrite, Shrink to fit Page Size I do get the picture now, but it is inbedded

Re: [NTG-context] problem with mp clip

2007-07-23 Thread Peter Rolf
Patrick Gundlach schrieb: Is there a way to add the test pictures (cont-img.zip) to 'live context'? They are already installed, but not in a local path. I have changed 'live context' so now the sample figures are in the search path. Patrick Thanks Patrick! This makes life easier :)

Re: [NTG-context] problem with mp clip

2007-07-23 Thread Peter Rolf
Hans Hagen schrieb: Peter Rolf wrote: Hi, it seems, that clipping with a MetaPost path is broken (at least on my machine). I couldn't test it on Contextgarden, as the standard example pictures are not installed (or the !!path is not searched). Anyhow, if someone can test this please.

[NTG-context] problem with mp clip

2007-07-22 Thread Peter Rolf
), ConTeXt beta from 03.07.2007, pdftex 1.40.4 and mpost 1.0. Thanks in advance, Peter @Patrick: Is there a way to add the test pictures (cont-img.zip) to 'live context'? \setupcolors[state=start] \setuppagenumber[state=stop] \startMPclip{ClipTest} clip currentpicture to unitcircle scaled

Re: [NTG-context] problem with mp clip

2007-07-22 Thread Patrick Gundlach
Is there a way to add the test pictures (cont-img.zip) to 'live context'? They are already installed, but not in a local path. I have changed 'live context' so now the sample figures are in the search path. Patrick

Re: [NTG-context] problem with mp clip

2007-07-22 Thread Hans Hagen
Peter Rolf wrote: Hi, it seems, that clipping with a MetaPost path is broken (at least on my machine). I couldn't test it on Contextgarden, as the standard example pictures are not installed (or the !!path is not searched). Anyhow, if someone can test this please. has to do with the

Re: [NTG-context] \overleftrightarrow

2007-07-19 Thread Aditya Mahajan
not like mirror-clip-mirror but I could not find how to clip from the left rather than the right. I guess now is the time to update the myway on math arrows :) Aditya math-ext.tex Description: Binary data ___ If your

Re: [NTG-context] overleftrightarrow

2007-07-19 Thread Aditya Mahajan
\definemathfancyarrow {\dotripleargument\dodefinemathfancyarrow} \def\dodefinemathfancyarrow[#1][#2][#3]% arrow short long {\setvalue{#1}{\dohandlemathfancyarrow[#2][#3]}} \def\dohandlemathfancyarrow[#1][#2]% {\mathpalette{\dodohandlemathfancyarrow{#1}{#2}}} %TODO: The clip operation should

Re: [NTG-context] Context and CD labels

2006-10-20 Thread Renaud AUBIN
|framedtext) Author title This example assumes that : - the first label is centered on x=.5\paperwidth y=.75\paperwidth - the second is centered on x=.5\paperwidth y=.25\paperheight You can even put a background image if you want, using overlay and clip... Renaud \setuppapersize[A4][A4

Re: [NTG-context] Context and CD labels

2006-10-20 Thread Maurício
This example assumes that : - the first label is centered on x=.5\paperwidth y=.75\paperwidth - the second is centered on x=.5\paperwidth y=.25\paperheight You can even put a background image if you want, using overlay and clip... Renaud (...) Thanks! That's exactly what I need

Re: [NTG-context] Context and CD labels

2006-10-18 Thread Renaud AUBIN
}} \setlayer[PageLayer][x=.65\paperwidth,y=.70\paperheight,location=c]{\useMPgraphic{CDShape}} \stoptext You can draw, clip, write whatever you want and where you want... The circular shape are just to demonstrate positionning and can help to check... You could use Metafun to do some advanced text

Re: [NTG-context] Context and CD labels

2006-10-18 Thread Maurí­cio
) - number of label per page and position of each label's center relatively to a corner of the page... (...) You can draw, clip, write whatever you want and where you want... The circular shape are just to demonstrate positionning and can help to check... You could use Metafun to do some advanced

Re: [NTG-context] absolute positioning of figures

2006-10-13 Thread Peter Rolf
andrea valle wrote: Example: \definelayer[layer2a][width=.15\paperwidth] \setlayer [layer2a] [x=.15\paperwidth, y=.5\paperheight] {\externalfigure[layTest][width=.75\paperwidth]} extend your example with \clip[width=.15\paperwidth,height

[NTG-context] ConTeXt and cmyk

2006-07-21 Thread Renaud AUBIN
{uvsqgreen}); draw (-.5w+.036h,-.342h)--(xpart pts[0]-.036h, ypart pts[0]); draw (.5w-.036h,-.342h)--(xpart pts[8]+.036h, ypart pts[8]); interim linecap:=rounded; for i=0 upto 3: draw pts[2i]..pts[2i+1]..pts[2i+2]; endfor; setbounds currentpicture to mainframe; clip currentpicture to mainframe; \stopbuffer

Re: [NTG-context] clipping problem

2006-07-10 Thread Hans Hagen
Peter Rolf wrote: Just as a reminder for an unsolved problem :) I also tested this on contextgarden, with faulty result. Same with \clip[hoffset=64bp,voffset=64bp,width=64bp,height=64bp]{\reuseMPgraphic{cliptest}} So it doesn't look like a rounding problem. this clips ok here (only one

Re: [NTG-context] clipping problem

2006-07-10 Thread Peter Rolf
Hans Hagen wrote: Peter Rolf wrote: Just as a reminder for an unsolved problem :) I also tested this on contextgarden, with faulty result. Same with \clip[hoffset=64bp,voffset=64bp,width=64bp,height=64bp]{\reuseMPgraphic{cliptest}} So it doesn't look like a rounding problem

Re: [NTG-context] clipping problem

2006-07-06 Thread Peter Rolf
Just as a reminder for an unsolved problem :) I also tested this on contextgarden, with faulty result. Same with \clip[hoffset=64bp,voffset=64bp,width=64bp,height=64bp]{\reuseMPgraphic{cliptest}} So it doesn't look like a rounding problem. Peter Rolf wrote: Hi, I have some png-graphics

[NTG-context] clipping problem

2006-07-03 Thread Peter Rolf
shifted (2u,u) withcolor blue ; fill p shifted (0,2u) withcolor green ; fill p shifted (u,2u) withcolor blue ; fill p shifted (2u,2u) withcolor green ; \stopreusableMPgraphic \starttext \reuseMPgraphic{cliptest} \blank \setupclipping[nx=3,ny=3] \clip[x=1,y=1]{\reuseMPgraphic{cliptest

[NTG-context] Clipping again

2006-06-25 Thread David Arnold
and scaled: % scale and draw graph P:=P scaled u; draw P withcolor blue; The picture is clipped and saved: % clip and save current picture picture pic; clip currentpicture to cpath; pic:=currentpicture; Then it is redrawn later. % redraw line draw pic; Unfortunately, even though this works

Re: [NTG-context] Clipping again

2006-06-25 Thread David Arnold
important behavior of the function, extrema, etc. So, for example, if I needed to draw y=12-x^2, I would not clip this to the boundary (-10,-10)--(10,-10)-- (10,10)--(-10,10)--cycle, because that would chop off the top of the parabola, and if I added arrows, it would look like I had two

Re: [NTG-context] Clipping again

2006-06-25 Thread Mojca Miklavec
On 6/25/06, David Arnold wrote: That is, I would choose a boundary that would present arrow heads at each end of the curve. In the case of rational functions, I would clip each branch separately. I hope this answers the question. So that necessary means an arrowhead each time when a function

Re: [NTG-context] Clipping again

2006-06-25 Thread Hans Hagen
; A function is created and scaled: % scale and draw graph P:=P scaled u; draw P withcolor blue; The picture is clipped and saved: % clip and save current picture picture pic; clip currentpicture to cpath; pic:=currentpicture; Then it is redrawn later. % redraw line draw pic

Re: [NTG-context] Clipping again

2006-06-25 Thread David Arnold
; % clipping path path cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; cpath:=cpath scaled 1u; %[DA 6/25]Replace this code from here to next mark with new clipping routine % clip and save current picture picture pic; clip currentpicture to cpath; pic:=currentpicture; % erase

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-13 Thread Peter Münster
On Wed, 12 Apr 2006, Hans Hagen wrote: \ruledhbox{\clip{\useMPgraphic{test}}} of course, I've already tried \clip{\externalfigure[...][...]} but the figure disappears completely. \clip{\useMPgraphic{test}} disappears too. And now I see: it works for PDF output, so there is probably just

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-12 Thread Peter Münster
On Wed, 12 Apr 2006, Hans Hagen wrote: \ruledhbox{\clip{\useMPgraphic{test}}} Hello Hans, of course, I've already tried \clip{\externalfigure[...][...]} but the figure disappears completely. \clip{\useMPgraphic{test}} disappears too. And now I see: it works for PDF output, so there is probably

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-12 Thread Hans Hagen
� wrote: On Wed, 12 Apr 2006, Hans Hagen wrote: \ruledhbox{\clip{\useMPgraphic{test}}} Hello Hans, of course, I've already tried \clip{\externalfigure[...][...]} but the figure disappears completely. \clip{\useMPgraphic{test}} disappears too. And now I see: it works for PDF

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-11 Thread Hans Hagen
Vit Zyka wrote: Hans Hagen wrote: � wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext % no clipping

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-11 Thread Vit Zyka
Hans Hagen wrote: Vit Zyka wrote: Hans Hagen wrote: � wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-08 Thread Hans Hagen
� wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext % no clipping possible here bla bla bla bla bla bla bla bla bla

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-08 Thread Vit Zyka
Hans Hagen wrote: � wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext % no clipping possible here bla bla bla bla bla bla

[NTG-context] feature request: clipping option for externalfigure

2006-04-07 Thread Peter Münster
Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext % no clipping possible here bla bla bla bla bla bla bla bla bla bla bla bla

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-07 Thread Taco Hoekwater
Peter Münster wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please browse through core-fig.tex. Around line 2100 there is documentation for the \clip and \setiupclipping commands. Cheers, taco ___ ntg

Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-07 Thread Peter Münster
On Fri, 7 Apr 2006, Taco Hoekwater wrote: Peter Münster wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please browse through core-fig.tex. Around line 2100 there is documentation for the \clip and \setiupclipping commands. Thanks! I tried

Re: [NTG-context] function machine

2005-12-28 Thread Mojca Miklavec
understand it properly (that you only want to draw the content inside the square, while the function may be a circle or something lying completely outside the region), you could also use something like clip currentpicture to cpath; although you may have to change the code that draws double arrow

Re: [NTG-context] function machine

2005-12-28 Thread David Arnold
Mojca, I've used clip currentpicture to cpath before, then saved the result, draw the grid, draw the axes, then draw the saved clipped picture. But, you're right, I can't use drawdblarrow then. In our classes, the drawdblarrow is important, having the same meaning as the ellipsis in 1, 3

[NTG-context] Metapost -- What am I doing wrong

2005-12-25 Thread David Arnold
cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; %create function path path p; p:=(-5,f(-5)); for x=-5 step .1 until 5: p:=p--(x,f(x)); endfor; p:=p--(5,f(5)); %clip function path to clipping path p:=p cutbefore cpath; p:=reverse p; p:=p cutbefore cpath; \stopMPgraphic

Re: [NTG-context] Metapost -- What am I doing wrong

2005-12-25 Thread Mojca Miklavec
)); endfor; p:=p--(5,f(5)); %clip function path to clipping path p:=p cutbefore cpath; p:=reverse p; p:=p cutbefore cpath; p enddef; \stopMPinclusions \starttext \startMPpage %define function

Re: [NTG-context] Re: including swf files?

2005-12-18 Thread Hans Hagen
own documents? grep for placerendering (cont-new.tex and x-res-50) so, one needs to reserve some area and then start/stop the media clip (embedding the file in a pdffile is fragile [differes per pdf version]) Hans ___ ntg-context mailing list ntg

[NTG-context] drawdot fails?

2005-12-18 Thread David Arnold
)); for x=-5 step .1 until 5: p:=p--(x,f(x)); endfor; p:=p--(5,f(5)); %clip function path to clipping path p:=p cutbefore cpath; p:=reverse p; p:=p cutbefore cpath; %initialize scale numeric u; 10u=2in; %draw the grid for k=-5u step 1u until 5u: draw (k,-5u)--(k,5u) withcolor

[NTG-context] Re: function plotting

2005-10-05 Thread David Arnold
; 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; % draw grid for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor

[NTG-context] lilypond inclusion + pdf crop

2005-09-16 Thread andrea valle
use Context as general typesetting environment, Metafun as vectorial, scalable, scriptable drawing engine, and lilypond as notation generator. The idea is to produce lily files, to render them, to include them in a metafun drawing, where I can clip and place them opportunely, and to render

[NTG-context] \limitatefirstline and the new beta

2005-09-15 Thread Peter Rolf
\plusone\lastbox \global\setbox\plusone\hbox{\strut\unhbox\plusone}% \hbox % to #2 {\ifx\clip\undefined \box\plusone \else\ifdim\wd\plusone\hsize \lower\strutdepth\hbox{\clip[\c!width=\hsize,\c!height=\lineheight]{\hbox{\raise\strutdepth\box\plusone

Re: [NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-12 Thread Peter Rolf
\setbox\scratchbox\vbox{\forgetall\veryraggedright#1}% \setbox\scratchbox\vsplit\scratchbox to \lineheight \vbox {\unvbox\scratchbox \global\setbox\plusone\lastbox \global\setbox\plusone\hbox{\strut\unhbox\plusone}% \hbox % to #2 {\ifx\clip\undefined

Re: [NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-11 Thread Peter Rolf
Peter Rolf wrote: Hi all, I've tested the latest version of \limitatefirstline and it still doesn't work as expected. This is really a complex story (problem). - the clip mechanism cuts off the lowest part of some special chars (clipping graphics is easy, but I don't understand what

Re: [NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-11 Thread Hans Hagen
Peter Rolf wrote: Hi all, I've tested the latest version of \limitatefirstline and it still doesn't work as expected. This is really a complex story (problem). - the clip mechanism cuts off the lowest part of some special chars (clipping graphics is easy, but I don't understand what happens

Re: [NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-11 Thread Peter Rolf
Hans Hagen wrote: Peter Rolf wrote: Hi all, I've tested the latest version of \limitatefirstline and it still doesn't work as expected. This is really a complex story (problem). - the clip mechanism cuts off the lowest part of some special chars (clipping graphics is easy, but I don't

Re: [NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-11 Thread Hans Hagen
Peter Rolf wrote: \ifdim\wd\plusone\dimexpr\hsize-2ex\relax% tolerance for successful breaking \clip[\c!width=\hsize,\c!height=\struttotal]{\ruledhbox{\begstrut#1\endstrut}}% must be #1 here This may fail, since it #1 may have more than one line, and this whole

Re: [NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-11 Thread Hans Hagen
\veryraggedright#1}% \setbox\scratchbox\vsplit\scratchbox to \lineheight \vbox {\unvbox\scratchbox \global\setbox\plusone\lastbox \global\setbox\plusone\hbox{\strut\unhbox\plusone}% \hbox % to #2 {\ifx\clip\undefined \box\plusone \else\ifdim\wd

[NTG-context] \limitatefirstline (or slave to the wiki)

2005-09-09 Thread Peter Rolf
Hi all, I've tested the latest version of \limitatefirstline and it still doesn't work as expected. This is really a complex story (problem). - the clip mechanism cuts off the lowest part of some special chars (clipping graphics is easy, but I don't understand what happens here) - text

Re: [NTG-context] cropping with \limitatefirstline

2005-09-08 Thread Peter Rolf
to break (not possible with the non letters, so there you either need to add \hskip0pt's or do real clipping Hans So it fails in any case of nonbreakable text. How about adding a failsafe test ala \ifdim\dimexpr\wd\plusone+\wd of sentinel\relax#2\relax \clip[width=\wd\plusone,...]{...#1

Re: [NTG-context] cropping with \limitatefirstline

2005-09-08 Thread Hans Hagen
be something to break (not possible with the non letters, so there you either need to add \hskip0pt's or do real clipping Hans So it fails in any case of nonbreakable text. How about adding a failsafe test ala \ifdim\dimexpr\wd\plusone+\wd of sentinel\relax#2\relax \clip[width=\wd\plusone,...]{...#1

Re: [NTG-context] cropping with \limitatefirstline

2005-09-08 Thread Peter Rolf
Hans, is this a trick to get even more wiki pages? \clip is still running wild... :) Greetings, Peter % interface=en output=pdftex % Time-stamp: Donnerstag, 08 September 2005 18:28:23; crop.tex % \setupcolors[state=start] \unprotect \def\limitatefirstline#1#2#3% {\hbox\bgroup\strut

Re: [NTG-context] cropping with \limitatefirstline

2005-09-08 Thread Hans Hagen
Peter Rolf wrote: Hans, is this a trick to get even more wiki pages? \clip is still running wild... :) hm, clipping looks ok here; is ok here; what version do you use? what sample text? Hans

Re: [NTG-context] cropping with \limitatefirstline

2005-09-08 Thread Peter Rolf
Hans Hagen wrote: Peter Rolf wrote: Hans, is this a trick to get even more wiki pages? \clip is still running wild... :) hm, clipping looks ok here; is ok here; what version do you use? what sample text? seems to be my fault, but I have no time at the moment to find the cause. more

Re: [NTG-context] cropping with \limitatefirstline

2005-09-08 Thread Hans Hagen
Peter Rolf wrote: Hans, is this a trick to get even more wiki pages? \clip is still running wild... :) \unprotect \def\limitatefirstline#1#2#3% {\hbox\bgroup\strut \setbox\scratchbox\hbox{#1}% \ifdim\wd\scratchbox#2\relax \setbox\scratchbox\hbox{#3}% \hsize#2\relax \advance

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

2005-08-10 Thread David Arnold
,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

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

2005-08-09 Thread David Arnold
); %initialize a of f(x)=|x-a| numeric a; a=-2; % initialize scale numeric u; 10u=3in; %function definition vardef f(expr x)= abs(x-a) enddef; %path path F; F:=(-5,f(-5)); for x=-5 step 1 until 5: F:=F--(x,f(x)); endfor; %scale and draw F F:=F scaled u; draw F withcolor blue; %clip path

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

2005-08-08 Thread Hans Hagen
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

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

2005-08-08 Thread Hans Hagen
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

[NTG-context] Clipping a path to a boundary

2005-08-07 Thread David Arnold
; % 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

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

2005-08-07 Thread David Arnold
: 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

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

2005-08-07 Thread David Arnold
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

[NTG-context] clip bug?

2005-05-28 Thread Vit Zyka
Dear Hans, it seems to me that \clip was extended by the useful params left|right|top|bottomoffset. But they do not work: \starttext \clip [leftoffset=1cm,rightoffset=1cm,topoffset=2cm,bottomoffset=.5cm] {\externalfigure[cow]} \stoptext Thanks Vit

Re: [NTG-context] How to insert a full page pdf.

2005-04-20 Thread luigi.scarso
the external document to insert in my document? How? I'm no expert, but here's the way I do it: \externalfigure[filename][page=2] Then, I adjust the clipping to -- for instance -- get rid of the page number of the inserted `figure', as well as of its top and left margins. \clip [ voffset=1.25in

Re: [NTG-context] How to insert a full page pdf.

2005-04-19 Thread David Munger
document to insert in my document? How? I'm no expert, but here's the way I do it: \externalfigure[filename][page=2] Then, I adjust the clipping to -- for instance -- get rid of the page number of the inserted `figure', as well as of its top and left margins. \clip [ voffset=1.25in, % clip

Re: [NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread David Arnold
((ttstop) or (tb) or (yc) or (yd)); endfor; %Draw the paths x(t) and y(t) and clip them to bounding box draw trajx xscaled ux yscaled uy withcolor red; draw trajy xscaled ux yscaled uy withcolor red dashed evenly; clip currentpicture to (q xscaled ux yscaled uy); %Label graph x(t) and initial

Re: [NTG-context] imposition for a pdf file

2005-03-16 Thread luigi.scarso
ou can use it to scale to appropriate dimensions (they depends by size of paper);search on wiki for externalfigure Usually i make simple scripts that create my-imp.tex with correct pagenumber (ie the pagenumber that i want to select); also i use \clip (search on wiki) to correct some page and pdfinfo to

Re: [NTG-context] help - spine centered figure

2005-01-30 Thread h h extern
]} % % \setlayer % [page] [right] [preset=righttop] % {\externalfigure[page-graphic]} % % \startstandardmakeup % flush a page % \stopstandardmakeup % to show bleeding: \setuppapersize [A4][A3] \setuplayout [location=middle] \setupbackgrounds [page][frame=on] % add this in order to clip \setuplayout

Re: [NTG-context] \reuseMPgraphic error

2004-11-08 Thread Hans Hagen
,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopreusableMPgraphic \startreusableMPgraphic{layout 2} \includeMPgraphic{layout 1} ^ is that allowed? (it works without) it is allowed, but only when layout 1 is a usableMPgraphic Hans

[NTG-context] No color even though \setupcolors[state=start]

2004-11-04 Thread David Arnold
,1cm) shifted (1cm,0.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture

Re: [NTG-context] No color even though \setupcolors[state=start]

2004-11-04 Thread David Arnold
,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopuseMPgraphic \startuseMPgraphic{layout 2} \includeMPgraphic{layout 1} clip currentpicture to unitsquare scaled 3cm

Re: [NTG-context] No color even though \setupcolors[state=start]

2004-11-04 Thread Matthias Weber
0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopuseMPgraphic \startuseMPgraphic{layout 2} \includeMPgraphic{layout 1} clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); currentpicture

[NTG-context] \reuseMPgraphic error

2004-11-04 Thread David Arnold
0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm

Re: [NTG-context] \reuseMPgraphic error

2004-11-04 Thread Matthias Weber
xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip

Re: [NTG-context] \reuseMPgraphic error

2004-11-04 Thread David Arnold
(5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopreusableMPgraphic \startreusableMPgraphic{layout 2} \includeMPgraphic{layout 1} ^ is that allowed

[NTG-context] row background (TABLE)

2004-09-08 Thread Peter Rolf
) ; fill p withcolor yellow ; draw origin--(ow,0) yshifted oh withcolor blue ; clip currentpicture to boundingbox p ; \stopuniqueMPgraphic \defineoverlay[rowbg] [\uniqueMPgraphic{row}] \starttext % what I want (but in a TABLE) \framed[background={rowbg}, align={middle,lohi}, strut=no, offset=0pt

[NTG-context] Selecting a page as a figure from a pdf

2003-12-15 Thread Nigel King
All, I am aware of \filterpages but I would like to be able to insert part of a single page from a multi page pdf and I have not been able to find anything on the list of manuals. (\clip does not seem to work with \filterpages). Does anybody have any ideas? TIA -- Nigel

[NTG-context] letter style

2003-11-11 Thread Janko Hauser
. One conceptual idea is to have something like a clip-board of visited pages, which can be printed as one document. Ok, this Zope-based site will be an effort going into the next year. I mention it only for background for the coming questions in the next months. 2. I want to generate my invoice

[NTG-context] Re: Figure reuse

2003-10-24 Thread Patrick Gundlach
going through metapost? Yes. Try this example. You can see from the resulting pdf file that the cow.pdf gets included only once. \useexternalfigure[cow] \starttext \setupclipping[nx=3,ny=3] % 1/3 of a sliced cow \hbox{% \clip [x=1,y=2]{\externalfigure[cow]} \clip [x=2,y=2]{\externalfigure[cow

[NTG-context] Re: [NTG-context]metapost prblem

2003-09-23 Thread Emil Hedevang Lohse
xyscaled(1.3,.8); A := (origin--(3cm,2cm)) intersectionpoint subpath (0,2) of c; B := (origin--(-5cm,1cm)) intersectionpoint subpath (2,4) of c; draw c; draw origin--B; draw origin--A; endfig; how can i clip the part of the path c between A and B in this case?? Isn't it easier to use arctime

[NTG-context] Re: [NTG-context]metapost prblem

2003-09-22 Thread Severin Obertuefer
subpath (0,2) of c; B := (origin--(-5cm,1cm)) intersectionpoint subpath (2,4) of c; draw c; draw origin--B; draw origin--A; endfig; how can i clip the part of the path c between A and B in this case?? thanks for help severin On Sun, 21 Sep 2003 21:24:04 +0200 (MEST) Severin Obertuefer [EMAIL

Re: [NTG-context] Re: [NTG-context]metapost prblem

2003-09-22 Thread Jens-Uwe Morawski
; A := (origin--(3cm,2cm)) ; B := (origin--(-5cm,1cm)) ; draw B ; draw A ; c := fullcircle scaled 2cm xyscaled(1.3,.8) ; clip currentpicture to c ; draw c withpen pencircle scaled 1.4pt withcolor .7white ; drawarrow cutbetween(c,B,A) withcolor .7green ; drawarrow cutbetween(c,A,B) withcolor green ; c

<    1   2   3