Re: [NTG-context] Resetting image width

2020-07-06 Thread Henning Hraban Ramm
o argument is also valid. > > \externalfigure[dummy][width=,height=.5\textheight] I thought so and was sure I tried it and got an error, but I recognized I tried "width=," with \clip, and that can’t work, of course. Sorry for the noise. Hraban __

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
on) across a two-page > spread, such that there is no gap. You need to use \clip and calculate the sections. Thangalin already gave you an example. Here’s a convoluted one that I use: % full double page image % usage: % \startpostponing[pagenumber] % \doublepagefig[reference][left/right/width/he

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
Would something like this work? \setupbackgrounds[page][ background={BookIllustrationLayer}, ] \definelayer[BookIllustrationLayer][ width=\paperwidth, height=.5\paperheight, y=.5\paperheight, position=no, repeat=no, ] \setlayer[BookIllustrationLayer]{% \clip[x=\doifelseoddpage

[NTG-context] [question] \clipping some data from a pdf

2020-01-28 Thread Floris van Manen
Does anyone know? Using the latest LMTX, i try to clip some portion of an external pdf page, then resize that portion on top a new page. i use the \clip command. \starttext \scale[width=100mm, hwight=100mm]{\clip[width=150mm, height=120mm, hoffset=30mm, voffset=40mm]{\externalfigure[drawing.pdf

Re: [NTG-context] problems with images, layers and crop marks

2019-07-08 Thread Henning Hraban Ramm
Zitat von Hans Hagen : On 7/8/2019 12:26 PM, Henning Hraban Ramm wrote: I found the culprit, it’s \clip : \setuppapersize[A6][C6] \setuplayout[ location=middle, marking=on, ] \starttext \clip[     hoffset=\textwidth,     voffset=5mm,     width=\pagewidth

Re: [NTG-context] problems with images, layers and crop marks

2019-07-08 Thread Hans Hagen
On 7/8/2019 12:26 PM, Henning Hraban Ramm wrote: I found the culprit, it’s \clip : \setuppapersize[A6][C6] \setuplayout[ location=middle, marking=on, ] \starttext \clip[     hoffset=\textwidth,     voffset=5mm,     width=\pagewidth,     height=\pageheight

Re: [NTG-context] problems with images, layers and crop marks

2019-07-08 Thread Henning Hraban Ramm
I found the culprit, it’s \clip : \setuppapersize[A6][C6] \setuplayout[ location=middle, marking=on, ] \starttext \clip[ hoffset=\textwidth, voffset=5mm, width=\pagewidth, height=\pageheight

Re: [NTG-context] (forw) Re: Strange behavior concerning pdf-output of externalfigures

2019-05-21 Thread Alan Braslau
On Fri, 17 May 2019 09:43:29 +0200 Rudolf Bahr wrote: > And then the same .png-image > to which I added a red frame by GIMP2.10. This one shows artefacts in > ConTeXt! I *always* use MetaPost to add features (and to clip) images. These features (arrows, labels, etc.) are then

Re: [NTG-context] adjusting tikz pictures

2019-04-24 Thread Aditya Mahajan
.91, xtick={-12,-11,...,12}, ytick={-13,-12,...,8},] \clip(-12.68,-13.47) rectangle (12.68,8.91); \fill[line width=2pt,color=zzttqq,fill=zzttqq,fill opacity=0.1000149011612] (-7.7,2.75) -- (0.88,2.57) -- (-3.04,-3.37) -- cycle; \draw [line width=2pt,color=zzttqq] (-7.7,2.75)-- (0.88,2.57); \draw [l

[NTG-context] adjusting tikz pictures

2019-04-24 Thread Gour
max=12.678, ymin=-13.472, ymax=8.91, xtick={-12,-11,...,12}, ytick={-13,-12,...,8},] \clip(-12.68,-13.47) rectangle (12.68,8.91); \fill[line width=2pt,color=zzttqq,fill=zzttqq,fill opacity=0.1000149011612] (-7.7,2.75) -- (0.88,2.57) -- (-3.04,-3.37) -- cycle; \draw [line width=2pt,co

Re: [NTG-context] filling overlap ?

2018-10-07 Thread Floris van Manen
shifted (0mm, -4mm); fill p withcolor red ; clip currentpicture to q ; clip currentpicture to r ; draw p ; draw q ; draw r ; > On 7 Oct 2018, at 13:19, Mikael P. Sundqvist wrote: > > On Sun, Oct 7, 2018 at 1:10 PM Floris van Manen wrote: >> >> Could someone poin

Re: [NTG-context] Which color model shall I use

2018-10-01 Thread Jan U. Hasecke
.st1{fill:#FF;} .st2{fill:#DD4901;} .st3{fill:#327AB8;} .st4{fill:none;} .st5{clip-path:url(#SVGID_2_);} .st6{clip-path:url(#SVGID_4_);} .st7{clip-path:url(#SVGID_6_);} .st8{clip-path:url(#SVGID_8_);} When I pick the screen colors wit

[NTG-context] about \useexternalsoundtrack

2018-07-02 Thread Pablo Rodriguez
Dear list, I’m interesting in embedding media clip objects (sounds) in PDF documents and using them with JavaScript (something I’d have to learn later). I found the \useexternalsoundtrack command, but I don’t get it working (https://mailman.ntg.nl/pipermail/ntg-context/2006/016503.html). I

Re: [NTG-context] image file resolver in Lua?

2018-02-05 Thread Rudolf Bahr
postponing is important, otherwise the page numbering gets wrong > > > \def\pagefig{\dosingleempty\doPagefig} > > > \def\doPagefig[#1]#2#3{ > > > % calculate image size > > > \startfullpagemakeup > > >\externalfigure[#3][width=1mm] % dummy to set ima

[NTG-context] Scale figure to fill a box

2018-02-04 Thread Wolfgang Schuster
the image extends outside of the borders of the frame. A option to clip parts – which can be disabled – of the image which are outside of the frame would be a nice extension to this command (e.g. in case you want a image in a table cell). \setupexternalfigure[location=default] \defineframed

Re: [NTG-context] image file resolver in Lua?

2018-02-04 Thread Hans Hagen
t;, \Resolution)}} \def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}} % image \setlayerframed[bglayer][% frame=off, offset=overlay, x=21mm, y=\mystartY, height=\myClipHeight, width=\textwidth, align=flushleft, ]{% \clip[ width=\te

Re: [NTG-context] image file resolver in Lua?

2018-02-02 Thread Rudolf Bahr
ight{\ctxlua{ctxClipHeight("#3", \Resolution)}} > \def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}} > % image > \setlayerframed[bglayer][% > frame=off, > offset=overlay, > x=21mm, > y=\mystartY, > height=\myClipHeight, > wid

Re: [NTG-context] image file resolver in Lua?

2018-02-02 Thread Henning Hraban Ramm
pHeight{\ctxlua{ctxClipHeight("#3", \Resolution)}} \def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}} % image \setlayerframed[bglayer][% frame=off, offset=overlay, x=21mm, y=\mystartY, height=\myClipHeight, width=\textwidth, align=flushleft, ]{%

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Henning Hraban Ramm
ure[#1][#2]{ >> \ifsecondargument >> \dorecurse{#1}{% >> \tooltip{\clip[ >> height=\textheight, >> voffset=\dimexpr((\recurselevel - 1)\textheight),]{% > > voffset=\numexpr(\recurselevel -1)\textheight]{% Aha, numexpr. Danke! Am 2017-09-10 um 10:09

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Herbert Voss
Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: My current code actually looks like % split in #1 page size parts \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \ifsecondargument \dorecurse{#1}{% \tooltip{\clip[ height=\textheight, voffset=\dimexpr

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Herbert Voss
Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: \def\ausschnitt{\dodoubleempty\doAusschnitt} \def\doAusschnitt#1#2{\clip[height=\textheight,voffset=#1]{\externalfigure[#2][width=\textwidth]}\par} This also doesn’t work; there I’m trying to set the y coordinate for the start like

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Henning Hraban Ramm
def\doClipFigure[#1][#2]{ >> \dorecurse{#1}{% >> \clip[ >>height=\textheight, >>voffset=\dimexpr((\recurselevel -1) * \textheight) >> ]{\externalfigure[#2][width=\textwidth]}\par >> } >> } >> >> \clipfigure[3][verylongimage] >>

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-09 Thread Aditya Mahajan
On Sat, 9 Sep 2017, Henning Hraban Ramm wrote: Ahoi, I got some long images that I’d like to split over several pages. \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \dorecurse{#1}{% \clip[ height=\textheight, voffset=\dimexpr((\recurselevel -1

[NTG-context] automatically splitting big images (calculation problem)

2017-09-09 Thread Henning Hraban Ramm
Ahoi, I got some long images that I’d like to split over several pages. \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \dorecurse{#1}{% \clip[ height=\textheight, voffset=\dimexpr((\recurselevel -1) * \textheight) ]{\externalfigure[#2][width=\textwidth

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-19 Thread Hans Hagen
On 12/18/2016 11:00 PM, Benjamin Buchmuller wrote: Hi Hans, I finally managed to make a MWE. The issue is related to me using \clip{…} onto external figures I would like to crop in conjunction with a colored footer set-up: \starttext \setupfooter[color=red] \setupfootertexts

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-18 Thread Pablo Rodriguez
On 12/18/2016 11:00 PM, Benjamin Buchmuller wrote: > Hi Hans, > > I finally managed to make a MWE. The issue is related to me using > \clip{…} onto external figures I would like to crop in conjunction with > a colored footer set-up: Hallo Benjamin, my question may be stupid, b

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-18 Thread Benjamin Buchmuller
Hi Hans, I finally managed to make a MWE. The issue is related to me using \clip{…} onto external figures I would like to crop in conjunction with a colored footer set-up: \starttext \setupfooter[color=red] \setupfootertexts [] [] [any

Re: [NTG-context] Thick border of one side of TR/TD

2016-05-22 Thread Lukáš Procházka
Hello, thanks for the answers. So my solution now is: \startuseMPgraphic{MP:ThickBtm} draw bottomboundary OverlayBox withpen pensquare scaled 1mm withcolor black; clip currentpicture to OverlayBox; \stopuseMPgraphic \installbottomframerenderer{Thick}{\useMPgraphic{MP:ThickBtm

Re: [NTG-context] two issues with interactive hyperlinks (please comment)

2016-02-25 Thread Hans Hagen
for note reference (or index reference) are fine. I’m only guessing, but I think this is the way to do it. the bad is that viewers clip lines so additional shift action is needed With named destinations, zoom is set to null (please, don’t change that ever) and you get where you need to. unless one

Re: [NTG-context] Frame and rulethickness

2015-03-28 Thread Wolfgang Schuster
\MPcolor{green} ; draw rightboundary OverlayBox withpen pencircle scaled 3pt withcolor \MPcolor{green} ; draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor \MPcolor{green} ; clip currentpicture to OverlayBox leftenlarged 1pt rightenlarged 1.5pt

Re: [NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-15 Thread Fabrice
; label.bot(btex $x$ etex,(2.97u,-0.1v)) ; label.rt(btex $y$ etex,(0.01u,3.9v)) ; label.llft(0,(0,0)) ; label.urt(A,(0,v)) ; dotlabel(,(u,-4v)) ; label.rt(C,(1.02u,-4v)) ; dotlabel.lrt(B,(2u,3v)) ; label.bot(1,(u,0)) ; label.lft(1,(0,v)) ; clip

[NTG-context] Problem in using vlingrid() and hlingrid() macros (Metafun)

2015-03-14 Thread Fabrice Couvreur
)) ; label.rt(btex $y$ etex,(0.01u,3.9v)) ; label.llft(0,(0,0)) ; dotlabel.urt(A,(0,v)) ; dotlabel(,(u,-4v)) ; label.rt(C,(1.02u,-4v)) ; dotlabel.lrt(B,(2u,3v)) ; label.bot(1,(u,0)) ; label.lft(1,(0,v)) ; clip currentpicture to p ; \stopMPcode \stoptext

Re: [NTG-context] Hatch an area with Metapost (Metafun)

2015-02-09 Thread John Kitzmiller
scaled 2pt withcolor blue; endfor; clip currentpicture to q; draw p ; draw q ; label.llft(B, llcorner p) ; label.lrt (C, lrcorner p) ; label.ulft(A, ulcorner p) ; label.urt (D, urcorner p) ; label.lft (M, z1) ; \stopMPpage …just in case it helps to clarify

Re: [NTG-context] Define a new type section with metafun

2014-12-28 Thread Fabrice
{funny} numeric h ; h := OverlayHeight ; pathp ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight superellipsed 0.9 ; pickup pencircle scaled \overlaylinewidth ; fill p withcolor \MPcolor{\overlaycolor} ; draw (20,-1)--(20,h+1) withcolor red ; clip

Re: [NTG-context] clipping in metafun has weird side effects

2014-11-02 Thread Hans Hagen
On 10/31/2014 1:33 PM, Tobias Columbus wrote: On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what

Re: [NTG-context] clipping in metafun has weird side effects

2014-11-02 Thread Tobias Columbus
; clip c to bbox c scaled 0.5 ; try this to see what happens: % clip c to bbox c scaled 0.5 ; draw bbox c scaled 0.5 ; and then this to solve it: clip c to bbox (c scaled 0.5) ; I tried your suggestions and attached both the example and output. Drawing and clipping solves

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
-- vardef mycircle = save c ; picture c ; c := nullpicture ; addto c contour fullcircle scaled 2mm ; c enddef ; def a expr p = path _p_ ; _p_ := p ; a_impl enddef ; def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
= begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; addto currentpicture also c t ; addto currentpicture doublepath _p_ t ; endgroup enddef ; def b expr p = path _p_ ; _p_ := p ; b_impl enddef ; def b_impl text t = begingroup save

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
= save c ; picture c ; c := nullpicture ; addto c contour fullcircle scaled 2mm ; c enddef ; def a expr p = path _p_ ; _p_ := p ; a_impl enddef ; def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; addto

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
:= mycircle ; clip c to bbox c scaled 0.5 ; addto currentpicture also c t ; addto currentpicture doublepath _p_ t ; endgroup enddef ; def b expr p = path _p_ ; _p_ := p ; b_impl enddef ; def b_impl text t = begingroup save c; picture c ; c := mycircle ; addto

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Hans Hagen
On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what happens: % clip c to bbox c scaled 0.5 ; draw bbox c scaled 0.5 ; and then this to solve it: clip c to bbox (c

Re: [NTG-context] clipping in metafun has weird side effects

2014-10-31 Thread Tobias Columbus
On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what happens: % clip c to bbox c scaled 0.5 ; draw

Re: [NTG-context] Trying to emulate CSS object-fit behaviour...

2014-10-16 Thread Hans Hagen
: cover; object-position : top left; overflow: hidden; (http://www.w3.org/TR/css3-images/#the-object-fit) That is, scale the PDF until all the frame is covered with some part of the PDF, even if means overflowing the frame. The overflow: hidden would then clip the overflow to the frame

[NTG-context] Trying to emulate CSS object-fit behaviour...

2014-10-15 Thread Stuart Hungerford
/css3-images/#the-object-fit) That is, scale the PDF until all the frame is covered with some part of the PDF, even if means overflowing the frame. The overflow: hidden would then clip the overflow to the frame. Different PDF's could have different scalings applied to make this work, which is fine

Re: [NTG-context] Strange behavior with Metapost

2014-05-27 Thread Fabrice
; drawarrow ((xmin,0) -- (xmax,0)) scaled u; drawarrow ((0,ymin) -- (0,ymax)) scaled u; draw tightfunction (x, -2*(x-1)*(x-1)+2, xmin, xmax, (xmax-xmin)/20) scaled u; path screen; screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle; clip currentpicture

[NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice Couvreur
; draw pts_f withpen pencircle scaled 1; clip currentpicture to screen; \stopMPcode \stoptext Are there any routines with Metafun to improve this code? thank you, Fabrice ___ If your question is of interest to others as well

Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Hans Hagen
-- (0,ymax)*u; drawarrow axe_x; drawarrow axe_y; draw pts_f withpen pencircle scaled 1; clip currentpicture to screen; \stopMPcode \stoptext Are there any routines with Metafun to improve this code? define 'improve' .. anyway: \starttext \startMPpage numeric xmin, xmax, ymin, ymax; xmin

[NTG-context] resize and center and clip image

2014-05-01 Thread Mikael P. Sundqvist
Hi! Assume that I want to fill in the text area with images, and I want to clip and scale them according to these rules: 1) If the image is too wide (in sense of proportions), then scale it so that the height fits the text area height, center it, and clip it to the text area. (See the attached

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Mikael P. Sundqvist
OK, sorry for the noise. I think I have the solution: \startexternalfigurecollection[k.jpg] \useexternalfigure[k.jpg][k.jpg] \stopexternalfigurecollection \externalfigurecollectionminwidth{k.jpg} \externalfigurecollectionmaxheight{k.jpg} \clip[width=8cm,height=7cm]{% \framed[width=8cm

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Otared Kavian
/Context/essais/mkii/figures/resize-and-center.tex: ! Undefined control sequence \startexternalfigurecollection ...igurecollection {#1}\settrue \c_grph_inclu... l.13 \clip[width=8cm,height=7cm] {% 3

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Mikael P. Sundqvist
]) context(\\hskip%ssp, skalning) context.externalfigure({str},{height=hojd}) context.sprint(bar) end end \stopluacode \unexpanded\def\lundklippfyllbild#1#2#3{% \startexternalfigurecollection[#1]% \useexternalfigure[#1][#1]% \stopexternalfigurecollection% \clip[ width=#2, height=#3, hoffset

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Otared Kavian
},{height=hojd}) context.sprint(bar) end end \stopluacode \unexpanded\def\lundklippfyllbild#1#2#3{% \startexternalfigurecollection[#1]% \useexternalfigure[#1][#1]% \stopexternalfigurecollection% \clip[ width=#2, height=#3, hoffset=0mm, voffset=0mm, ]{% \framed[width=#2,height=#3

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Aditya Mahajan
end \stopluacode \unexpanded\def\lundklippfyllbild#1#2#3{% \startexternalfigurecollection[#1]% \useexternalfigure[#1][#1]% \stopexternalfigurecollection% \clip[ width=#2, height=#3, hoffset=0mm, voffset=0mm, ]{% \framed[width=#2,height=#3,align={middle,lohi},offset=overlay,frame=off]{% \dimen0

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Mikael P. Sundqvist
, skalning) context.externalfigure({str},{height=hojd}) context.sprint(bar) end end \stopluacode \unexpanded\def\lundklippfyllbild#1#2#3{% \startexternalfigurecollection[#1]% \useexternalfigure[#1][#1]% \stopexternalfigurecollection% \clip[ width=#2, height=#3, hoffset=0mm

Re: [NTG-context] resize and center and clip image

2014-05-01 Thread Wolfgang Schuster
) context.externalfigure({str},{height=hojd}) context.sprint(bar) end end \stopluacode \unexpanded\def\lundklippfyllbild#1#2#3{% \startexternalfigurecollection[#1]% \useexternalfigure[#1][#1]% \stopexternalfigurecollection% \clip[ width=#2, height=#3, hoffset=0mm, voffset=0mm

[NTG-context] Metapost: I only need a little bit padding

2014-04-05 Thread Jan Heinen
}lrcorner currentpicture+(0mm,3mm)-- urcorner currentpicture+(0mm,-3mm){up}..{left}urcorner currentpicture+(-3mm,0mm)-- ulcorner currentpicture+(3mm,0mm){left}..{down}ulcorner currentpicture+(0mm,-3mm)--cycle; pickup pencircle scaled 0.5pt; clip currentpicture to p; draw p; currentpicture

Re: [NTG-context] Metapost: I only need a little bit padding

2014-04-05 Thread Peter Rolf
}urcorner currentpicture+(-3mm,0mm)-- ulcorner currentpicture+(3mm,0mm){left}..{down}ulcorner currentpicture+(0mm,-3mm)--cycle; pickup pencircle scaled 0.5pt; clip currentpicture to p; draw p; currentpicture := currentpicture rotated 90; \stopuseMPgraphic \starttext \useMPgraphic

Re: [NTG-context] Pgfplots - passing point coordinates by Lua

2014-02-16 Thread Jaroslav Hajtmar
[scale=1] \tikzset{style={font=\ssxx}} \startaxis [xmin=-1.6, xmax=10, domain=-1.6:10, ymin=-1.1, ymax=1.1, width=\textwidth, height=0.3\textwidth, axis x line=middle, axis y line=middle, axis equal=true, xlabel=$x$, ylabel=$y$, samples=600, clip=true, xtick={0}, ytick={-1,0,1}, grid=major, extra x ticks

Re: [NTG-context] Pgfplots - passing point coordinates by Lua

2014-02-16 Thread DesdeChaves
))} \startTEXpage \starttikzpicture[scale=1] \tikzset{style={font=\ssxx}} \startaxis [xmin=-1.6, xmax=10, domain=-1.6:10, ymin=-1.1, ymax=1.1, width=\textwidth, height=0.3\textwidth, axis x line=middle, axis y line=middle, axis equal=true, xlabel=$x$, ylabel=$y$, samples=600, clip=true, xtick

[NTG-context] Strange output from linear_shade (METAPOST)

2014-02-14 Thread DesdeChaves
,black,white); endfor; clip currentpicture to (0,0)--(0,2cm)--(2cm,2cm)--(3cm,1cm)--(2cm,0)--cycle; draw (0,0)--(0,2cm)--(2cm,2cm)--(3cm,1cm)--(2cm,0)--cycle withcolor .625red; addto finalpicture also currentpicture shifted(avanco*3.5cm,0) ; currentpicture := nullpicture ; avanco := avanco+1

[NTG-context] internal mptopdf conversion fails on older mps file (using MkIV, beta 2013.12.26)

2014-01-02 Thread Sanjoy Mahajan
{rlineto}bd/c{curveto}bd/m{moveto}bd/p{closepath}bd/n{newpath}bd /C{setcmykcolor}bd/G{setgray}bd/R{setrgbcolor}bd/lj{setlinejoin}bd/ml{setmiterlimit}bd /lc{setlinecap}bd/S{stroke}bd/F{fill}bd/q{gsave}bd/Q{grestore}bd/s{scale}bd/t{concat}bd /sd{setdash}bd/rd{[] 0 setdash}bd/P{showpage}bd/B{q F Q}bd/W{clip

Re: [NTG-context] internal mptopdf conversion fails on older mps file (using MkIV, beta 2013.12.26)

2014-01-02 Thread Hans Hagen
setdash}bd/P{showpage}bd/B{q F Q}bd/W{clip}bd %%EndProlog %%Page: 1 1 0.7 G n 0 0 m 0 9.96262 l 9.96262 4.98131 l p F P %%EOF cut fig.1 here Running it through MkIV with the 2013.12.26 beta (or the stable context) produces an empty frame for the inclusion of fig.1

[NTG-context] [***SPAM***] Shifting table header when using overlay

2013-07-14 Thread Dmitriy Tokarev
this effect? Or maybe there is another way to achieve the desired border? Thanks. \startuseMPgraphic{MP:thickBtm} draw (0,2pt)--(OverlayWidth,2pt) withpen pensquare scaled 1pt withcolor red; clip currentpicture to OverlayBox; setbounds currentpicture to OverlayBox; \stopuseMPgraphic

Re: [NTG-context] Failing MPruns

2013-02-14 Thread Marco Patzer
On 2013–02–14 Keith J. Schultz wrote: with your example below I noticed that the red circle is not quite in the graphic. it seems to be clip on the right! It's fine on my machine, or maybe I just don't see it. Marco signature.asc Description: Digital signature

Re: [NTG-context] Failing MPruns

2013-02-14 Thread Keith J. Schultz
example below I noticed that the red circle is not quite in the graphic. it seems to be clip on the right! It's fine on my machine, or maybe I just don't see it. Marco ___ If your question is of interest to others

Re: [NTG-context] Failing MPruns

2013-02-13 Thread Keith J. Schultz
Hi Hans, All, with your example below I noticed that the red circle is not quite in the graphic. it seems to be clip on the right! Just mentioning this. regards Keith. Am 13.02.2013 um 17:54 schrieb Hans Hagen pra...@wxs.nl: On 2/13/2013 1:39 PM, Marco Patzer wrote: Hi

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Otared Kavian
animation: I could not get the same pictures as you show on your webpage. I get only one page out of 8, and the log file says several times: unknown path q ! Improper `clip'. to be read again Best regards: OK On 29 déc. 2012, at 03:55, Troy Henderson thend...@gmail.com wrote: Are the gears more

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
experiments, based on Wolfgang's code on wiki, I reached the following minimal working example: \startuseMPgraphic{MP:thickBtm} draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness}; clip currentpicture to OverlayBox; setbounds currentpicture

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-23 Thread Rogers, Michael K
kludgy. Perhaps there is a better way... Michael \startuseMPgraphic{MP:thickBtm} draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness}; clip currentpicture to OverlayBox; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63

2012-10-23 Thread Shane Peelar
of about 2mm. I discovered the boffset key, which can be used with the overlay, but it's kludgy. Perhaps there is a better way... Michael \startuseMPgraphic{MP:thickBtm} draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness}; clip currentpicture

Re: [NTG-context] Interfering frames in natural tables

2012-05-22 Thread Marco
withpen pensquare scaled \frameddimension{bottomrulethickness} ; clip currentpicture to OverlayBox leftenlarged (\frameddimension {leftrulethickness}/2) rightenlarged (\frameddimension {rightrulethickness}/2) topenlarged(\frameddimension {toprulethickness}/2

[NTG-context] MetaFun: MetaPost example works with `mpost` but not embedded in ConTeXt: `! Redundant equation.`

2011-12-11 Thread Paul Menzel
+dt; trajy:=trajy..(t,y); exitif ((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

[NTG-context] Clip and framed not precise in MKIV

2011-09-21 Thread Otso Helenius
Hi, I've used ConTeXt to chop up a big map svg on separate A4 papers like this: \setuplayout[width=190mm,backspace=10mm,height=297mm,topspace=10mm, header=0mm] \setupclipping[nx=3,ny=3] \starttext \dorecurse{3}{\framed{\clip[x=\recurselevel,y=1]{\externalfigure[map.svg][width=570mm

Re: [NTG-context] Clip and framed not precise in MKIV

2011-09-21 Thread Peter Rolf
Am 21.09.2011 14:26, schrieb Otso Helenius: Hi, I've used ConTeXt to chop up a big map svg on separate A4 papers like this: \setuplayout[width=190mm,backspace=10mm,height=297mm,topspace=10mm, header=0mm] \setupclipping[nx=3,ny=3] \starttext \dorecurse{3}{\framed{\clip[x=\recurselevel

Re: [NTG-context] crop PDF pages

2011-09-20 Thread Henning Hraban Ramm
can use \clip; since you can use it for everything, it's a single command, not an option. See http://wiki.contextgarden.net/Graphical_text_manipulation#.5Cclip Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm

Re: [NTG-context] crop PDF pages

2011-09-20 Thread luigi scarso
but the huge margins take too much space and as a result the texts are too small. I want to use commands like \insertpages to crop all the pages with different bounding box settings for odd/even pages. there's a scale option for \copypages but it's somewhat naive to use in such practical cases... \clip

Re: [NTG-context] Centering 'clipping' text logo

2011-08-17 Thread Peter Rolf
guess would be \midaligned{\vbox{% \clip \clip \clip }} untested.. ;-) -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Centering 'clipping' text logo

2011-08-17 Thread Cecil Westerhof
to no avail. How can I get it centered? my first guess would be \midaligned{\vbox{% \clip \clip \clip }} I tried a lot, but just this one not. I got one long line with the three parts beside each-other, a little room between the parts, no effect, … untested.. ;-) It does exactly what I

Re: [NTG-context] Trying to get figure frame corners to clip figure

2011-07-07 Thread Kip Warner
On Thu, 2011-07-07 at 07:35 +0200, Wolfgang Schuster wrote: There is a example in the metafun manual: http://pragma-ade.com/show-man-7.htm Wolfgang Wolfgang, I appreciate the effort, but you've linked me to a 657 page manual which is totally useless to me. I don't have time to learn another

[NTG-context] Trying to get figure frame corners to clip figure

2011-07-06 Thread Kip Warner
Hey list, I'd like the rounded corners of my figure's frame to clip off the outside corners of the image so they aren't sticking out. This is what I'm making do with: \setupexternalfigures [frame=on, corner=25, framecolor=colour_frame_border, background=color, backgroundcolor

Re: [NTG-context] Trying to get figure frame corners to clip figure

2011-07-06 Thread Aditya Mahajan
On Wed, 6 Jul 2011, Kip Warner wrote: Hey list, I'd like the rounded corners of my figure's frame to clip off the outside corners of the image so they aren't sticking out. This is what I'm making do with: \setupexternalfigures [frame=on, corner=25, framecolor=colour_frame_border

Re: [NTG-context] Trying to get figure frame corners to clip figure

2011-07-06 Thread Kip Warner
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote: You can use \clip[mp=...]{\framed[...]{...}} (I think that the metafun manual gives an example). Aditya Thanks Aditya, I'll look into it. I searched both the reference and tutorial pdf and there is no description of \clip, but I

Re: [NTG-context] Trying to get figure frame corners to clip figure

2011-07-06 Thread Kip Warner
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote: You can use \clip[mp=...]{\framed[...]{...}} (I think that the metafun manual gives an example). Aditya Aditya, correct me if wrong, but it looks like \clip performs rectangular clipping only? As I mentioned earlier, I'd like

Re: [NTG-context] Trying to get figure frame corners to clip figure

2011-07-06 Thread Wolfgang Schuster
Am 07.07.2011 um 07:18 schrieb Kip Warner: On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote: You can use \clip[mp=...]{\framed[...]{...}} (I think that the metafun manual gives an example). Aditya Aditya, correct me if wrong, but it looks like \clip performs rectangular

[NTG-context] Using text as a clip path for Metafun free shape paragraphs

2011-05-22 Thread Otso Helenius
:= currentpicture; currentpicture := nullpicture; fill unitsquare xysized (100mm,100mm) withcolor blue; path mask; mask := unitsquare xysized (100mm,100mm) -- reverse unitsquare xysized (100mm,10mm) shifted (0mm,45mm) -- cycle; clip cur to mask; draw cur; \stopMPcode But I can't cut pictures

Re: [NTG-context] Using text as a clip path for Metafun free shape paragraphs

2011-05-22 Thread Hans Hagen
On 22-5-2011 5:09, Otso Helenius wrote: With this feature one could define for example a 2-page spread for a magazine (with free shape graphics and columns) in between two ordinarily defined pages and would not have to manually disrupt the body text flow through the document. It can

Re: [NTG-context] rules with different thickness

2011-04-20 Thread Reviczky, Adam
\frameddimension {rightrulethickness} ; draw topboundaryOverlayBox withpen pensquare scaled \frameddimension {toprulethickness} ; draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness} ; clip currentpicture to OverlayBox leftenlarged

Re: [NTG-context] rules with different thickness

2011-04-19 Thread Wolfgang Schuster
\frameddimension {toprulethickness} ; draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness} ; clip currentpicture to OverlayBox leftenlarged (\frameddimension {leftrulethickness}/2) rightenlarged (\frameddimension {rightrulethickness}/2

Re: [NTG-context] is this possbile ? \externalfigure[c:\test\test.pdf at page 5 (0, 0) (20, 20)]

2011-04-18 Thread Peter Münster
정진기 jinkijinki.j...@partner.samsung.com writes: What I like to do is “getting certain area of certain page of a PDF file” using context command without saving to a separate JPG file. \clip[...]{\externalfigure[filename.pdf][page=X]} See also: http://wiki.contextgarden.net/Reference/en

Re: [NTG-context] Hairline in header

2011-03-03 Thread Wolfgang Schuster
--(OverlayWidth,0) withcolor blue withpen pencircle scaled 4 shifted (0,4) ; clip currentpicture to OverlayBox ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[headerrules][\useMPgraphic{headerrules}] \setupbackgrounds[header][text][background=headerrules] \starttext \input

Re: [NTG-context] Hairline in header

2011-03-03 Thread Willi Egger
; draw origin--(OverlayWidth,0) withcolor blue withpen pencircle scaled 4 shifted (0,4) ; clip currentpicture to OverlayBox ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[headerrules][\useMPgraphic{headerrules}] \setupbackgrounds[header][text][background

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
You can fill out the bigger one, than clips the smaller one. Can you give me an example with the clip? I can't get it work in a way I want to have it. I've found another thread here: http://www.tug.org/pipermail/metapost/2006-September/000650.html But I fail to see the conclusion there too

[NTG-context] embedding swfs in pdfs

2011-02-02 Thread Ian Lawrence
(provided at fixed location) -load in a folder or directory full of assets (several subfolders are involved) -set up the launch settings for the swf So needs more than InDesign CS5 currently offers. Not just loading in a freestanding swf movie clip. THX Ian

Re: [NTG-context] Replacing a piece of a paper

2011-01-11 Thread Aditya Mahajan
On Tue, 11 Jan 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Or is there another (non-layering or layer-merging) way? You can also crop the pdf (\clip[mp=shape that you want to clip]{\externalfigure[...]}) and place that on paper using layers. That way, even if layers are toggled

Re: [NTG-context] Replacing a piece of a paper

2011-01-11 Thread Hans Hagen
On 11-1-2011 6:59, Aditya Mahajan wrote: On Tue, 11 Jan 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Or is there another (non-layering or layer-merging) way? You can also crop the pdf (\clip[mp=shape that you want to clip]{\externalfigure[...]}) and place that on paper using layers

Re: [NTG-context] Access figure data?

2010-10-14 Thread Peter Rolf
, because I need the pixel size of a graphic for some border checking ('clip' a frame out of a bitmap). Currently I use \getfiguredimensions from the tex side, as I haven't found a way in lua yet. Peter ___ If your question

Re: [NTG-context] Access figure data?

2010-10-14 Thread Hans Hagen
On 14-10-2010 10:10, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? I ask, because I need the pixel size of a graphic for some border checking ('clip' a frame out of a bitmap). Currently I use \getfiguredimensions from the tex side, as I haven't found a way in lua yet

Re: [NTG-context] Access figure data?

2010-10-14 Thread Peter Rolf
Am 14.10.2010 22:22, schrieb Hans Hagen: On 14-10-2010 10:10, Peter Rolf wrote: Nice to have. Is this also possible from the lua side? I ask, because I need the pixel size of a graphic for some border checking ('clip' a frame out of a bitmap). Currently I use \getfiguredimensions from

[NTG-context] sunset showoff

2010-09-15 Thread Henning Hraban Ramm
:\recurselevel][c=0,m=\ctxlua{tex.print(\recurselevel/\Number)},y=1,k=0]} \dorecurse{\Number}{ \clip[ny=\Number,y=\recurselevel]{\color[Col:\recurselevel]\MyLogo} } \hbox{\dorecurse{\Number}{\clip[nx=\Number,x=\recurselevel]{\color[Col:\recurselevel]\MyLogo}}} \stoptext (With the help of Taco

Re: [NTG-context] sunset showoff

2010-09-15 Thread Aditya Mahajan
} \dorecurse{\Number}{\definecolor[Col:\recurselevel][c=0,m=\ctxlua{tex.print(\recurselevel/\Number)},y=1,k=0]} \dorecurse{\Number}{ \clip[ny=\Number,y=\recurselevel]{\color[Col:\recurselevel]\MyLogo} } \hbox{\dorecurse{\Number}{\clip[nx=\Number,x=\recurselevel]{\color[Col:\recurselevel]\MyLogo

  1   2   3   >