Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Wolfgang Schuster
] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead   [chapter]   [page=yes,    before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{10}{\samplefile{knuth}} \stopchapter

[NTG-context] placing an MPGraphic/Lines over multiple table cells

2019-01-05 Thread Martin Althoff
yer[ZStrike][hoffset=0mm, voffset=0mm]{\framed[frame=on,width=60mm,height=24mm]{\useMPgraphic{ZRule}}} % arrange the "background" layers \setupbackgrounds[text][background={datatable,foreground,ZStrike}] \blank[force, 28mm] further content \stoptext ___

[NTG-context] \noheaderandfooterlines to suppress header frame, too

2018-10-10 Thread Procházka Lukáš Ing .
Hello, this may have been posted here some time before, but - would it be possible to extend \noheaderandfooterlines command to temporarily suppress bottom frame, too? Suppose having the following code: \setupheadertexts[left][right] \setupbackgrounds[header][bottomframe=on] \starttext

Re: [NTG-context] embedded sounds

2018-10-09 Thread Hans Hagen
] \setupbackgrounds[page][background=resources] \setupbodyfont[100pt] \starttext\bf\ss \setlayer[resources]{\placerenderingwindow[example][mysound]} \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack

[NTG-context] embedded sounds

2018-10-09 Thread Pablo Rodriguez
] %~ [embed] \definereference [StartSoundTrack] [StartRendering{mysound}] \definereference [StopSoundTrack] [StopRendering{mysound}] \definelayer[resources][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=resources] \setupbodyfont[100pt

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-24 Thread Jan U. Hasecke
frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}} \showframe \starttext \setupbackgrounds[page][background=blau] \startstandardmakeup \externalfigure [../bilder/example.png] [width=\textwidth] \blank[5*big] \externalfigure [../bilder/logo.svg] [width=\textwidth] \stops

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-21 Thread Marco Patzer
\defineoverlay [pagedecoration] [\useMPgraphic{pagedecoration}] \setupbackgrounds [page] [background=pagedecoration, backgroundcolor=lightblue] \startuseMPgraphic{pagedecoration} distanceSmall := 3mm; distanceBig := distanceSmall; bleed := 3mm; if PageNumber==1: path pageOne; pageOn

Re: [NTG-context] The dimensions of the first page are not taken into account

2018-08-17 Thread Pablo Rodriguez
  >   \setuplayout >    [topspace=10mm, >     header=\zeropoint, >     footer=10mm, >     height=middle, >     backspace=20mm, >     width=middle] > >   \setupbackgrounds >    [header] >    [text] >    [frame=off, >     topframe=on, >     bottomframe=o

[NTG-context] The dimensions of the first page are not taken into account

2018-08-17 Thread Fabrice Couvreur
=middle, backspace=20mm, width=middle] \setupbackgrounds [header] [text] [frame=off, topframe=on, bottomframe=on, framecolor=red, rulethickness=1pt] \setupheadertexts [First page] \starttext \dorecurse{8}{\input knuth} % ok % \dorecurse{8}{\input

[NTG-context] The dimensions of the first page are not taken into account Hello, I want to create a template with a header on the first page for student testing. If the document contains text that is

2018-08-16 Thread Fabrice Couvreur
=middle, backspace=20mm, width=middle] \setupbackgrounds [header] [text] [frame=off, topframe=on, bottomframe=on, framecolor=red, rulethickness=1pt] \setupheadertexts [First page] \starttext \dorecurse{8}{\input knuth} % ok % \dorecurse{8}{\input

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Fabrice Couvreur
, backspace=20mm, width=middle] \setupbackgrounds [header] [text] [frame=off, topframe=on, bottomframe=on, framecolor=, rulethickness=1pt] \setupinteraction[state=start] \setupfooter[margin][strut=no] \setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber

Re: [NTG-context] embedded sounds aren’t played

