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
]\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
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
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}
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
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
\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
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.
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
> 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
_
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
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
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
{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
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
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
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
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
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
\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
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
> 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?
>
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
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. :(
&
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
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
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
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
]
{\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
width=fit,
>align=flushleft,
>location=low,
>background=color,
>backgroundcolor=MyColorA]
>
> \defineframed
> [EXFRAME]
> [frame=off,
>offset=0pt,
>location=low,
>width=\struttotal,
>background=color,
>bac
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
]
\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
=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
seMPgraphic{MyFrame}]
\defineframedtext
[MyText]
[frame=off,
background=MyFrame,
offset=\bodyfontsize,
width=\textwidth]
\starttext
\startTheorem[lem]
bla bla
\stopTheorem
Bla b
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
defineframedtext
[MyText]
[frame=off,
background=MyFrame,
offset=\bodyfontsize,
width=\textwidth]
\starttext
\startTheorem[lem]
bla bla
\stopTheorem
Bla bla \in {Lemma} [lem] bla bla.
\stoptext
-
}[] 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
}[]
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
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
={\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
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
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
.
Best regards,
Dalyoung
> you need "numbercommand":
>
> \defineenumeration
>[Example]
> [headcommand={\framed[background=color,backgroundcolor=red]},
>
> numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]},
>
> titlecom
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
%%% 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
aw p withcolor black ;
> setbounds currentpicture to a ;
> \stopuseMPgraphic
>
>
> \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
>
> \defineframedtext
> [FunnyText]
> [frame=off,
> background=FunnyFrame,
> before={\blank[line,halflin
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,
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
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=\
}]
\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
[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
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,
> 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
. 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
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
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
\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
\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
=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
\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
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
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
=\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
=0.00]
>
> \defineornament
>[FrameTitle]
>[preset=lefttop]
>[
> frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [Framed
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
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[
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
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
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=\
\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
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.
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
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
=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,
>>
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
frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
> background=color,
> b
=\bfx,
foregroundcolor=white,
background=color,
backgroundcolor=MyColorB,
]
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant
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}]
[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
}
> > fill lltriangle scaled 4cm withcolor darkred;
> > \stopuseMPgraphic
> >
> > \defineoverlay[triangledone][\useMPgraphic{triangledone}]
> >
> > \def\Triangledone#1%
> > {\framed
> > [background=triangledone,frame=off,offset=overlay]
> >
itled][\uniqueMPgraphic{titled}]
>
> \startuseMPgraphic{triangledone}
> fill lltriangle scaled 4cm withcolor darkred;
> \stopuseMPgraphic
>
> \defineoverlay[triangledone][\useMPgraphic{triangledone}]
>
> \def\Triangledone#1%
> {\framed
> [background=triangle
itled][\uniqueMPgraphic{titled}]
>
> \startuseMPgraphic{triangledone}
> fill lltriangle scaled 4cm withcolor darkred;
> \stopuseMPgraphic
>
> \defineoverlay[triangledone][\useMPgraphic{triangledone}]
>
> \def\Triangledone#1%
> {\framed
> [background=triangle
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
> 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
t; \setupbackgrounds
> [page]
> [background=whatever]
>
> \starttext
> test \page test \page test \chapter{OEPS}
> test \page test \page test \chapter{OEPS}
> \stoptext
>
> --
>
> -
>
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
>
> one of the many ways ...
>
> \definelayer
> [chapter]
> [width=\paperwidth,
>height=\paperheight]
>
> \defineoverlay
> [pagebackground]
> [\directsetup{pagebackground}]
>
> \setupbackgrounds
> [page]
> [background=pagebackgro
=\paperheight]
\defineoverlay
[pagebackground]
[\directsetup{pagebackground}]
\setupbackgrounds
[page]
[background=pagebackground]
\startsetups pagebackground
\doifelsemode {chapterpage} {
\setlayer
[chapter]
[preset=middle]
{\scale[width=\textwidth
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
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
__
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
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
> 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
,
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
\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}{
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:
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
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
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
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
901 - 1000 of 4331 matches
Mail list logo