Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
r the same macro: === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Henri Menke
]\NUM{% > \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] > {\starttabulate[|c|] > \NC \mbox{\the\MQT} \NR > \NC #1 \NR > \stoptabulate}% > \advance\MQT by 1 > \hbox{}} > > \startTEXpage > \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } > \st

Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Wolfgang Schuster
verlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT} \NR \NC #1 \NR \stoptabulate}% \advance\MQT by 1 \hbox{}} \startTEXpage \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stopTEXpage === How can one make a conversion of the numerals output

[NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Related to the last thread ("Numbered, counted snippets in running text"). Let us consider the same macro: === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox{\the\MQT}

[NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Just put together a macro that appears to do what's desired. However, is there a cleaner, more ConTeXt-like way to do this? === \newcount \MQT \MQT=1 \define[1]\NUM{% \framed[offset=overlay,frame=off,background=color,backgroundcolor=green] {\starttabulate[|c|] \NC \mbox

[NTG-context] \startplacetable in \startcolumnset

2018-04-19 Thread Jeong Dal
ure to OverlayBox enlarged 2.5mm; fi \stopuseMPgraphic \defineoverlay [verticalrule] [\useMPgraphic{verticalrule}] \definecolumnset [exam] [n=2, background=verticalrule] \starttext \startcolumnset[exam] \startcolumns[n=2, rule=on] \startitemize[n] \item Question 1. G

Re: [NTG-context] next beta

2018-04-17 Thread Otared Kavian
\NR = New Row \NL = New Line ? \ND = ?? Also it seems that when one encloses the tabulated lines into a \startplacetable...\stopplacetable pair, the coloring of the background does not work. Please see below an example. Best regards: OK %%% begin row-background.tex \setuptabulate[backgroundcolor

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 6:22 PM, Floris van Manen wrote: On 15 Apr 2018, at 18:02, Hans Hagen wrote: (some upbeat music in the background so i could convince myself) what music ? In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor work space with surround 5.

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
ust a hack for bad input ... tex has no spaces so then we need other magic anyway, i added a bogus lookup to the font handler that will remove characters so in a next beta you can do this (some upbeat music in the background so i could convince myself) [...]> one could make a constructor for

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Floris van Manen
> On 15 Apr 2018, at 18:02, Hans Hagen wrote: > > (some upbeat music in the background so i could convince myself) what music ? .F signature.asc Description: Message signed with OpenPGP using GPGMail _

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
r bad input ... tex has no spaces so > then we need other magic > > anyway, i added a bogus lookup to the font handler that will remove > characters so in a next beta you can do this (some upbeat music in the > background so i could convince myself) > [...]> one could make a co

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
st in something that is just a hack for bad input ... tex has no spaces so then we need other magic anyway, i added a bogus lookup to the font handler that will remove characters so in a next beta you can do this (some upbeat music in the background so i could convince myself) \startlu

Re: [NTG-context] Circled text in metapost

2018-04-02 Thread Hans Hagen
rotated 180 ; \stopuseMPgraphic \followtokens{Dies ist ein selbst geschriebener Text} But I want to place the round lines concentrically in a circle (more than two). And I want to place all the lines on colored circled background. \useMPlibrary[txt] \starttext \startuseMPgraphic

Re: [NTG-context] Circled text in metapost

2018-03-31 Thread Gerhard Kugler
{Dies ist ein selbst geschriebener Text} But I want to place the round lines concentrically in a circle (more than two). And I want to place all the lines on colored circled background. In the nice children programming language "logo" it is easy, but yealds pixle grapics only

Re: [NTG-context] Circled text in metapost

2018-03-29 Thread Hans Hagen
withcolor darkred ; setbounds currentpicture to boundingbox p ; \stopuniqueMPgraphic \defineoverlay[half circle][\uniqueMPgraphic{half circle}] \starttext \framed[background=half circle,frame=off]{Text width half circle.} \stoptext Well, if you really want a tear down

Re: [NTG-context] Circled text in metapost

2018-03-29 Thread Henri Menke
darkred ; setbounds currentpicture to boundingbox p ; \stopuniqueMPgraphic \defineoverlay[half circle][\uniqueMPgraphic{half circle}] \starttext \framed[background=half circle,frame=off]{Text width half circle.} \stoptext > > My greatest problems seem to be in the e

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

2018-03-06 Thread ????????
idth]{\ss#1}} \def\PageFrame{% \inframed[width=14mm, height=6mm, frame=off, offset=0pt, framecolor=darkgray, background=color, backgroundcolor=darkgray]{\color[white]{\ssx\pagenumber}}} \def\HeadStr#1{\headnumber[#1]\hskip1em\getm

Re: [NTG-context] Question about text offset

2018-02-28 Thread Hans Hagen
know 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

[NTG-context] Question about text offset

2018-02-27 Thread Henri Menke
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\par \sto

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Henning Hraban Ramm
\input tufte > \stopcolumns > \stoptext > > > Le 23/02/2018 à 13:23, Schmitz Thomas A. a écrit : >>> On 23. Feb 2018, at 12:04, Gerard >>> wrote: >>> >>> Why does not work "rulecolor" in my example below ? it keeps the color

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Gerard
work "rulecolor" in my example below ? it keeps the color of textcolor... The other options of setcolumns (background...) work well but I fail on that one. Have I understood everything? If you look into the source (page-mul.mkiv), there is no key “rulecolor” for \setupcolumns. I don’t

Re: [NTG-context] rulecolor in columns

2018-02-23 Thread Schmitz Thomas A.
> On 23. Feb 2018, at 12:04, Gerard wrote: > > Why does not work "rulecolor" in my example below ? it keeps the color of > textcolor... > > The other options of setcolumns (background...) work well but I fail on that > one. Have I understood everything? >

[NTG-context] rulecolor in columns

2018-02-23 Thread Gerard
Hi, Why does not work "rulecolor" in my example below ? it keeps the color of textcolor... The other options of setcolumns (background...) work well but I fail on that one.Have I understood everything? I am able to use ConTexT enough. Take a look at my little newspaper <http

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
ied something like: >> >> \def\SetPart{% >> \setlayerframed[background]% >> [y=10mm,x=20mm,]% >> {\getmarking[part]} >> } >> \setuphead[chapter][after={\SetPart}] >> >> But I always get the name of the previous part. :( &

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Wolfgang Schuster
ething like: \def\SetPart{% \setlayerframed[background]% [y=10mm,x=20mm,]% {\getmarking[part]} } \setuphead[chapter][after={\SetPart}] But I always get the name of the previous part. :( Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
ly on the first > page of a chapter (article). > > Which approach would you suggest? > In my experience, it’s hard to find the right place for \setupheader(texts) > so that it affects the right page(s). I tried something like: \def\SetPart{% \setlayerframed[background]% [y=10mm

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

2018-02-04 Thread Hans Hagen
of p withpen pencircle scaled 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 [MyBackgro

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

2018-02-03 Thread jmmora
ion and a vertical line for current position) The main problems are: * How can I pass the first page of each section to MetaPost? * How can I protect background color of SomeGreenB to be green and not blue? Thanks. ---8< - Start example \usemodule[present-original

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 wrote: > > I would like to put a (rotated) text on every page in the margin. > Pl

Re: [NTG-context] Question about an environment

2018-01-31 Thread Fabrice Couvreur
width=fit, >align=flushleft, >location=low, >background=color, >backgroundcolor=MyColorA] > > \defineframed > [EXFRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background=color, >bac

[NTG-context] Question about an environment

2018-01-28 Thread Fabrice Couvreur
Hello, How to make the first item on the baseline of the numbering as in the first exercise ? Thanks. Fabrice \defineframed [ACFRAME] [frame=off, boffset=0pt, width=fit, align=flushleft, location=low, background=color, backgroundcolor=MyColorA] \defineframed [EXFRAME

Re: [NTG-context] How to control the placement of a button

2018-01-26 Thread Hans Hagen
] \setuplayout [width=13cm, rightedge=1.5cm] \setupinteraction [state=start, menu=on] \setupinteractionmenu[right] [state=start, align=middle, background=screen, frame=on, width=broad, style=bold, color=] \startinteractionmenu

[NTG-context] How to control the placement of a button

2018-01-25 Thread Otared Kavian
=1.5cm] \setupinteraction [state=start, menu=on] \setupinteractionmenu[right] [state=start, align=middle, background=screen, frame=on, width=broad, style=bold, color=] \startinteractionmenu[right] \startbut[content]$\leftarrow

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
seMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, offset=\bodyfontsize, width=\textwidth] \starttext \startTheorem[lem] bla bla \stopTheorem Bla b

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
framed text which I don’t want. One more thing, is there no way to show the number of the Definition? Thanks again. Best regards, Dalyoung %% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background of Theorems: \defineframed [FunnyFramed] [frame

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
defineframedtext [MyText] [frame=off, background=MyFrame, offset=\bodyfontsize, width=\textwidth] \starttext \startTheorem[lem] bla bla \stopTheorem Bla bla \in {Lemma} [lem] bla bla. \stoptext -

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
}[] shows no number and \in{Theorem}[] shows ?? instead of numbers while \in{Exam}[] shows correctly. Is there a way to show the numbers correctly? Thank you for reading. Best regards, Dalyoung %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
}[] shows ?? instead of numbers while \in{Exam}[] shows correctly. Is there a way to show the numbers correctly? Thank you for reading. Best regards, Dalyoung %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background of Theorems: \defineframed

Re: [NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Hans Hagen
On 1/4/2018 10:11 AM, Jeong Dal wrote: numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]}, just omit the height key

[NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Jeong Dal
={\white\translate[en=Example, kr=예]}, % textcommand=, numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]}, prefix=yes, prefixsegments=chapter, way=bychapter, %counter=Exam, %number=yes

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Aditya Mahajan
On Thu, 7 Dec 2017, Floris van Manen wrote: it might be simpler to have a ‘watch’ option for the context compiler combined with an ‘open result’. e.g. the coffeescript compiler allows for a ‘-w’ option, it will keep the compiler running in the background and start compiling the file(s) as

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Floris van Manen
it might be simpler to have a ‘watch’ option for the context compiler combined with an ‘open result’. e.g. the coffeescript compiler allows for a ‘-w’ option, it will keep the compiler running in the background and start compiling the file(s) as soon as it detects any changes. i guess such

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Jeong Dal
. Best regards, Dalyoung > you need "numbercommand": > > \defineenumeration >[Example] > [headcommand={\framed[background=color,backgroundcolor=red]}, > > numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, > > titlecom

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Hans Hagen
you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes

[NTG-context] about \inframed[] in \defineenumeration

2017-12-04 Thread Jeong Dal
%%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter

Re: [NTG-context] framed with titles

2017-12-02 Thread Pablo Rodriguez
aw p withcolor black ; >     setbounds currentpicture to a ; > \stopuseMPgraphic  > > > \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]  > > \defineframedtext >   [FunnyText] >   [frame=off, >    background=FunnyFrame, >    before={\blank[line,halflin

Re: [NTG-context] framed with titles

2017-12-02 Thread Jeong Dal
eMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [title=no, text=Theorem,

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-23 Thread Thomas Floeren
text > > > The first box is OK and as expected. But with the second one (containing a > “paragraph”) the right offset gets miscalculated, so that the text runs into > the edge of the background. > > With a beta from July or so the be

Re: [NTG-context] framed with titles

2017-11-14 Thread Jeong Dal
ipsed .95 ; fill b withcolor .85white ; %.425green;%. draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\

Re: [NTG-context] framed with titles

2017-11-13 Thread Jeong Dal
}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\textwidth]%\overlaywidth]% \def\FrameTitle #1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf #1\hss}}} \defineenumeration[Thm] [%text=\thm, style=, title=yes, prefix=yes

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
[MyFrame] [before={\blank[3*big]}, after={\blank[5*big]}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style={\setupbodyfont[9pt]}] % Defining a label \definelabel [Definition] [headstyle=\bf\smallcaps

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
e a look to the code below and test it (note that the frame is red in this sample). % Début de la définition d'un texte encadré en rouge % Defining a framed text \defineframedtext [MyFrame] [before={\blank[3*big]}, after={\blank[5*big]}, frame=off,

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
> contains a multi-column “paragraph”. >> >> The first box is OK and as expected. But with the second one >> (containing a “paragraph”) the right offset gets miscalculated, so that >> the text runs into the edge of the background. >> >> With a beta from July or s

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Pablo Rodriguez
. But with the second one > (containing a “paragraph”) the right offset gets miscalculated, so that > the text runs into the edge of the background. > > With a beta from July or so the behavior was still OK. Hi Thomas, I can confirm the bug. It works fine with ConTeXt from TeX Live 201

[NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
b c } \stopTestPar \stoptextbackground \stoptext The first box is OK and as expected. But with the second one (containing a “paragraph”) the right offset gets miscalculated, so that the text runs into the edge of the background. With a beta from July or so the behavior was still OK. Thanks

Re: [NTG-context] Difficulties with learning about ConTeXt

2017-10-23 Thread Pablo Rodriguez
m which does not require one to load external > packages with subtle interactions. Hi Raghu, my experience with LaTeX was brief when compared with yours: about seven years. I think I may be using ConTeXt for almost a decade. My background is in humanities. I cannot code, although I may read

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
\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 > lua error on line 4 in fil

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

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

[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] Centering an algorithm

2017-09-23 Thread Fabrice Couvreur
Hello, Wolfgang offered me a way to present an algorithm. Can not I center it ? Thank you. Fabrice \definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframedtext [algorithmframe] [width=fit, background=color, foregroundstyle={\tt}, backgroundcolor=MyBlue

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Pablo Rodriguez
eup[standard] > [page=no, > doublesided=no, > headerstate=empty, > footerstate=empty, > before=\setups{paginaoff}] > > \starttext > \input knuth > > \startpostponing[+2] > \startstandardmakeup > \setuppagenumbering[location=,] % doesn’t work > \f

[NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Henning Hraban Ramm
=\textheight, background=color, backgroundcolor=blue, foregroundcolor=white, foregroundstyle=bold, frame=off, ]{This page should show no page number} \stopstandardmakeup \stoppostponing \dorecurse{5}{ \recurselevel \input tufte \par } \stoptext Greetlings, Hraban --- http

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
=0.00] > > \defineornament >[FrameTitle] >[preset=lefttop] >[ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [Framed

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

2017-09-04 Thread Procházka Lukáš Ing .
Hello, done here (on the bottom of the page): http://wiki.contextgarden.net/Command/setupheader But the result doesn't show the goal of the example: - header is not shown at all, including its blue "underline", - user cannot check the emptiness of the second page. Maybe a switch to w

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

2017-09-01 Thread Pablo Rodriguez
On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote: > Hello Pablo, > > you inspired me: > > > \setuplayout[header=5mm,headerdistance=5mm,] > \setupheader >[text] >[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]}, > after={\stopframed}, >] > \setupheadertexts[

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

2017-09-01 Thread Procházka Lukáš Ing .
Hello Pablo, you inspired me: \setuplayout[header=5mm,headerdistance=5mm,] \setupheader [text] [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]}, after={\stopframed}, ] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext

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

2017-08-31 Thread Procházka Lukáš Ing .
Hello Pablo, thanks for the answer - yes, it works - for the situation header underline has been defined via \blackrule and not background. I found a proposal for this situation spoken here before: - to provide [noheaderandfooterbackground] (or similar) option for \page which would

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
what you intend. > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament > [FrameTitle] > [preset=lefttop] > [ > frame=off, > foregroundstyle=\

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, b

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

2017-08-30 Thread Pablo Rodriguez
On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote: > [...] > How to: > > - define header to be framed normally and > - to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called? Hi Lukáš, from your sample, I wonder whether you need a complete frame or only a rule in the header.

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Aditya, I tried : \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=00

[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 - b

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundstyle=\bfx, >> foregroundcolor=white, >>

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
orA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundstyle=\bfx, >> foregroundcolor=white, &g

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, > background=color, > b

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[10pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}]

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
[MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[8pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \p

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
} > > fill lltriangle scaled 4cm withcolor darkred; > > \stopuseMPgraphic > > > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > > > \def\Triangledone#1% > > {\framed > > [background=triangledone,frame=off,offset=overlay] > >

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
itled][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangle

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
itled][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangle

[NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
rkred; \stopuseMPgraphic \defineoverlay[triangledone][\useMPgraphic{triangledone}] \def\Triangledone#1% {\framed [background=triangledone,frame=off,offset=overlay] {\tfb\color[white]{\bf#1}}} \startuseMPgraphic{triangledtwo} fill lrtriangle scaled 4cm withcolor darkred; \stopuseMPgr

Re: [NTG-context] question for metapost experts

2017-08-10 Thread Schmitz Thomas A.
> On 10. Aug 2017, at 14:18, Hans Hagen wrote: > > p intersection_point q > > (also sets intersection_found) Boy, impressive and wonderful, thanks a lot!!! It also made me see why I the error stopped the compilation: I had a naming conflict between the slide background and

Re: [NTG-context] beta

2017-08-06 Thread Mikael P. Sundqvist
t; \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
> > one of the many ways ... > > \definelayer > [chapter] > [width=\paperwidth, >height=\paperheight] > > \defineoverlay > [pagebackground] > [\directsetup{pagebackground}] > > \setupbackgrounds > [page] > [background=pagebackgro

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
rry, 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=] but with no luck. But maybe you are right th

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

2017-08-02 Thread Mikael P. Sundqvist
rlays 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
palignment] \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 en

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
Your suggestion with foregroundstyle and foregroundcolor works. Thank you! \setlayer[AddressBg] {\framed[width=55mm,height=30mm, align=right,background=color, backgroundcolor=lightgray, foregroundcolor=red,foregroundstyle=\ss\tfa]{\xmlall{#1}{/address}}} My question (my ’need’) was quite

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.
> However, the color and style instructions (\ss\tfa) have no effect. I tried > to solve that, as a first step, by putting \ss before the \xmlall instruction: > > \startxmlsetups xlm:contact > \setlayer[AddressBg] {\framed[width=55mm,height=30mm, > align=righ

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
, align=right,background=color, backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}} \strut ... \stopxmlsetups This works (see pdf), but there are probably other and better ways. brieven2mkiv.pdf Description: Adobe PDF document Another persisting problem is that the commands are still not

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] texture as background?

2017-07-30 Thread Henning Hraban Ramm
Am 2017-07-29 um 01:01 schrieb Aditya Mahajan : > On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: > >> Ahoi, >> >> is there are way to use a texture (i.e. a repeated pixel image) as a >> background of a frame? > > Use \backgroundimage > > See https:

Re: [NTG-context] width of floats

2017-07-30 Thread Pablo Rodriguez
upfloat[Beispiel][ width=36mm, %~ maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yellow, inner=\hsize.95\textwidth %not very orthodox, anyway ] \setupcaption[Beispiel][ location=none,number=no ] \starttex

Re: [NTG-context] texture as background?

2017-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Use \backgroundimage See https://tex.stackexchange.com/a/69138/323 Aditya

[NTG-context] width of floats

2017-07-28 Thread Henning Hraban Ramm
Ahoi, I wonder how I can limit the width of a custom float, neither "width" nor "maxwidth" seems to have any effect: \definefloat[Beispiel][Beispiele] \setupfloat[Beispiel][ %width=36mm, maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yel

[NTG-context] texture as background?

2017-07-28 Thread Henning Hraban Ramm
Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ If your question

<    5   6   7   8   9   10   11   12   13   14   >