2018-08-14 Thread Hans Hagen
-mp3 [akkerman.mp3] [embed] \definereference [StartSoundTrack] [StartRendering{mysound}] \definereference [StopSoundTrack] [StopRendering{mysound}] \definelayer[resources][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=resources

[NTG-context] embedded sounds aren’t played

2018-08-14 Thread Pablo Rodriguez
] \definereference [StartSoundTrack] [StartRendering{mysound}] \definereference [StopSoundTrack] [StopRendering{mysound}] \definelayer[resources][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=resources] \starttext \setlayer[resources

Re: [NTG-context] Some questions about the presentation of a book

2018-07-21 Thread Fabrice Couvreur
m, >topspace=10mm, >bottomspace=10mm, >header=10mm, >footer=10mm, >footerdistance=10mm, >headerdistance=10mm] > > \definelayout > [firstpage] > [header=empty] > > > \setupbackgrounds[header][text][bottomframe=on] > &g

[NTG-context] Some questions about the presentation of a book

2018-07-20 Thread Fabrice Couvreur
head[title][commandbefore={}] \setuplayout [height=middle, width=middle, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \definelayout [firstpage] [header=empty] \setupbackgrounds[header][text][b

Re: [NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Hans Hagen
\bold \MPtext{Pare3} etex, (0, -50))     withcolor yellow     ; \stopuseMPgraphic % Overlays \defineoverlay[Pare][\useMPgraphic{Pare}] \setupbackgrounds[page][background={foreground,Pare}] \starttext   \startTEXpage[width=210mm,height=297mm]     Aaa   \stopTEXpage \stoptext Here, t

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .
ow ; \stopuseMPgraphic % Overlays \defineoverlay[Pare][\useMPgraphic{Pare}] \setupbackgrounds[page][background={foreground,Pare}] \starttext \startTEXpage[width=210mm,height=297mm] Aaa \stopTEXpage \stoptext Here, texts "1" and "U" are not rendered; if you change

[NTG-context] Compile problem after update

2018-07-15 Thread Fabrice Couvreur
=middle] \definelayout[1][noheader] \setuppagenumbering [alternative=, location={footer,right] \setupbackgrounds[header][text] [frame=off, bottomframe=on, framecolor=gray

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
t; … depending on the age of the project. And I fail to find a project using transparent shading where the transparency is done in context. I could not get it working now on the older versions. Maybe you're right and it has never worked the way I thought it had. Sorry for the noise. >

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Hans Hagen
this used to work pre 2016: \setupbackgrounds [page] [background=color, backgroundcolor=lightgray] \definecolor [trans] [a=multiply, t=1, s=1] \starttext \startMPcode path p; p:=fullsquare xyscaled (5cm, 5cm); fill p withshading("linear", ulcorner p, llcorner p) withfrom

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
ransparent. For instance this used to work pre 2016: \setupbackgrounds [page] [background=color, backgroundcolor=lightgray] \definecolor [trans] [a=multiply, t=1, s=1] \starttext \startMPcode path p; p:=fullsquare xyscaled (5cm, 5cm); fill p withshading("linear", ulcorner

[NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
;) doesn't work here withshadecolors (white, white) withtransparency (0, .7); \stopuseMPgraphic %% to illustrate the effect, actual background is white \setupbackgrounds [page] [background=color, backgroundcolor=lightgray] \defineoverlay [gradient-mp] [\useMPgraphic{trans}] %% requires external

Re: [NTG-context] Position of layer in foreground

2018-06-28 Thread Marcus Vinicius Mesquita
} > > > > \setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789} > > \setupbackgrounds[page][background={myfigure}] > > > When you set a layer with the background key it is placed *behind* the > content > of the page but you can

Re: [NTG-context] Position of layer in foreground

2018-06-28 Thread Wolfgang Schuster
re[cow][width=.5\textwidth]} \definelayer[myfigure][x=6cm,y=6cm,preset=middle] \setlayer[myfigure]{\framed[frame=off]{\Title \color[middlecyan]{123456789}}} \setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789} \setupbackgrounds[page][background={my

[NTG-context] Position of layer in foreground

2018-06-27 Thread Marcus Vinicius Mesquita
]{\framed[frame=off]{\Title \color[middlecyan]{123456789}}} \setupbackgrounds[page][background={myfigure}] \stoptext Marcus Vinicius mwe.tex Description: TeX document mwe.pdf Description: Adobe PDF document

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
om,hoffset=.25in,voffset=.25in,     background=color,backgroundcolor=yellow]   {\externalfigure[cow.pdf]}     \stopsetups     \setupbackgrounds [page]     [setups=testpage,background={testpage}]     \starttext     \startmakeup  [testpage]     \framed[backgr

Re: [NTG-context] Bug with \setuptagging and layers

2018-06-10 Thread Hans Hagen
ound=color,backgroundcolor=yellow]   {\externalfigure[cow.pdf]} \stopsetups \setupbackgrounds [page] [setups=testpage,background={testpage}] \starttext \startmakeup  [testpage] \framed[background=color,backgroundco

[NTG-context] Bug with \setuptagging and layers

2018-06-09 Thread Rik Kabel
lor=yellow]   {\externalfigure[cow.pdf]} \stopsetups \setupbackgrounds [page] [setups=testpage,background={testpage}] \starttext \startmakeup  [testpage] \framed[background=color,backgroundcolor=yellow] {\externalfigure[cow.pdf]} \

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
ps BG \defineoverlay[bg][\useMPgraphic{crux}] \setupbackgrounds[page][background=bg] \stopsetups \definestartstop[BG][commands=\setups{BG}] % misc \setupheadtext[en][pubs=] \setupheadtext[en][content=] \setupheadtext[en][index=] \setuplabeltext[en][figure=??\;] \setuplabeltext[en][tab

Re: [NTG-context] Question about text offset

2018-02-28 Thread Hans Hagen
what I mean, see MWE below. Cheers, Henri --- \definelayer   [pagebg]   [width=\textwidth,    height=\textheight] \setupbackgrounds   [text][background=pagebg] \showframe \starttext \setlayer   [pagebg]   [voffset=.25\exheight] % why?   {\vbox{\strut\input lorem\par}} \input lorem

[NTG-context] Question about text offset

2018-02-27 Thread Henri Menke
--- \definelayer   [pagebg]   [width=\textwidth,    height=\textheight] \setupbackgrounds   [text][background=pagebg] \showframe \starttext \setlayer   [pagebg]   [voffset=.25\exheight] % why?   {\vbox{\strut\input lorem\par}} \input lorem\par \stoptext

Re: [NTG-context] Presentation sections identified by color and mark

2018-02-04 Thread Hans Hagen
caled 10pt withcolor "PositionColor" ; fi ; StopPage ; \stopuseMPgraphic * How can I protect background color of SomeGreenB to be green and not blue? just look at the definitions you load ... \definecolor [MyBackgroundColor] [s=.85] \setupbackgrounds [p

[NTG-context] Presentation sections identified by color and mark

2018-02-03 Thread jmmora
olor contrastcolor ; fi ; StopPage ; \stopuseMPgraphic \setupbackgrounds [text] [background={PageShape}] \starttext \setupdocument[title={Title},location={Place}] \startdocument \definecolor[BackgroundColor][r=0,g=.7,b=0] \startTopic[title={Topic Green}] Some text A \start

Re: [NTG-context] text on every page howto

2018-02-02 Thread Otared Kavian
] {\myrotatedtext} \setupbackgrounds[page][background=myrotatedlayer] \starttext \input knuth \stoptext %% end rotated-text.tex > On 2 Feb 2018, at 12:41, dr. Hans van der Meer <havdm...@ziggo.nl> wrote: > > I would like to put a (rotated) tex

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Hans Hagen
  \setupbackgrounds  [page][setups=placeisbn,background=isbn]   \startmakeup   [cover4]   \scale [width=\textwidth] {\red \Title}   \stopmakeup \stoptext For me  (Win64, current standalone beta), compilation halts with: lua error   > lua error on line 4 in file

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Rik Kabel
figure[cow.pdf][width=3cm]} \stopsetups \starttext \setupbackgrounds [page][setups=placeisbn,background=isbn] \startmakeup [cover4] \scale [width=\textwidth] {\red \Title} \stopmakeup \stoptext For me (Win64, current standalone beta), compilation halts with: lua error

