Re: [NTG-context] A problem with arranging pages

2012-06-05 Thread Wolfgang Schuster
use \framed in a overlay \setupbackgrounds [page] [background=cropmarks] \defineoverlay [cropmarks] [{\framed[frame=off,bottomframe=on,leftframe=on,width=\overlaywidth,height=\overlayheight]{}}] and even this is overkill because you can just enable the rules of the page frame

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

2012-05-22 Thread Marco
) bottomenlarged (\frameddimension{bottomrulethickness}/2) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay [tableborders] [\useMPgraphic{tableborders}] \startsetups tableborders \setupTABLE [ background=tableborders, frame=off, backgroundoffset

[NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, how to specify the page background for the first page only and how to start page numbering from the second page? Here's my trial: \defineoverlay[Bkg][{\externalfigure[cow]}] \setupbackgrounds[paper][background=Bkg] %\setuppagenumbering[state=2] \starttext \dorecurse{5}{\input

Re: [NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Wolfgang Schuster
Am 02.05.2012 um 09:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to specify the page background for the first page only and how to start page numbering from the second page? Here's my trial: \defineoverlay[Bkg][{\externalfigure[cow]}] \setupbackgrounds[paper

Re: [NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Alan BRASLAU
? \defineoverlay[Bkg][\doif{\pagenumber}{1}{\externalfigure[cow]}] \setupbackgrounds[paper][background=Bkg] \starttext \noheaderandfooterlines \dorecurse{5}{\input knuth\par} \stoptext If you want to create a title page (which may not be your intention), why not simply \definemakeup[titlepage][align

Re: [NTG-context] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .
? \defineoverlay[Bkg][\doif{\pagenumber}{1}{\externalfigure[cow]}] \setupbackgrounds[paper][background=Bkg] \starttext \noheaderandfooterlines \dorecurse{5}{\input knuth\par} \stoptext If you want to create a title page (which may not be your intention), why not simply \definemakeup[titlepage][align=middle

[NTG-context] [***SPAM***] Resetting Page Backgrounds

2012-04-18 Thread Raymond LeClair
) --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift) --(photo_grp_x_shift, photo_grp_y_shift) withpen pencircle scaled 1bp withcolor black; \stopuniqueMPgraphic \defineoverlay[2e31ddc5-43da-4879-a223-61674e0df438][\uniqueMPgraphic{2e31ddc5-43da-4879-a223-61674e0df438

Re: [NTG-context] Page background image

2012-04-06 Thread Kip Warner
On Thu, 2012-04-05 at 04:41 +0200, Wolfgang Schuster wrote: \defineoverlay[backgroundfigure][\overlayfigure{mill}] \setupbackgrounds[page][background=backgroundfigure] \starttext \dorecurse{12}{\page[empty]} \stoptext Wolfgang Thanks Wolfgang Aditya. Both solutions are useful

Re: [NTG-context] Page background image

2012-04-04 Thread Wolfgang Schuster
, but not as the entire page itself. \defineoverlay[backgroundfigure][\overlayfigure{mill}] \setupbackgrounds[page][background=backgroundfigure] \starttext \dorecurse{12}{\page[empty]} \stoptext Wolfgang ___ If your question

Re: [NTG-context] Dynamic content on layers - wiki example not working

2012-02-21 Thread Wolfgang Schuster
=pagenumber] \starttext \dorecurse{4}{\page[empty]} \stoptext Here is a slightly different version which is better when you need more dynamic layers. \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight,preset=middle] \defineoverlay[pagenumber][\texsetup{layer

[NTG-context] Two columns type problem

2012-02-13 Thread Martin Bruchanov
); draw (0,krizy)--(-size/4,krizy); draw (0,krizy)--(size/4,krizy); \stopuseMPgraphic \defineoverlay[PageDeco][\uniqueMPgraphic{PageDeco}] \def\Page#1{ \framed[background={PageDeco}, align=center, frame=off] {~}%\vbox{\bf\rm

Re: [NTG-context] overscored or overlined text … (or whatever it should be called)

2012-01-25 Thread Hans Hagen
:= OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ; draw llcorner p -- urcorner p withcolor OverlayColor ; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \defineframed[StrikeMe][background=strikeme,frame=off,offset=0pt,location=low,backgroundcolor=blue

Re: [NTG-context] overscored or overlined text … (or whatever it should be called)

2012-01-25 Thread Philipp A.
\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \def\strike#1{% \ifmmode% \mframed[background=strikeme,frame=off]{#1}% \else% \inframed[background=strikeme,frame=off]{#1}% \fi} \starttext \startformula {\strike2a + \strike ab \over \strike a} = a \stopformula Works in text, \strike{two}too

Re: [NTG-context] overscored or overlined text … (or whatever it should be called)

2012-01-25 Thread Aditya Mahajan
OverlayColor ; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \def\strike#1{% \ifmmode% \mframed[background=strikeme,frame=off]{#1}% \else% \inframed[background=strikeme,frame=off]{#1}% \fi} \starttext \startformula {\strike2a + \strike ab \over \strike a} = a \stopformula

[NTG-context] color conversion causes error with MPgraphic

2012-01-08 Thread Steffen Wolfrum
Hi, when I run this example ... \setupcolors[state=stop,conversion=never]%needed for specific reason in project \startuseMPgraphic{Test} z1 = (-233,0) ; z2 = (-220,22) ; fill z1 for i=2 upto 2: .. z[i] endfor .. z1 cycle ; \stopuseMPgraphic \defineoverlay[TTest] [\leftaligned {\scale

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan
features of the backgrounds, and then simply define the %D overlays in different styles. \defineoverlay[simpleslides:background:horizontal] \defineoverlay[simpleslides:background:title] \defineoverlay[simpleslides:background:vertical] \defineoverlay[simpleslides:background:ornament] \defineoverlay

[NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-11-30 Thread Raymond LeClair
] \TitleFont THE BEGINNINGS OF \#BOOM}} etex; labeloffset := 0bp; label.lrt(titleText, (front_left_margin, matter_paper_height - top_margin)); \stopreusableMPgraphic \reuseMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} } \defineoverlay[frontmattertitle

Re: [NTG-context] Metafun manual section titles

2011-11-13 Thread Andreas Harder
(withcolor \MPcolor{\framedparameter{framecolor}}) ; draw bottomboundary OverlayBox withpen pencircle scaled 3pt ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[head:line][\useMPgraphic{line}] \defineframedtext [framedHead] [align=right,width=fit, offset=overlay

[NTG-context] Background using Image Overlay

2011-11-07 Thread Syed N Haider
*theta)*radius; draw z1 -- z2 -- z3 -- z4 -- z5 -- z6 -- z7 -- cycle; endfig; end; ConTeXt (after running mpost on the metapost graphic to generate the hexagon.0 file): = \defineoverlay [backg] [{\externalfigure[hexagon.0

Re: [NTG-context] Background using Image Overlay

2011-11-07 Thread Wolfgang Schuster
): = \defineoverlay [backg] [{\externalfigure[hexagon.0][width=\overlaywidth,height=\overlayheight]}] \starttext \noheaderandfooterlines \setupbackgrounds[page][background=backg] %\placefigure %{none} %{\externalfigure[hexagon.0][width=12cm]} \stoptext With ConTeXt

Re: [NTG-context] Solution to a superscript problem?

2011-10-12 Thread Hans Hagen
(13,1) and (14,1)..(14,0); draw (0,0)--(0,12pt) withcolor white; draw p xscaled (\overlaywidth/15) yscaled 5 shifted (0,9mm) withpen pencircle scaled 0.25mm withcolor red; \stopuniqueMPgraphic \defineoverlay[curlybracket][\includeMPgraphic{defline}] \def\sentencedef[#1][#2]{\setbox\scratchbox=\hbox{#2

Re: [NTG-context] Solution to a superscript problem?

2011-10-12 Thread Aditya Mahajan
(7,1) and (7,1)..(8,1)--(13,1)..controls(13,1) and (14,1)..(14,0); draw (0,0)--(0,12pt) withcolor white; draw p xscaled (\overlaywidth/15) yscaled 5 shifted (0,9mm) withpen pencircle scaled 0.25mm withcolor red; \stopuniqueMPgraphic \defineoverlay[curlybracket][\includeMPgraphic{defline}] \def

Re: [NTG-context] Table headers and section titles

2011-09-15 Thread Felix Ingram
}) ; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{LinearShade}] \setupTABLE[row][1][background={shaded},backgroundcolor=blue,foregroundcolor=white] \starttext \framed[background={shaded}, width=\textwidth, frame=off]{} \bTABLE \bTABLEhead \bTR \bTH 1 \eTH \bTH 1 \eTH \bTH 1 \eTH

[NTG-context] Table headers and section titles

2011-09-13 Thread Felix Ingram
yscaled \overlayheight ; linear_shade(p,5,\MPcolor{a},\MPcolor{b}) ; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{LinearShade}] \setupTABLE[row][1][background={shaded},backgroundcolor=blue,foregroundcolor=white] \starttext \framed[background={shaded}, width=\textwidth, frame=off

Re: [NTG-context] Tracking in MKII and MKIV

2011-08-16 Thread Hans Hagen
,-top_margin) ; StopPage ; \stopuniqueMPgraphic \defineoverlay[cover][\uniqueMPgraphic{cover}] \definelayer [page] [width=\paperwidth, height=\paperheight] \showframe \starttext % variant one: \setupbackgrounds [paper] [background={cover

[NTG-context] wrong mlib process calls

2011-08-16 Thread Peter Rolf
(normaltransparent,.5); label(decimal(redpart c) , decimal(greenpart c) , decimal(bluepart c),center(OverlayBox)); \stopuniqueMPgraphic \defineoverlay[foo][\uniqueMPgraphic{foo}{color=foo}] \starttext \framed[width=10cm,height=2cm,frame=on,background=foo]{} \stoptext mlib-pps.7z Description

[NTG-context] Tracking in MKII and MKIV

2011-08-15 Thread Raymond LeClair
- top_margin)); \stopuniqueMPgraphic \defineoverlay[cover][\uniqueMPgraphic{cover}] \starttext \title{} \setupbackgrounds[paper][background={cover}] \stoptext = STOP MKII EXAMPLE = I processed the following ConTeXt source file using MKIV: this is luatex, version beta-0.70.1-2011051908

[NTG-context] \fieldstack

2011-06-25 Thread Wolfgang Schuster
Hi, fieldstack based animations result in a broken PDF document. \setupinteraction[state=start] \starttext \definesymbol[one][\tt 1] \definesymbol[two][\tt 2] \definefieldstack[some][one,two] \defineoverlay[some][\overlaybutton{Walk{some}}] \framed[frame=off,background={foreground,some

Re: [NTG-context] \fieldstack

2011-06-25 Thread Hans Hagen
On 25-6-2011 1:59, Wolfgang Schuster wrote: \setupinteraction[state=start] \starttext \definesymbol[one][\tt 1] \definesymbol[two][\tt 2] \definefieldstack[some][one,two] \defineoverlay[some][\overlaybutton{Walk{some}}] \framed[frame=off,background={foreground,some}]{\fieldstack[some

Re: [NTG-context] writing the name of the section on all the pages

2011-06-15 Thread Julian Becker
replace \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side] with \setuptexttexts [margin] [][\rightaligned{\rotate[rotation=90]{\getmarking[section]}}] [\leftaligned{\rotate[rotation=90

Re: [NTG-context] writing the name of the section on all the pages

2011-05-20 Thread Wolfgang Schuster
to flush it right at least. In many cases you can replace your overlay with a layer (\setlayer etc.) but in your case you can replace \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Marco
how could I write the name of the current \section or \subject in the outer margin, with a rotation of 90°? \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side] Marco

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Alexandre Leray
I write the name of the current \section or \subject in the outer margin, with a rotation of 90°? \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side] Marco

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread Marco
to need? Here is a small complete example: \setuplayout [location=doublesided] \setuppagenumbering [alternative=doublesided] \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}] \setupbackgrounds [text] [rightmargin] [background=side] \starttext

Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread alexandre
this or is this snippet anything I'm supposed to need? Here is a small complete example: \setuplayout [location=doublesided] \setuppagenumbering [alternative=doublesided] \setupbackgrounds [state=repeat] \defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section

Re: [NTG-context] about JS(Walk_Field{})

2011-05-14 Thread Wolfgang Schuster
with the fieldstack mechanism. \setupinteraction[state=start] \starttext \definesymbol[one][1] \definesymbol[two][2] \definefieldstack[some][one,two] \defineoverlay[some][\overlaybutton{Walk{some}}] \framed[background={foreground,some}]{\fieldstack[some]} \stoptext Your mail reminds me to finish

Re: [NTG-context] rules with different thickness

2011-04-20 Thread Reviczky, Adam
\defineoverlay[tableborders][\useMPgraphic{tableborders}] \startsetups tableborders \setupTABLE [ background={color,tableborders}, frame=off, backgroundoffset=0pt, leftrulethickness=\framedparameter{rulethickness}, rightrulethickness

Re: [NTG-context] rules with different thickness

2011-04-19 Thread Reviczky, Adam
; \stopuseMPgraphic \defineoverlay[tableborders][\useMPgraphic{tableborders}] \setupTABLE [background={color,tableborders}, frame=off, leftrulethickness=\framedparameter{rulethickness}, rightrulethickness=\framedparameter{rulethickness}, toprulethickness=\framedparameter{rulethickness

Re: [NTG-context] rules with different thickness

2011-04-19 Thread Wolfgang Schuster
) topenlarged(\frameddimension {toprulethickness}/2) bottomenlarged (\frameddimension{bottomrulethickness}/2) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[tableborders][\useMPgraphic{tableborders}] \startsetups tableborders \setupTABLE

Re: [NTG-context] rules with different thickness

2011-04-18 Thread Wolfgang Schuster
to OverlayBox ; \stopuseMPgraphic \defineoverlay[tableborders][\useMPgraphic{tableborders}] \setupTABLE [ background=tableborders, leftrulethickness=\framedparameter{rulethickness}, rightrulethickness=\framedparameter{rulethickness}, toprulethickness=\framedparameter{rulethickness

Re: [NTG-context] [NTG] How to split a cell of a table by a diagonal line? by using natural table.

2011-04-12 Thread Mojca Miklavec
cells? I once used some cheating: \startuseMPgraphic{LineBack} draw (\overlaywidth,0)--(0,\overlayheight); \stopuseMPgraphic \defineoverlay[LineBack][\useMPgraphic{LineBack}] followed by \setupTABLE[c][1][width=2.6cm] \setupTABLE[1][1][background=LineBack,align={flushleft,low}] \bTABLE \bTR

Re: [NTG-context] Position of MetaPost graphics

2011-04-06 Thread Tim Steenvoorden
; \stopuniqueMPgraphic \startuniqueMPgraphic{leftwave} pickup pencircle scaled 1pt; draw reverse unitwave xscaled (-1*CutSpace) yscaled (LineHeight/2) -- (OverlayWidth,0); setbounds currentpicture to boundingbox OverlayBox; \stopuniqueMPgraphic \defineoverlay[rightwave] [\uniqueMPgraphic{rightwave

[NTG-context] dashed underbar

2011-04-05 Thread Daniel Schopper
Dear all, I'm looking for a solution for dashed underlining. Hacking around I've come quite close, with the only problem that when the underlining begins at the start of a paragraph there gets an empty (grid) line inserted before it. See: \defineoverlay [backgraphics] [\positionoverlay

Re: [NTG-context] dashed underbar

2011-04-05 Thread Wolfgang Schuster
: \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \setupbackgrounds [page] [background={backgraphics}] \setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex, gridcolor=black,fillcolor=white,linecolor=white] \newcount\dashulinecounter \dashulinecounter=1

Re: [NTG-context] Position of MetaPost graphics

2011-04-04 Thread Tim Steenvoorden
))            endfor; pickup pencircle scaled 1pt; draw wave xscaled (OverlayWidth/width) yscaled (OverlayHeight/(2*width)); \stopuniqueMPgraphic \definelayer[decorations][position=yes,option=test,location=r] \setupbackgrounds[page][background=decorations] \defineoverlay[wave][\uniqueMPgraphic{wave

Re: [NTG-context] Position of MetaPost graphics

2011-04-03 Thread Peter Rolf
] \setupbackgrounds[page][background=decorations] \defineoverlay[wave][\uniqueMPgraphic{wave}] \starttext {\ss\bfc A chapter title} \blank[small] \framed[frame=off,bottomframe=on,width=broad,rulethickness=1pt] {\ss\bfx \date \hfill Author Name} \setlayer[decorations]{\framed[background=wave,frame=off

Re: [NTG-context] LinearShade trouble

2011-03-30 Thread Kumar Appaiah
] \startuniqueMPgraphic{LinearShade} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; linear_shade(p,6,\MPcolor{a},\MPcolor{b}) ; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{LinearShade}] \setupbackgrounds[page][background={shaded}] \starttext Here's my first

[NTG-context] withdots framing (sharing an example)

2011-03-21 Thread Pavel Striz
) -- (OverlayWidth, OverlayHeight) -- (0, OverlayHeight) -- (0,0); draw p withpen pencircle scaled 1pt dashed withdots; setbounds currentpicture to boundingbox OverlayBox; \stopuniqueMPgraphic \defineoverlay[Label][\useMPgraphic{Label}] \defineframed[Text][background=Label,frame=off,location=low

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-20 Thread Wolfgang Schuster
) -- (OverlayWidth,0); draw p withpen pencircle scaled \frameddimension{rulethickness} withcolor \MPcolor{\framedparameter{framecolor}}; setbounds currentpicture to boundingbox OverlayBox ; \stopuniqueMPgraphic \defineoverlay[Label][\useMPgraphic{Label}] \defineframed[Text][background=Label,frame

[NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
Hello, I'm trying to create an overlay - text with a line drawn bellow. The following code: --- \defineoverlay[Label][\useMPgraphic{Label}] \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Aditya Mahajan
On Sat, 19 Mar 2011, Procházka Lukáš wrote: Hello, I'm trying to create an overlay - text with a line drawn bellow. The following code: --- \defineoverlay[Label][\useMPgraphic{Label}] \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p yshifted -1cm withpen

[NTG-context] movies no longer recognized?

2011-03-12 Thread Hans van der Meer
This used to work: \defineoverlay[tannenberg][% {\externalfigure[tannenberg.jpg][width=\overlaywidth,height=\overlayheight]}] \hfill\framed[offset=0pt,strut=no,background={foreground,tannenberg}] {\externalfigure[% /Users/hans/Cryptografie/College-Movies

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

[NTG-context] about the line break after \inframed

2011-02-22 Thread Jeong Dalyoung
\defineoverlay[leopard][\uniqueMPgraphic{lions b}] \def\nota#1 {\inframed[frame=off,background=leopard]{#1}} \starttext \nota{test 1:} This is a test for line separation. %\midaligned{\nota{test 2}} \stoptext Then the sentence This is a test. is written in a new line as following. test 1: This is a test

Re: [NTG-context] about the line break after \inframed

2011-02-22 Thread Hongwen Qiu
On 02/22/2011 09:58 PM, Jeong Dalyoung wrote: \startuseMPgraphic{lions b} picture pic; path p ; p := fullsquare xyscaled (\overlaywidth,\overlayheight) randomized 5pt ; pickup pencircle scaled 1pt ; fill p withcolor .850yellow ; draw p withcolor .5yellow ; \stopuseMPgraphic \defineoverlay

Re: [NTG-context] Speech bubbles

2011-02-03 Thread Wolfgang Schuster
; fill p withcolor blue ; draw p withpen pencircle scaled 5 ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[speechbubble][\useMPgraphic{speechbubble}] \starttext \framedtext[frame=off,background=speechbubble]{\input ward } \blank[4cm] \framedtext[frame=off,background

Re: [NTG-context] Speech bubbles

2011-02-03 Thread Ian Lawrence
150}..{dir 110}z2--cycle ; fill p withcolor blue ; draw p withpen pencircle scaled 1 ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[speechL][\useMPgraphic{speechL}] \define [1] \speechbubbleL {\blank \framedtext[frame=off,background=speechL, width=7cm]{#1} \blank[1

[NTG-context] beta/problem with layers

2011-02-01 Thread Andreas Harder
=red] {why is this text not visible?} \defineoverlay[test-overlay][\framed{test-overlay}] \setupbackgrounds[page][background={test-layer,test-overlay}] \starttext \page[empty] \stoptext Greeting Andreas

[NTG-context] how to make 3-line header?

2011-01-27 Thread Jeong Dalyoung
=start] \setuphead[chapter][command=\Myheader] %\setupheadtext[chapter=Chapitre] %\defineoverlay[HeaderDeco][\uniqueMPgraphic{HeaderDeco}] \def\Myheader#1#2%#3 {% \framedtext [width= \overlaywidth, height=6\bodyfontsize, background=screen,%{foreground,HeaderDeco

[NTG-context] Bug against minimals

2010-12-16 Thread Xan
) ; draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ; draw boundingbox p ; draw (0,0) -- (0,-5pt) ; draw (-5pt,0) -- (0,0); draw (w, h) -- (w, h+5pt); draw (w,h) -- (w+5pt,h); setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay

Re: [NTG-context] empty page before chapter and part

2010-12-12 Thread Emanuele Sacco
=no] \setupheadertexts[][part][chapter][] You can replace this block \setupbackgrounds[state=repeat] \setupbackgrounds[header][text][background=whatever] \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}] \couplepage[chapter][before

[NTG-context] customized item list symbol/graphic

2010-12-11 Thread Jan-Erik Hägglöf
(.625,0,0); \stopuniqueMPgraphic \defineoverlay[square][\uniqueMPgraphic{square}] \setupitemgroup [itemize] [1] [symbol=square] \starttext \startitemize[1,columns] \dorecurse{10}{\item itempoint \par} \stopitemize \stoptext This doesn't have any effect so my question is how do I

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Taco Hoekwater
problems with your example code: \defineoverlay[square][\uniqueMPgraphic{square}] That line should read \definesymbol[square][\uniqueMPgraphic{square}] as you need a symbol, not an overlay \startitemize[1,columns] And this '1' should go away: \startitemize[columns] because a '1

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Jan-Erik Hägglöf
is an example: There are two small problems with your example code: \defineoverlay[square][\uniqueMPgraphic{square}] That line should read \definesymbol[square][\uniqueMPgraphic{square}] as you need a symbol, not an overlay \startitemize[1,columns] And this '1' should go away

[NTG-context] empty page before chapter and part

2010-12-11 Thread Emanuele Sacco
, headerdistance=15mm, footerdistance=0mm, textwidth=14cm] \setuppagenumbering [alternative=doublesided, location=marginedge, way=bytext, partnumber=no] \setupheadertexts[][part][chapter][] \setupbackgrounds[state=repeat] \setupbackgrounds[header][text][background=whatever] \defineoverlay[whatever

Re: [NTG-context] empty page before chapter and part

2010-12-11 Thread Emanuele Sacco
=repeat] \setupbackgrounds[header][text][background=whatever] \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}] \couplepage[chapter][before={\defineoverlay[whatever][]}] \setuphead[chapter][before={\pagetype[chapter]}] \setuphead[part

Re: [NTG-context] empty page before chapter and part

2010-12-11 Thread Wolfgang Schuster
\setupbackgrounds[state=repeat] \setupbackgrounds[header][text][background=whatever] \defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}] \couplepage[chapter][before={\defineoverlay[whatever][]}] \setuphead[chapter][before={\pagetype[chapter

Re: [NTG-context] Animations (again, but different)

2010-11-14 Thread Erik Margraf
} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE

Re: [NTG-context] Animations (again, but different)

2010-11-11 Thread Erik Margraf
{\startproperty[1]\overlayfigure{cow}\stopproperty} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties

Re: [NTG-context] Animations (again, but different)

2010-11-04 Thread Wolfgang Schuster
]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE[width=4cm,height=4cm,offset=none] \bTR \bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD \bTD \goto{\overlayfigure{mill

[NTG-context] Simpleslides module is broken?!

2010-10-31 Thread Vyatcheslav Yatskovsky
={}] %\usemodule[t][fixme] \defineoverlay [simpleslides:background:title] [{\externalfigure[Airbus-wing-over-sea-blue-sky-JR][factor=fit]}] %% \starttext \placeTitle \SlideTitle {Спеціальності} Кафедра проводить пiдготовку спеціалістів за напрямом 0502 Автоматика та

Re: [NTG-context] Simpleslides module is broken?!

2010-10-31 Thread Aditya Mahajan
-\\ Інтегрованих Комплексів}, author={Факультет \\ Аерокосмічних Систем Управління}, date={}] %\usemodule[t][fixme] \defineoverlay [simpleslides:background:title] [{\externalfigure[Airbus-wing-over-sea-blue-sky-JR][factor=fit]}] %% \starttext \placeTitle \SlideTitle

Re: [NTG-context] 2SIDE-arranging + doublesided

2010-10-27 Thread Willi Egger
at my example. \setuppapersize[A5][A4,landscape] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \setuparranging[2SIDE] \defineoverlay[right][{\scale[width=\textwidth]{right page}}] \defineoverlay[left] [{\scale[width=\textwidth]{left page}}] \setupbackgrounds

Re: [NTG-context] 2SIDE-arranging + doublesided

2010-10-27 Thread Andreas Harder
~\pagenumber\page} \stoptext Willi On 21 Oct 2010, at 18:05, Andreas Harder wrote: Hi all, please have a look at my example. \setuppapersize[A5][A4,landscape] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \setuparranging[2SIDE] \defineoverlay[right

Re: [NTG-context] metafun

2010-10-23 Thread Aditya Mahajan
} \stoppositionoverlay 3. Define an overlay that is mapped to MP position overlay. \defineoverlay[arrow][\positionoverlay{arrow}] 4. Hook the overlay as a page background \setupbackgrounds[page][background=arrow] 5. Then everything will work. \starttext \section {Anchors and layers

[NTG-context] 2SIDE-arranging + doublesided

2010-10-21 Thread Andreas Harder
Hi all, please have a look at my example. \setuppapersize[A5][A4,landscape] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \setuparranging[2SIDE] \defineoverlay[right][{\scale[width=\textwidth]{right page}}] \defineoverlay[left] [{\scale[width=\textwidth]{left page

Re: [NTG-context] background over two page

2010-10-18 Thread Wolfgang Schuster
\startMPcode draw leftboundary OverlayBox withcolor red ; draw rightboundary OverlayBox withcolor red ; \stopMPcode \fi\fi\fi} \defineoverlay[DrawBackground][\DrawBackground] \starttext \setupbackground[background=DrawBackground] \input knuth \StartBackground \dorecurse{12}{\input

Re: [NTG-context] background over two page

2010-10-18 Thread Otared Kavian
} \defineoverlay[DrawBackground][\DrawBackground] \starttext \setupbackground[background=DrawBackground] \input knuth \StartBackground \dorecurse{12}{\input knuth\par} \StopBackground \input knuth \StartBackground \input knuth\par \StopBackground \input knuth \stoptext Wolfgang

Re: [NTG-context] wrong itemize indenting

2010-10-07 Thread Andreas Harder
} \item \dorecurse{20}{drei } \stopitemize \stopbuffer \defineoverlay [items] [{\framed[width=broad,offset=overlay,align=normal]{\getbuffer}}] \getbuffer % - correct indenting % \bTABLE \bTR\bTD \getbuffer \eTD\eTR \eTABLE \bTABLE[width=broad,height=9\lineheight] \setupTABLE[last

[NTG-context] No bleeding with 2UP arranging

2010-10-01 Thread Vianney le Clément
; fill fullcircle scaled 1cm; StopPage; \stopreusableMPgraphic \defineoverlay[background][\reuseMPgraphic{background}] \setupbackgrounds[page][background=background] \starttext \dorecurse{4}{\page\input tufte} \stoptext There should be a circle centered in the lower-left corner of every page

Re: [NTG-context] poster in context

2010-09-30 Thread Alan BRASLAU
reserved.}][{\tfxx Typeset using {\ConTeXt} mkiv.}] \defineoverlay[Koe] [{\externalfigure[cow][width=114.4cm]}] \setupbackgrounds[text][text][background=Koe] \starttext \definecolumnset[Poster][n=6] \definecolumnsetspan[Normal][n=1] \definecolumnsetspan[Double][n=2] \definecolumnsetspan

Re: [NTG-context] pagenumbers in metafun

2010-09-28 Thread Thomas A. Schmitz
; label.bot(textext(\switchtobodyfont[30pt]\startcolor[orange] decimal PageNumber \stopcolor\ -- \startcolor[darkblue] decimal NOfPages \stopcolor), z[1]) ; StopPage ; \stopuseMPgraphic \defineoverlay [pageback] [\useMPgraphic{back}] \setupbackgrounds[page][background=pageback

[NTG-context] change affecting MPgraphic?

2010-09-24 Thread Marko Schütz Schmuck
OverlayBox withcolor white ; draw OverlayBox withcolor blue ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay [shadow] [\uniqueMPgraphic{shadow}] \def\assignmenttitle#1#2% {\framed[ width=broad, frame=off, align

Re: [NTG-context] Insert page number into multi-page PDF

2010-09-07 Thread Wolfgang Schuster
? \defineoverlay [pagenumber] [\vbox to \paperheight {\blank[force,3cm] \midaligned{\pagenumber\ – \lastpagenumber} \vfill}] \setupbackgrounds[page][background={foreground,pagenumber}] \starttext ... \stoptext Wolfgang

Re: [NTG-context] Insert page number into multi-page PDF

2010-09-07 Thread Vnpenguin
mechanisms Could you give me an example about background mechanism ? \defineoverlay  [pagenumber]  [\vbox to \paperheight     {\blank[force,3cm]      \midaligned{\pagenumber\ – \lastpagenumber}      \vfill}] \setupbackgrounds[page][background={foreground,pagenumber}] \starttext

Re: [NTG-context] TABLE border width for row

2010-09-03 Thread Wolfgang Schuster
\startuniqueMPgraphic{row:right} draw rightboundary OverlayBox withpen pensquare scaled 2pt ; draw topboundaryOverlayBox withpen pensquare scaled 2pt ; draw bottomboundary OverlayBox withpen pensquare scaled 2pt ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay

Re: [NTG-context] Troubles with backgrounds in bTABLE

2010-08-04 Thread Peter Rolf
to OverlayBox; \stopuniqueMPgraphic \startuniqueMPgraphic{Diagonal} path p,q; p := unitsquare xscaled \overlaywidth yscaled \overlayheight; draw llcorner p -- urcorner p withpen pencircle scaled 2pt; \stopuniqueMPgraphic \defineoverlay[Topline][\useMPgraphic{Topline

Re: [NTG-context] Pagebreak without background

2010-08-04 Thread Hans Hagen
On 2-8-2010 3:16, Julian Becker wrote: \defineoverlay[left page] [\useMPgraphic{left page}] \defineoverlay[right page][\useMPgraphic{right page}] \setupbackgrounds[leftpage] [background=left page] \setupbackgrounds[rightpage][background=right page] But now I have them on every page. I don't

[NTG-context] Pagebreak without background

2010-08-02 Thread Julian Becker
I'm working on a document with page backgrounds. I got them working now, using ... ... \defineoverlay[left page] [\useMPgraphic{left page}] \defineoverlay[right page][\useMPgraphic{right page}] \setupbackgrounds[leftpage] [background=left page] \setupbackgrounds[rightpage][background=right page

Re: [NTG-context] Different printing positions on cards

2010-07-23 Thread Jaroslav Hajtmar
=on] \setuparranging [XY] \setuppagenumbering [alternative=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] \startbuffer

Re: [NTG-context] Different printing positions on cards

2010-07-23 Thread Jaroslav Hajtmar
[XY] \setuppagenumbering [alternative=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] \startbuffer[Front

[NTG-context] Different printing positions on cards

2010-07-22 Thread Jaroslav Hajtmar
{backspace}] \setuplayout[location=middle, marking=on] \setuparranging [XY] \setuppagenumbering [alternative=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2

Re: [NTG-context] Different printing positions on cards

2010-07-22 Thread Jaroslav Hajtmar
=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] \startbuffer[Front] \leftaligned{\recurselevel\ - Front

Re: [NTG-context] blurred shadow on images?

2010-07-01 Thread Henning Hraban Ramm
+ ry)... % (xa + hx, ya)...cycle % withcolor transparent(normal, .04, black) ; endfor; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow][\useMPgraphic{mpshadow}] \starttext \rotate[rotation=12]{% \externalfigure[koe][width=50mm

Re: [NTG-context] blurred shadow on images?

2010-06-30 Thread Henning Hraban Ramm
; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{texthole}] \starttext \rotate[rotation=12]{% \framed[height=50mm, width=50mm, frame=off, background=shaded, backgroundoffset=5mm, align=middle]% {\offset[x=1mm,y=-2mm]{\externalfigure[koe][width=50mm]}}% } \stoptext I'm glad I found

Re: [NTG-context] blurred shadow on images?

2010-06-30 Thread Wolfgang Schuster
, black); endfor; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{texthole}] \starttext \rotate[rotation=12]{% \framed[height=50mm, width=50mm, frame=off, background=shaded, backgroundoffset=5mm, align=middle]% {\offset[x=1mm,y=-2mm]{\externalfigure[koe][width=50mm]}}% } \stoptext I'm

[NTG-context] metapost: shading and transparency

2010-06-17 Thread Marco
=0] \definecolor [c] [r=1, g=1, b=1, a=1, t=.5] \definecolor [bg] [r=.8, g=.8, b=1] % Define test background to see transparency (not) working \defineoverlay[bg][\uniqueMPgraphic{bg}] \startuniqueMPgraphic {bg} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor \MPcolor{bg

Re: [NTG-context] Two \framed texts, one below the other

2010-06-15 Thread Marcin Borkowski
have a question: what am I doing wrong? \starttext \definelayer[lyr][width=\overlaywidth,height=\overlayheight,preset=lefttop] \defineoverlay[ovl][lyr][overlay] \framed[width=10cm,height=4cm,background=ovl]{Framed text} \stoptext I want to have something like

Re: [NTG-context] Two \framed texts, one below the other

2010-06-15 Thread Taco Hoekwater
, so now I have a question: what am I doing wrong? This works : \starttext \definelayer[lyr][width=\overlaywidth,height=\overlayheight] \defineoverlay[ovl][{\directsetup{lyr}\tightlayer[lyr]}] \startsetups lyr \setlayer[lyr][preset=lefttop]{left top} \setlayer[lyr][preset=righttop]{right top

<    1   2   3   4   5   6   7   8   >