(Latest LMTX, yesterday’s luametatex binary)
The MWE shows no transparency with LMTX, it works with MkIV:
'''
\setupexternalfigures[location=default]
\definetransparency[light][a=1,t=.05]
\definelayer[bg][x=0mm,y=0mm]
\setupbackgrounds[text][background={bg},state=start]
\starttext
Pict /2 , (bbheight Pict / -2) ) ;
Pict := Pict rotated 45;
Pict := Pict shifted (.5PaperWidth, .5PaperHeight) ;
draw Pict withcolor darkyellow ;
StopPage ;
\stopuseMPgraphic
%-
\defineoverlay[MonOverlay][\useMPgraphic{MonGraphique}]
\setupbackgrounds[page][background=MonOverlay
.5 1.5`
echo $OUTPUT ${ROTATION}˚
# downscale, add a white border and a shadow, rotate, move down, add a piece of
tape (tesa1.png), grayscale
convert "$INPUT" \
-auto-orient \
-resize 800x800 \
-bordercolor white -border 10 \
\( +clone -background black -shadow 80x3+2+2 \) +swap \
-backgrou
a piece of
tape (tesa1.png), grayscale
convert "$INPUT" \
-auto-orient \
-resize 800x800 \
-bordercolor white -border 10 \
\( +clone -background black -shadow 80x3+2+2 \) +swap \
-background transparent \
-layers merge \
-rotate ${ROTATION} \
+repage \
-gravity north \
-splice 0x10 \
\(
Hi Wolfgang,
thanks a lot for your help.
Am Thu, Aug 26, 2021 at 05:52:11PM +0200 schrieb Wolfgang Schuster:
> To keep the layer setting you have to move \showframe above your own
> \setupbackgrounds command because the reset of the background-key happens
> then before you pass your
]}
\setupbackgrounds[header][background=Cow]
\showframe
\starttext
\input knuth
\stoptext
The \showframe command is just a wrapper for \setupbackgrounds to enable
the frames on certain parts of the page.
One of the settings which are passed to \setupbacgrounds when you use
\showframe is "backg
Hi,
this sample shows that the image in a layer in header disappears if showframe is
set.
\setupexternalfigures[location=default]
\definelayer[Cow]
[x=0, y=0]
\setlayer[Cow]
[x=10em, y=0mm]
{\externalfigure[cow][height=\lineheight]}
\setupbackgrounds[header][background=Cow]
\showframe
]
\definelayer
[MyLogo]
[doublesided=yes,
width=\paperwidth,
height=\paperheight,
repeat=yes]
\setupbackgrounds [page] [background=MyLogo]
\setuppagenumbering [alternative=doublesided]
\setlayer
[MyLogo]
[left]
[preset=leftbottom,
x=\dimexpr\cutspace-\rightmargindistance
=\paperwidth,
height=\paperheight,
repeat=yes]
\setupbackgrounds[page][background=MyLogo]
\setlayer
[MyLogo]
[hoffset=\dimexpr\textwidth+\backspace+\rightmargindistance\relax,
voffset=\dimexpr\topspace+\textheight+\footerheight\relax]
{\externalfigure[dum][width=\rightmarginwidth
=on,
framecolor=black,
background=,
location=paragraph,
]
\definevimtyping[vimR]
[
syntax=r,
space=off,
lines=split,
numbering=yes,
numberstep=5,
alternative=pscolor,
margin=.5em,
style={\switchtobodyfont[type
[page][background={foreground, hi}]
\starttext
\startTEXpage
\framed[frame=off, offset=none]
{\setlayer[hi]{\color[red]{hi}}
\externalfigure[cow-brown]\framedheight}
\stopTEXpage
\stoptext
In this case, \getfiguredimensions would work, but I don’t know how to
deal with a pure text
d then taking those dimensions
Many thanks for your reply, Hans.
I’m afraid I don’t know how to make the commands work:
\setupexternalfigures[location=default]
\definelayer[hi]
[x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax]
\setupbackgrounds[page][background=
On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote:
Dear list,
I have the following sample:
\definelayer[hi][x=.5\paperwidth, y=.5\paperheight]
\setupbackgrounds[page][background=hi]
\starttext
\setlayer[hi]{hi}
\startTEXpage[offset=10em]
\null
\stopTEXpage
Dear list,
I have the following sample:
\definelayer[hi][x=.5\paperwidth, y=.5\paperheight]
\setupbackgrounds[page][background=hi]
\starttext
\setlayer[hi]{hi}
\startTEXpage[offset=10em]
\null
\stopTEXpage
\stoptext
I don’t get the layer in the TEXpage.
How could I get
, may cause surprising interactions when
around normal typsetting content. Putting the whatsit insertion in a
page background is a way to keep it away. "back-swf.mkiv" suggests:
\setupbackgrounds[page][background=resources]
\setlayer[resources]{\placerenderingwindow[foo][foo]}
Frame}]
\defineframedtext[rfText]
[frame=off,
background=rFrame,
offset=\bodyfontsize,
width=\textwidth,
before=\blank,
after=\blank]
\def\StartFrame{\blank\startrfText}
\def\StopFrame {\stoprfText\blank}
\starttext
\StartFrame
This is a test for the frame.
This is a test for the frame.
This is a
longer supports this.
> [...]
> But, you can use renderings instead:
>
> \useexternalrendering[myaudiorendering]
> [audio/mp3][audio.mp3][embed=yes]
>
> \definerenderingwindow[audiowindow]
> [width=0sp, height=0sp]
>
> \definelayer[resources]
>
not seem to work
\setupcolors[state=start]
\setupcolor[xwi]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code
th=0sp, height=0sp]
\definelayer[resources]
\setupbackgrounds[page][background=resources]
\setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]}
\goto{PLAY SOUND}[StartRendering{myaudiorendering}]
This is basically the example from "/back-swf.mkiv". W
]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
example
\stoptyping
\stoptext
> >
> > - Only 3D files supported. This means U3D and later PRC files. The 3D
> > objects described in the files are shown in a scene whose parameters
> > (like camera position, angle, background color, etc.) can be
> > configured.
> >
> > - The
,
background=color,
backgroundcolor=lightgray,
foregroundcolor=,
foregroundstyle=]
\setupenumerations
[before={\blank},
after={\blank},
alternative=top,
title=yes,
titleleft={},
titleright={},
titlestyle=bold,
width=broad]
\defineenumeration
[exercice]
[text=Exercice
you.
> Fabrice
>
> \setupbodyfont[newcomputermodern-book,11pt]
>
> \defineframed
>[ACFRAME]
>[frame=off,
> width=fit,
> align=flushleft,
> location=low,
> background=color,
> backgroundcolor=lightgray,
> foregroundcolor=,
>
plays all media [1].
hm, sounds bad
4) 3D art
- First appeared in PDF 1.6 (2004).
- Only 3D files supported. This means U3D and later PRC files. The 3D
objects described in the files are shown in a scene whose parameters
(like camera position, angle, background color, etc.)
vince segfaults). Acrobat and Foxit support this
mechanism as well, but Acrobat only allows embedded files. Okular by
mistake auto-plays all media [1].
4) 3D art
- First appeared in PDF 1.6 (2004).
- Only 3D files supported. This means U3D and later PRC files. The 3D
objects describe
\setupbodyfont[newcomputermodern-book,11pt]
\defineframed
[ACFRAME]
[frame=off,
width=fit,
align=flushleft,
location=low,
background=color,
backgroundcolor=lightgray,
foregroundcolor=,
foregroundstyle=]
\startuseMPgraphic{acframe}
fill OverlayBox
]
[frame=off,
width=fit,
align=flushleft,
location=low,
background=color,
backgroundcolor=lightgray,
foregroundcolor=,
foregroundstyle=]
\setupenumerations
[before={\blank},
after={\blank},
alternative=top,
title=yes,
titleleft={},
titleright
ds and turn the frame off and get every odd row in
> > all my tables will have that color for the background.
> >
> > == Example
>
> > \definecolor[grayback][r=.8,g=.8,b=.8]
> > \setupTABL
T. Kurt Bond schrieb am 23.07.2021 um 17:55:
With natural tables I can define a color, tell the table to have to
use color backgrounds and turn the frame off and get every odd row in
all my tables will have that color for the background.
== Example
> Am 23.07.2021 um 17:55 schrieb T. Kurt Bond :
>
> With natural tables I can define a color, tell the table to have to
> use color backgrounds and turn the frame off and get every odd row in
> all my tables will have that color for the background.
>
> Can I get this sam
With natural tables I can define a color, tell the table to have to
use color backgrounds and turn the frame off and get every odd row in
all my tables will have that color for the background.
== Example
\definecolor[grayback][r
m,
>leftmargindistance=4mm,
>leftmargin=57mm,
> ]
>
> \definelayer[leftmargin][
>x=0mm,y=3mm,
> width=\leftmarginwidth,
>height=\textheight
> ]
>
> \setupbackgrounds[text][leftmargin][background=leftmargin,state=start]
>
> \starttext
>
> \
itsquare xyscaled (1mm,1mm) withcolor blue ;
> > \stopreusableMPgraphic
> >
> > \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
> > \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
> >
> > \setupbackgrounds [page][b
the authors.
There are indeed funny characters in the files but nothing your
bilingual local context user group member Alan couldn't help you with (a
good reason to visit him. My french is too rusty (even with some french
music running in the background right now.)
If you can get that code
apterframe]
[\useMPgraphic{chapterframe}]
\defineframedtext
[ChapterFrame]
[frame=off,
background=chapterframe,
width=max,
height=6cm,
after={\blank[2*line]},
offset=0pt]
\setuphead
[chapter]
[align=flushright,
textcommand=\groupedcommand{\blank[medium]}{},
numbercolor=darkgray,
.
Thanks.
Fabrice
###
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\defineframedtext
[FramedText]
[
offset=0.6em,
style=,
toffset=\lineheight,
background=color,
backgroundcolor
gt;
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> style=,
> toffset=\lineheight,
> background=color,
> backgroundcolor=MyCo
ons
\defineframed
[boxframed]
[
width=6em,
height=2\lineheight,
align={middle,lohi},
background=color,
backgroundcolor=blue,
foregroundcolor=white,
forefroundstyle=bold,
]
\startuseMPgraphic[offset=2mm]{boxes}
boxit.A("\boxframed{Box A}");
boxit.B(&qu
;
\stopreusableMPgraphic
\definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
\setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
\setupbackgrounds [page][background=foldingmarkslayer]
\starttext
Test
\stoptext
The error I get:
tex error on line 6 in file ./test.tex: Use
=\paperwidth,height=\paperheight]
\setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
\setupbackgrounds [page][background=foldingmarkslayer]
\starttext
Test
\stoptext
The error I get:
tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't
match its
in the body of the text.
Thanks for your help.
Fabrice
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\defineframedtext
[FramedText]
[
offset=0.6em,
style=,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA
s, stacking doesn't completely work with the boxes macro. drawunboxed is always
drawn on stack 0, which the bpath is drawn on the right stack. That is the reason I use
stack = -1 to put the highlight in the "background".
in a netx upload this will work ok
\startMPpage[offset=2mm, st
s, stacking doesn't completely work with the boxes macro. drawunboxed is always
drawn on stack 0, which the bpath is drawn on the right stack. That is the reason I use
stack = -1 to put the highlight in the "background".
I need to ckeck if the range checked does negative numbers ...
ditya
PS: Hans, stacking doesn't completely work with the boxes macro. drawunboxed is
always drawn on stack 0, which the bpath is drawn on the right stack. That is
the reason I use stack = -1 to put the highlight in the "background"
can probably get rid of some side effects and maigt even
force that but not now). Then, \chapter itself flushes pages so that
should be disabled.
Here is a simple example:
\setuplayout[lines=40,grid=yes]
\definecolumnset[cgjcolset][n=2]
\starttext
\definecolumnsetspan
[chapter]
[background
,
]
\definelayer[leftmargin][
x=0mm,y=3mm,
width=\leftmarginwidth,
height=\textheight
]
\setupbackgrounds[text][leftmargin][background=leftmargin,state=start]
\starttext
\setlayerframed[leftmargin][
frame=off,
offset=overlay,
width=\leftmarginwidth,
align={flushleft,verytolerant
On 6/25/2021 8:33 AM, Christoph Reller wrote:
Hi,
Consider the MWE:
\definetextbackground[background][
background=color,
backgroundcolor=gray]
\starttext
\starttextbackground[background]
Test
\stoptextbackground
\stoptext
In the latest version 2021-06-24 of ConTeXt LMTX
Hi,
Consider the MWE:
\definetextbackground[background][
background=color,
backgroundcolor=gray]
\starttext
\starttextbackground[background]
Test
\stoptextbackground
\stoptext
In the latest version 2021-06-24 of ConTeXt LMTX, the textbackground is not
working. Could this be a bug or am I
Hi,
Consider the following MWE:
\starttext
\setupTABLE[
rulethickness=5pt,
framecolor=white, %red,
background=color,
backgroundcolor=gray,
frame=off]
\setupTABLE[1][2][foregroundcolor=white, topframe=on]
\setupTABLE[r][2][topframe=on]
\bTABLE[setups=table:color]
\bTR \bTD One
).
no, it's a side effect of something else (which shows up with these
extremeely large fonts > 65k glyphs) .. i'll look into it tomorrow
I uploaded a new lmtx ... kind of experimental because I changes some of
the background bist that deals with embedding. The problem is that we
need to d
thanks for the new latest, Hans.
I have compiled the sample from page-ffl.mkxl:
\starttext
\definefacingfloat
[whatever]
\setupfacingfloat
[whatever]
[style=bold,
width=frame,
offset=10pt,
color=white]
\setupfacingfloat
[whatever:left]
[background=color
new latest, Hans.
I have compiled the sample from page-ffl.mkxl:
\starttext
\definefacingfloat
[whatever]
\setupfacingfloat
[whatever]
[style=bold,
width=frame,
offset=10pt,
color=white]
\setupfacingfloat
[whatever:left]
[background=color,
backgroundcolor=red]
withpen pencircle scaled 1pt withcolor
"green" ;
draw anchorcell (3,3) withpen pencircle scaled 1pt withcolor
"red" ;
\stopoverlayMPgraphic
\starttabulate[synchronize=background,background=mp:whatever-6,format={|l|c|r|}]
\NC test \NC test \NC test
,
whatever frameoffset= is set to.
The textbackground mechanism uses MetaPost to draw the background, lines
etc.
Not all options are available for each background, e.g. frameoffset
works by default only for side lines.
Wolfgang
at linetables that
\setuplinetable[n=6,lines=40]
% \setuplinetable[c][1]
[width=2cm,background=color,backgroundcolor=red]
% \setuplinetable[c][4]
[width=3cm,background=color,backgroundcolor=yellow]
% \setuplinetable[c][6]
[width=3cm,background=color,backgroundcolor=magenta]
% \setuplinetable[r][even
and
\stopxtablenext?
Note: I am just typing the outline of the code as the cell definitions is very
long and hopefully my requirement is clear without the entire cell definitions.
better look at linetables that
\setuplinetable[n=6,lines=40]
% \setuplinetable[c][1] [width=2cm,background=color
olor "blue" ;
draw matrixbox (2, 2) (4, 4) enlarged OverlayOffset shifted
paired(OverlayOffset) withpen pencircle scaled 1pt withcolor "red" ;
\stopoverlayMPgraphic
\framed
[synchronize=background,
align=normal,
frame=off,
background=mp:whatever-6,
backgroundo
efineoverlay[whatever-5][\useMPgraphic{whatever-5}]
\framed
[synchronize=background,
align=normal,
frame=off,
background=whatever-5]
{\setmathmatrixanchoring[both]% left|right|both|yes
% {\setmathmatrixanchoring[right]% left|right|both|yes
\startmathmatrix
\NC a1 \N
"three", 0, 1)
withcolor "blue" withtransparency (1,.75) ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[whatever-1][\useMPgraphic{whatever-1}]
\defineoverlay[whatever-2][\useMPgraphic{whatever-2}]
\framed
[synchronize=yes,
align=no
t;blue" withtransparency (1,.75) ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[whatever-1][\useMPgraphic{whatever-1}]
\defineoverlay[whatever-2][\useMPgraphic{whatever-2}]
\framed
[synchronize=yes,
align=normal,
offset=10pt,
frame=off,
backgroun
You are welcome. Obviously, it's a dirty trick. For example, it falls
down if we have a non-white background on our page.
Hopefully LMTX won't take long to update.
Eduardo Bohoyo
El 26/5/21 a las 0:01, jbf escribió:
Thanks Eduardo. Hans had seen the problem and the latest upgrade
solves
the problem is this: these png emoji are using palettes + masks
and that combinaiton gives:
- with gm (gs) : white background
- with mutool : black background
- with luatex : a mess
- with lmtx: what we want
now, testing all this takes a lot of time in mkiv because building the
cache file ta
read that it is bitmap only.
> >
> > I do get a white background though (MKIV), is that how the bitmap is
> > stored?
> >
> >
> > In LuaLaTeX with Harfbuzz shaper as well as ConTeXt LMTX, transparency
> > is properly handled, so I suppose ConTeXt
On 5/14/2021 3:21 AM, Jairo A. del Rio wrote:
El jue, 13 de may. de 2021 a la(s) 19:52, Adam Reviczky
(revic...@gmail.com <mailto:revic...@gmail.com>) escribió:
Thanks Jairo,
That indeed works, should've read that it is bitmap only.
I do get a white background though
El jue, 13 de may. de 2021 a la(s) 19:52, Adam Reviczky (revic...@gmail.com)
escribió:
> Thanks Jairo,
>
> That indeed works, should've read that it is bitmap only.
>
> I do get a white background though (MKIV), is that how the bitmap is
> stored?
>
>
In LuaLaTeX with
Thanks Jairo,
That indeed works, should've read that it is bitmap only.
I do get a white background though (MKIV), is that how the bitmap is stored?
\definefontfeature[Emoji][default][sbix=yes]
\starttext
\framed[background=color,background=black]{\definedfont[file:NotoColorEmoji.ttf*Emoji
=12cm,frame=on,background=Fuzzy,align={middle,lohi}]
{Test}
\stopTEXpage
test.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
: The SVG is generated using GraphViz, which adds a white
box as the background with a transparent border. The GraphViz is being
invoked over a rest API. Even if the binary has a setting to change the
border colour, that setting probably isn't accessible via HTTP POST
[directory=images_bearbeitet_png]
\definelayer
[backgroundimage]
[width=\paperwidth,
height=\paperheight,
state=repeat,
doublesided=yes]
\setupbackgrounds
[page]
[background=backgroundimage]
\setlayer
[backgroundimage]
[right]
[x=\backspace,
y=\dimexpr\topspace+\headerheight+\head
am Mi.,
28. Apr. 2021, 06:53:
It is not clear to me. I have two \setupbackgrounds as you can
see. If I put setupbackgrounds[page][background=blessings,tree]
for the first one I get the tree but not the blessing graphic. If
I also have the same for the second one
(\setupbackg
Move both \definelayer and \setupbackgrounds to the start of the document
and put braces ({...}) around the list entry.
Wolfgang
jbf schrieb am Mi., 28. Apr. 2021, 06:53:
> It is not clear to me. I have two \setupbackgrounds as you can see. If I
> put setupbackgrounds[page][back
It is not clear to me. I have two \setupbackgrounds as you can see. If I
put setupbackgrounds[page][background=blessings,tree] for the first one
I get the tree but not the blessing graphic. If I also have the same for
the second one (\setupbackgrounds[page][background=blessings,tree]) I
get
externalfigure[bless.eps][width=3cm]} % the actual contents of
> the layer
> \setupbackgrounds[page][background=blessings]
>
> \definelayer[tree] % name of the layer
> [x=0mm, y=0mm, % from upper left corner of paper
> width=\paperwidth, height=\paperheight] % let the
the layer cover
the full paper
\setlayer[blessings] % name of the layer
[hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper
left corner of the layer)
{\externalfigure[bless.eps][width=3cm]} % the actual contents of
the layer
\setupbackgrounds[page][background=blessings
to include a highlight definition with white font
on black background with an inframed, but that doesn't seem to work (in
my definitions that is)
___
If your question is of interest to others as well, please add
> On 16 Apr 2021, at 10:36, Thomas A. Schmitz
> wrote:
>
> On 4/16/21 10:26 AM, Hans Åberg wrote:
>>> That it doesn’t update in the background is more a feature than a bug,
>>> otherwise it would complain about broken/unavailable files during the TeX
>>&
On 4/16/21 10:26 AM, Hans Åberg wrote:
That it doesn’t update in the background is more a feature than a bug,
otherwise it would complain about broken/unavailable files during the TeX runs.
It is likely a bug: It has worked in some past versions.
It still works for me (I'm on the latest
e versions of
Preview, one get an extra copy so that they must eventually be all closed by
hand.
> That it doesn’t update in the background is more a feature than a bug,
> otherwise it would complain about broken/unavailable files during the
is not updated unless switching to the Preview
>> application.
>>
>> It something wrong here? Is it not functional in MacOS? Am I missing some
>> clue?
>
> Apple’s Preview updates only on activation, and not reliably (for me, it
> often crashes).
>
> That it does
nd not reliably (for me, it often
crashes).
That it doesn’t update in the background is more a feature than a bug,
otherwise it would complain about broken/unavailable files during the TeX runs.
Hraban
___
If your question
line 4817, is an “additional
pattern”. The background story is that hyphen.tex, the original
hyphenation pattern file for American English, produced in 1982-1983
from a list of hyphenated words (following mostly Webster’s), was later
augmented with more patterns that were supposed to improve hyphenation
[\setups{page:header}]%
\startsetups page:header
\setupMPvariables[hdrPgs]
[curr=\pagenumber,
first={\ref[page][\headerfirst]},
next={\ref[page][\headernext]}]
\framed[
frame=off,
background={hdrPgs}
]{}% all to be done in MP
\stopsetups
\defineoverlay[hdrPgs
,
> > fillcolor = "white",
> > kind = "reverse",
> > align = "r2l",
> > ] scaled 3mm;
> > \stopMPcode
> > \stoptext
> >
> > 1. This works well on a plain background. I can specify the background
> > color in fillcol
uot;,
> kind = "reverse",
> align = "r2l",
> ] scaled 3mm;
> \stopMPcode
> \stoptext
>
> 1. This works well on a plain background. I can specify the background
> color in fillcolor and get the outline effect. When the background is an
> ima
efinedfont[dejavusansmono*arabic]
\setupalign[r2l]
\startMPcode
draw lmt_outline [
text = "سلام",
drawcolor = "red",
fillcolor = "white",
kind = "reverse",
align = "r2l",
] scaled 3mm;
\stopMPcode
\stoptext
1. This works well on a plain backgrou
know.
\stopstanza
\startstanza
And miles to go before I sleep.
\stopstanza
\stoppoem
In case this is an XY problem, background details follow. In a
nutshell: convert a processed Markdown file that includes interpolated
variables, arbitrary classes, and output from R functions into a
format
ou
Fabrice
\definecolor[MyBlue][c=0.2 , m=0.03, y=0.00, k=0.00]
\definecolor[maincolor] [b=.5]
\defineframedtext
[MyFrame]
[frame=off,
background=MyFrame,
width=fit,
height=fit,
style=small]
\startuseMPgraphic{MyFrame}
path b;
picture p;
p := textex
00, k=0.00]
\definecolor[maincolor] [b=.5]
\defineframedtext
[MyFrame]
[frame=off,
background=MyFrame,
width=fit,
height=fit,
style=small]
\startuseMPgraphic{MyFrame}
path b;
picture p;
p := textext.rt("\tfx\bf\white\framedtextparameter{Title}");
i;
endfor ;
eofill bb withcolor "darkgreen" ; % you need to specify your
background
clip currentpicture to bb ;
\stopMPpage
I think I should add that to the metafun manual.
Hans
-
p := bb enlarged 2cm ;
fill pp
withshademethod "linear"
withshadedirection down
withshadecolors (red, blue) ;
for i within tt :
nofill pathpart i;
endfor ;
eofill bb withcolor "darkgreen" ; % you need to specify your
background
clip cur
]
\setupbodyfont[dejavu,10pt,ss]
%
setups and example thanks to Wolfgang Schuster
\startsetups[tablesettings]
\setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex]
\setupTABLE[row][first][background="">
,loffset=.5ex,roffset=.5ex]
\setupTABLE[row][first][background=color,backgroundcolor=tableheader,foregroundcolor=white]
\setupTABLE[first][first][corner=08]
\setupTABLE[last][first][corner=05]
\setupTABLE[first][last][corner=07]
\setupTABLE[last][last][corner=06]
\stopsetups
\starttext
{\bf
,loffset=.5ex,roffset=.5ex]
\setupTABLE[row][first][background="">
\setupTABLE[first][first][corner=08]
\setupTABLE[last][first][corner=05]
\setupTABLE[first][last][corner=07]
\setupTABLE[last][last][corner=06]
\stopsetups
\starttext
= "middle",
style = "type",
background = "DiagonalRule",
}
local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H" }
local pattern_1 = {
".XXX..XX",
"X...
\NC\NR
# \stoptabulate
#}
#\starttext
#\startluacode
# local background_one = {
# align = "middle",
# style = "type",
# background = "DiagonalRule",
# }
#
# local letters_1 = { "A", "B", "C
\NC \bf #1 \NC\NC\NR
\stoptabulate
}
\starttext
\startluacode
local background_one = {
align = "middle",
style = "type",
background = "DiagonalRule",
}
local letters_1 = { "A", "B", "C", "D", "E
\defineoverlay[frames][\positionoverlay{frames}]
> >
> > \setupbackgrounds[text][background=frames]
> >
> >
> > \startMPpositiongraphic{frame}
> >
> > if unknown context_apos : input mp-apos.mpiv ; fi ;
> >
> > \MPgetposboxes{\MPvar{self}}{\MPa
On 2/17/2021 12:18 AM, Jairo A. del Rio wrote:
I've copied the following example from the ConTeXt archive:
\defineoverlay[frames][\positionoverlay{frames}]
\setupbackgrounds[text][background=frames]
\startMPpositiongraphic{frame}
if unknown context_apos : input mp-apos.mpiv ; fi
I've copied the following example from the ConTeXt archive:
\defineoverlay[frames][\positionoverlay{frames}]
\setupbackgrounds[text][background=frames]
\startMPpositiongraphic{frame}
if unknown context_apos : input mp-apos.mpiv ; fi ;
\MPgetposboxes{\MPvar{self}}{\MPanchorid}
if nofposboxes
301 - 400 of 4050 matches
Mail list logo