Re: [NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Floris van Manen
er [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm] > {\externalfigure[cow.pdf][width=3cm]} > \stopsetups > \starttext > \setupbackgrounds [page][setups=placeisbn,background=isbn] > \startmakeup [cover4] > \scale [width=\textwidth] {\red \

[NTG-context] Lua problem with tagging or setups

2017-10-09 Thread Rik Kabel
  \Title {A Primer on Omphaloskepsis} \startsetups [placeisbn]   \setlayer [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]   {\externalfigure[cow.pdf][width=3cm]} \stopsetups \starttext   \setupbackgrounds  [page][setups=placeisbn,background=isbn

[NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Procházka Lukáš Ing .
Hello, suppose the following code: \setuplayout[header=5mm,headerdistance=5mm,] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext Page 2 in this sample is empty - no text and no header/footer

Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
Hi Pablo, Thank you so much ! Fabrice %\setupbackgrounds[header][text][bottomframe=on] \setuphead [chapter] [header=empty] \setupheader[text][after=\vskip 1pt \hrule] \starttext \starttitle[title={\bf My Book}] \stoptitle \placelist[chapter,section][alternative=c] \stoptext 2017-08

[NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
Hi, How to proceed so that the text of the head is not on the page with the table of contents and pages with the title of the chapter ? Thanks Fabrice \setuplayout [ header=\lineheight, headerdistance=\lineheight, ] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
=] \setupfootertexts[\tfxx Page \pagenumber\,/\,\lastpage][] \definecolor[darkgray] [s=.25] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt, ] \defineframed[headerframed] [ frame=off, % For visualization set

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
r me if I compile the Aditya file. >>> I have another problem with a simple structure. I created the file >>> MyLayout.tex containing the macro and I want to call this macro in the >>> dm1.tex file, but it does not work. >>> Thank you >>> Fabrice >>&g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik
aderdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \defineframed[headerframed] [

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
gt;>> I have another problem with a simple structure. I created the file >>> MyLayout.tex containing the macro and I want to call this macro in the >>> dm1.tex file, but it does not work. >>> Thank you >>> Fabrice >>> >>> # >>

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
e >> >> # >> MyLayout.tex >> # >> >> % macros=mkvi >> >> \startenvironment MyLayout >> >> \setuplayout >>[header=3\lineheight, >> headerdistance=\lineheight] >> >> \setupbackg

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
macros=mkvi \startenvironment MyLayout \setuplayout    [header=3\lineheight,     headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
out >[header=3\lineheight, > headerdistance=\lineheight] > > \setupbackgrounds > [header] > [text] > [ > frame=off, > bottomframe=on, > framecolor=darkgray, > rulethickness=2pt, > ] > > \defineframed[headerframed] &g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
# MyLayout.tex # % macros=mkvi \startenvironment MyLayout \setuplayout    [header=3\lineheight,     headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \defineframed

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
\startenvironment MyLayout \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt, ] \defineframed[headerframed] [ frame=off

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
create three \vbox. Can we simplify > this code a bit ? > >>> Thank you > >>> Fabrice > >> > >> Use the optional argument of the new framed you defined. > > > > In addition to that, you can also simplify other things as well. T

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
plify > this code a bit ? > >>> Thank you > >>> Fabrice > >> > >> Use the optional argument of the new framed you defined. > > > > In addition to that, you can also simplify other things as well. This is > how I would have done it: > > >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Jean-Pierre Delange
three \vbox. Can we simplify this >>> code a bit ? >>> Thank you >>> Fabrice >> >> Use the optional argument of the new framed you defined. > > In addition to that, you can also simplify other things as well. This is how > I would have done it: >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
ox. Can we simplify > this code a bit ? > >>> Thank you > >>> Fabrice > >> > >> Use the optional argument of the new framed you defined. > > > > In addition to that, you can also simplify other things as well. This is > how I would have don

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Otared Kavian
> I would have done it: > > % macros=mkvi > \showframe > > \setuplayout > [header=3\lineheight, >headerdistance=\lineheight] > > \setupbackgrounds > [header] > [text] > [ >frame=off, >bottomframe=on, >framecolor=dar

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Aditya Mahajan
also simplify other things as well. This is how I would have done it: % macros=mkvi \showframe \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Henri
 headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [frame=off,    bottomframe=on,    framecolor=darkgray,    rulethickness=2pt]    \defineframed   [headerframed]   [frame=off,width=fit,height=\headerheight] \starttexdefinition MyHeader #where #day #month #year #titl

[NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Fabrice Couvreur
Hello, To get the alignment, I had to create three \vbox. Can we simplify this code a bit ? Thank you Fabrice % macros=mkvi \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds[header][text] [frame=off, bottomframe

Re: [NTG-context] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
;"""""""""""""""""""""""""""""""""""""""" \switchtobodyfont[11pt] \definelayout

Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
, >topspace=\lineheight] > > \setuplayout > [header=\zeropoint, >headerdistance=3\lineheight, >backspace=2cm, >width=middle, >topspace=2cm] > > \definelayout[1][noheader] > > \setupbackgrounds[header,state=st

Re: [NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Pablo Rodriguez
[1][noheader] \setupbackgrounds[header,state=start][text][frame=off, bottomframe=on,framecolor=gray,rulethickness=2pt] \setupheader[style=bold] \setuppagenumbering [alternative=, location=footer] \defineframed[headerframed] [frame=off,

[NTG-context] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
Hello, How do I make the header appear on the first page only ? Thank you Fabrice \setuplayout [header=2\lineheight, headerdistance=\lineheight, backspace=2cm, width=middle, topspace=\lineheight] \setupbackgrounds[header,state=start][text][frame=off, bottomframe=on,framecolor=gray

Re: [NTG-context] beta

2017-08-06 Thread Mikael P. Sundqvist
lsemarkedpage{chapter}{CHAPTER}{}] > > \setupbackgrounds > [page] > [background=whatever] > > \starttext > test \page test \page test \chapter{OEPS} > test \page test \page test \chapter{OEPS} > \stoptext > > -- > > ---

[NTG-context] beta

2017-08-06 Thread Hans Hagen
in next beta % \setuphead[chapter][after={\markpage[chapter][+1]}] \setuphead[chapter][after={\markpage[chapter]\blank[2*big]}] \defineoverlay [whatever] [\doifelsemarkedpage{chapter}{CHAPTER}{}] \setupbackgrounds [page] [background=whatever] \starttext test \page test \page test

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
> on chapter pages? > > one of the many ways ... > > \definelayer > [chapter] > [width=\paperwidth, >height=\paperheight] > > \defineoverlay > [pagebackground] > [\directsetup{pagebackground}] > > \setupbackgrounds > [page] > [background=pageb

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Hans Hagen
=\paperheight] \defineoverlay [pagebackground] [\directsetup{pagebackground}] \setupbackgrounds [page] [background=pagebackground] \startsetups pagebackground \doifelsemode {chapterpage} { \setlayer [chapter] [preset=middle] {\scale[width=\textwidth

Re: [NTG-context] Disable overlay on chapter pages

2017-08-03 Thread Jean-Pierre Delange
Thank you for your answer, Henning. I am sorry, but it does not work. The problem is that I don't have the marking text in the header, but in overlays in the margins. I tried to replace your \setupheadertexts[][][][] inside the setup with \setupbackgrounds[text][rightmargin][background=]

Re: [NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
t have the marking text in the header, but in overlays in the margins. I tried to replace your \setupheadertexts[][][][] inside the setup with \setupbackgrounds[text][rightmargin][background=] but with no luck. But maybe you are right that one should use setups. /Mikael

[NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
] \setupbackgrounds[text][rightmargin][background=mymargin] \starttext \chapter{Foo} \dorecurse{15}{\section{Bar}\input ward\par} \stoptext ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] About \setupbackgrounds

2017-08-02 Thread Fabrice Couvreur
Hi Aditya, \defineframed [headerframed] [ ..., location=depth, ..., ] Fabrice 2017-08-01 12:21 GMT+02:00 Fabrice Couvreur : > Hi Aditya, > Neither command responds to what I'm trying to do. I will try to be > clearer. If we look at the

Re: [NTG-context] About \setupbackgrounds

2017-08-01 Thread Fabrice Couvreur
Hi Aditya, Neither command responds to what I'm trying to do. I will try to be clearer. If we look at the letter J, it touches the bottom line of the frame. I would like the space to be bigger between the header and the bottom line. Thank you Fabrice 2017-07-31 21:30 GMT+02:00 Aditya Mahajan

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
regards. Kind regards \blank [line] X \page \stopxmlsetups \setuppagenumbering [state=stop] \definelayer[address][width=\paperwidth,height=\paperheight] \setupbackgrounds [page][background={address}] \starttext \xmlprocessbuffer{main}{participants}{} \stoptext brieftekst-test.tex

Re: [NTG-context] letters in context mkiv

2017-07-31 Thread Schmitz Thomas A.
\blank [line] \input knuth \relax Kind regards \blank [line] X \page \stopxmlsetups \setuppagenumbering [state=stop] \definelayer[address][width=\paperwidth,height=\paperheight] \setupbackgrounds [page][background={address}] \starttext \xmlprocessbuffer{main}{

Re: [NTG-context] About \setupbackgrounds

2017-07-31 Thread Aditya Mahajan
On Mon, 31 Jul 2017, Fabrice Couvreur wrote: https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context Hello, I considered the solution proposed by Aditya. How to have a larger space between the title and the bottomframe ? What do you mean by "title"? If you mean the space

[NTG-context] About \setupbackgrounds

2017-07-31 Thread Fabrice Couvreur
\lineheight, headerdistance=\lineheight, backspace=2cm, width=middle, topspace=2cm] \setupbackgrounds[header][text][frame=off, bottomframe=on] \setupheader[style=bold] \defineframed[headerframed] [frame=off, align=middle, width=fit] \setupheadertexts

Re: [NTG-context] Multiline descriptions do not line up

2017-07-09 Thread Hans Hagen
] [headstyle=\tf,alternative=hanging] \definelayer [vLine] \setlayer [vLine] [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]} \setupbackgrounds [text] [background=vLine] \starttext \startDesc{one

Re: [NTG-context] Multiline descriptions do not line up

2017-07-08 Thread Henri Menke
the error is > significantly greater. > \definedescription [Desc] >    [headstyle=\tf,alternative=hanging] > \definelayer   [vLine] > \setlayer  [vLine] >    > [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheigh

[NTG-context] Multiline descriptions do not line up

2017-07-08 Thread Rik Kabel
[vLine] \setlayer [vLine] [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]} \setupbackgrounds [text] [background=vLine] \starttext \startDesc{one} Description of item one. Description of item one.% Description of item

Re: [NTG-context] typesetting serial letters in Context

2017-06-15 Thread r . ermers
[level]{} \setupbackgrounds[page][background={level}] \startxmlsetups xml:setups \xmlsetsetup{#1}{contacts}{xml:contacts} \xmlsetsetup{#1}{contact}{xml:contacts:contact} \stopxmlsetups \xmlregistersetup{xml:setups} \startxmlsetups xml:contacts \xmlflush{#1} \stopxmlsetups \startxml

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
rc := fullsquare xyscaled (50mm, 50mm); color col; col := (1.,.1,.1); drawoptions(withcolor \MPcolor{tred}) ; draw rc withpen pencircle scaled (2.5mm) ; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgrap

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
); draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm)) withcolor %col transparent(1, .4, col) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage

Re: [NTG-context] tabulate as header

2017-03-05 Thread kaddour kardio
Thank you Aditya, i ended up using a layer for my header, but your approach is more succint \setupbackgrounds[page][background=mybg] \setlayer[mybg] % name of the layer [hoffset=2.5cm, voffset=0.2cm] % placement (from upper left corner of the layer) {\framed[frame=off

Re: [NTG-context] A better \definesymbol sought

2017-01-25 Thread Hans Hagen
On 1/24/2017 8:01 PM, Rik Kabel wrote: On 2017-01-24 03:34, Hans Hagen wrote: On 1/24/2017 4:04 AM, Rik wrote: What I want is that the background of the page (yellow in this case) should show through. That is what is done with fill / reverse / cycle, as in: \setupbackgrounds [page

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Rik Kabel
On 2017-01-24 03:34, Hans Hagen wrote: On 1/24/2017 4:04 AM, Rik wrote: What I want is that the background of the page (yellow in this case) should show through. That is what is done with fill / reverse / cycle, as in: \setupbackgrounds [page] [background=color,backgroundcolor

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Hans Hagen
viewer? Is it a font issue? Okay, I got a clean compile using \definecolor and referencing that in the MP page. \setupbackgrounds [page] [background=color,backgroundcolor=yellow] \definecolor[Transp][r=1,t=0,a=12] \definefont [DVSrB] [file:DejaVuSerif-Bold.ttf]

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik
got a clean compile using \definecolor and referencing that in the MP page. \setupbackgrounds [page] [background=color,backgroundcolor=yellow] \definecolor[Transp][r=1,t=0,a=12] \definefont [DVSrB] [file:DejaVuSerif-Bold.ttf] \startuseMPgraphic{HeartTest 1}

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Rik Kabel
shapes, but nothing that I can apply to text glyphs. Undraw doesn’t do it. \setupbackgrounds [page] [background=color,backgroundcolor=yellow] \definefont [DVSrB] [file:DejaVuSerif-Bold.ttf] \startuseMPgraphic{HeartTest} picture h; h := &quo

Re: [NTG-context] dorecurse problem

2017-01-19 Thread Otared Kavian
: 2017.01.17 17:37 MKIV beta fmt: > 2017.1.19 on Win10 x64. There are no errors in the log.) > > \definelayer > [blocks] > [width=\textwidth, > height=\textheight] > > \setupbackgrounds > [page] > [background=blocks] > >

[NTG-context] dorecurse problem

2017-01-19 Thread Rik Kabel
with this, if anything, and how to fix it. (Running ConTeXt ver: 2017.01.17 17:37 MKIV beta fmt: 2017.1.19 on Win10 x64. There are no errors in the log.) \definelayer [blocks] [width=\textwidth, height=\textheight] \setupbackgrounds [page] [background=blocks] \starttext

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
ckfamily[slidesfont][mono][Xits][range={"0222A,"02229,"02205}] % > ∪, ∩, ∅ > \definefontfamily[slidesfont][mono][Latin Modern Mono Light][features=none] > \definefallbackfamily[slidesfont][math][Xits][range={"025C7,"27D5}] % WHITE > DIAMOND, left-join, WHI

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
WHITE DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE \definefontfamily[slidesfont][math][TeX Gyre Pagella Math] \setupbodyfont[slidesfont] % Foreground/background color \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color, backgroundcolor=nearlywhite] % Heade

Re: [NTG-context] align natural tables left and right

2016-12-30 Thread MF
> On 2016-12-29 11:31, MF wrote: > > > > >   Hello list, > > please take a look at this: > > > > \setupbackgrounds[text][frame=on] > > > > \starttext > > > > Preceding text. > > > > \startplacetable[loc

Re: [NTG-context] align natural tables left and right

2016-12-29 Thread Rik Kabel
On 2016-12-29 11:31, MF wrote: Hello list, please take a look at this: \setupbackgrounds[text][frame=on] \starttext Preceding text. \startplacetable[location={none,fit,force,here,middle}] \bTABLE \bTR \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD \eTR \bTR \bTD $a_{21}$ \eTD

[NTG-context] align natural tables left and right

2016-12-29 Thread MF
Hello list, please take a look at this: \setupbackgrounds[text][frame=on] \starttext Preceding text. \startplacetable[location={none,fit,force,here,middle}] \bTABLE   \bTR  \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD   \eTR   \bTR  \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD   \eTR \eTABLE

Re: [NTG-context] \copypages and page numbering

2016-12-22 Thread Hans Hagen
a greater height (or maybe a different crop area), so that it covers the page number. I would simply solve the problem by having the page number on top of the imported pdf. Is it possible? \starttext \setuplayout [page] \setupbackgrounds [page] [background={foreground,whatever}] \definelayer

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Hans Hagen
(it's in the background). \setupbodyfont[9pt] \setuplayout[grid=yes] \showgrid \definelayer [flushbottom] \setupbackgrounds [text] [background=flushbottom] \edef\numberoflines{% \ctxlua{context(math.round(tex.dimen.textheight / tex.dimen.lineheight))}} \starttext Hello \setlayer [flushbottom

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Henri Menke
is to the last line of the grid which I previously computed in Lua (Brrr). Also, this has the disadvantage that text might flow into the layer (it's in the background). \setupbodyfont[9pt] \setuplayout[grid=yes] \showgrid \definelayer [flushbottom] \setupbackgrounds [text] [background=flushbottom

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-14 Thread Jean-Pierre Delange
=.01\paperheight, x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]} \setupbackgrounds[page][background={logo_layer}] \starttext \dorecurse{5}{\input knuth\par} \stoptext Or is there any issue with the sample? At least, the spider should be placed

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-14 Thread Jean-Pierre Delange
: \setupexternalfigure[location=default] \definelayer[logo_layer][state=start] \setlayer[logo_layer][preset=lefttop, y=.01\paperheight, x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]} \setupbackgrounds[page][background={logo_layer}] \starttext

<    1   2   3   4   5   6   7   8   9   10   >