;
\stopuniqueMPgraphic
\defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}]
\define[1]\cancel{%
\ifmmode
\mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\else%
\framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\fi%
}
Maybe something else is available nowadays
Hi again,
you could remove the \localcontrolled around the advance
>
I thought I tried that, but the counter incremented to 6, instead of 4.
Using higher-level primitives seems more like the ConTeXt way.
> why twice ? you only have to typeset the text once, right?
> >
>
On 8/12/2023 7:19 PM, Thangalin wrote:
Thanks Hans.
The \newinteger approach would always increment the value, regardless of
conditionals within the MetaPost code (i.e., it was like legend :=
"\ConcurrentTextGet" would always invoke the macro just be referencing the
MPgraphic and nothing would
Thanks Hans.
The \newinteger approach would always increment the value, regardless of
conditionals within the MetaPost code (i.e., it was like legend :=
"\ConcurrentTextGet" would always invoke the macro just be referencing the
MPgraphic and nothing would prevent its execution). This meant that
On 8/11/2023 9:57 PM, Thangalin wrote:
Hi list,
I'm attempting to make a stylized border around paragraphs that can span
pages. The border runs along the side and the top. (Ideally the top border
wouldn't repeat, but that's a minor issue.) The issue I'm having is that
the title for the text
Hi list,
I'm attempting to make a stylized border around paragraphs that can span
pages. The border runs along the side and the top. (Ideally the top border
wouldn't repeat, but that's a minor issue.) The issue I'm having is that
the title for the text doesn't always appear. Instead, there's a
ter the meeting) but here is one:
>
> \starttext
>
> \defineoverlay
>[test]
>[\color
> [blue]
> {TEST
>\inframed
> [foregroundcolor=red]
> {xxx}
> TEST}]
>
> \fr
}
TEST}]
\framed
[background=test,
foregroundstyle=\switchtobodyfont[small]]
{test}
\stoptext
From now on many commands accept (properly) nested [] inside commands
that use [] as fences (like the setup commands) where it makes sense. It
is up to the user
Ṣ {\d{S}}
\defineactivecharacter ṣ {\d{s}}
\stoptext
This should not produce any typeset output but in lmtx it does.
Background: The following characters are essential for Arabic transliteration
(assuming your email client has the chars):
Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ
I'd use
any typeset output but in lmtx it does.
Background: The following characters are essential for Arabic transliteration
(assuming your email client has the chars):
Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ
I'd use a different font but as you want to go cheap ... attached gets
you going
.
Background: The following characters are essential for Arabic transliteration
(assuming your email client has the chars):
Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ
But most really good fonts don't have them, so we have to compose them. Now
there are other methods, e.g,
1) \definecharacter
I
use \setuptyping for the general style with a background box. But that
conflicts with the setups for special cases like code and result side by
side.
I guess I’ll also include this in the CGJ setup.
... attached an extension that supports inheritance (via category),
still honors 'buffer
n (or doc.pdf#nameddest=destination). But it
understands file:///.
MuPDF-GL seems also not to handle named destinations, but it understands
file:/// too.
PDF.js (the default PDF viewer that comes with Firefox) handles named
destinations, but doesn‘t seem to understand file:/// as a link.
> Background
n[item:bla], \in[item:blub].
\stoptext
```
Can I somehow access the references of inner.tex from outer.tex?
For me, it is not that relevant, that the correct number is set, but the
interaction within the outer PDF should work, so clicking on the
reference should scroll to the correct content.
Backgr
gt;
> fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
> \stopuseMPgraphic
>
> \defineoverlay[Waves][\useMPgraphic{Waves}]
>
> \setupbackgrounds[state=repeat]
> \setupbackgrounds[page][background={Waves}]
>
> \starttext
>
> \dorecurse{10}{\recur
= (0,10)---(70,10)...(60,0)---(10,0)...cycle;
fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
\stopuseMPgraphic
\defineoverlay[Waves][\useMPgraphic{Waves}]
\setupbackgrounds[state=repeat]
\setupbackgrounds[page][background={Waves}]
\starttext
\dorecurse{10}{\recurs
Well this is fun. Getting the right patterns could make some
interesting with fonts.
Thanks for the tip Hans!
Best Wishes
Keith McKay
%
\startMPpage
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r = uniformdeviate(1), g =
uniformdeviate(1), b =
On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote:
Am 09.07.23 um 15:49 schrieb Keith McKay:
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit
of fun. It's code from the luametafun manual to which I added two and
a half lines.
That’s funny.
I replaced
Am 09.07.23 um 15:49 schrieb Keith McKay:
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit of
fun. It's code from the luametafun manual to which I added two and a
half lines.
That’s funny.
I replaced the text by \TeX and published it here:
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit of
fun. It's code from the luametafun manual to which I added two and a
half lines.
Best Wishes
Keith
%%%
\startMPcode
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r =
Reduced size as requested.
Moderator please delete original message which was greater than 100k
Thanks
Keith McKay
Forwarded Message
Subject:Re: [NTG-context] Re: Fwd: Re: text width shadow background
Date: Sat, 8 Jul 2023 14:14:38 +0100
From: Keith McKay
Am 08.07.23 um 15:14 schrieb Keith McKay:
I played about with the number of shadow layers and added a wee bit
randomness which gave a nice effect. See the code below and the attached
png.
Good idea, makes sense for big text – my captions are only 8pt, there 10
layers are already a lot, and
Am 08.07.23 um 11:39 schrieb Hans Hagen via ntg-context:
On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote:
Please, can you explain why the result of lmt_outline is shifted to
the right, if I use it in a macro?
no time now but you can do this instead of the lmt_text:
draw lmt_outline [
Forwarded Message
Subject: Re: [NTG-context] Re: text width shadow background
Date: Sat, 8 Jul 2023 11:39:32 +0200
From: Hans Hagen
To: Henning Hraban Ramm
On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote:
Please, can you explain why the result of lmt_outline is shifted
wunderschöne Bildunterschrift}
\MyCaption{Ein ganz anderer Text}
\stoptext
"""
BTW I recognized I need this not only for captions within images but
also for the glow effect in the CCCamp23 style:
https://events.ccc.de/camp/2023/infos/styleguide.html
InDesign etc. crea
Hi Hans,
In lpdf-emb.lmt, there's a commented-out definition of
lpdf.registerfontmethod that I'd like to use. I've uncommented this in
my installation and it's worked pretty well for me, so can you please
uncomment/enable this by default in the distribution?
If you want further background
Am 06.07.23 um 21:27 schrieb Henning Hraban Ramm:
* I don’t understand why the white fill is not opaque.
Posted too early. I do understand now (overlapping outlines).
Tried to fix it by overwriting the text again in white, but now I don’t
understand how to calculate the shifting:
"""
Hi, maybe you remember that I wanted this since 2017...
I finally managed to get a fuzzy background behind text:
"""
\setupbodyfont[ss,24pt]
\definecolor[tshade][t=.05,a=1,k=1]
\starttexdefinition MyCaption #1
\startMPcode{doublefun}
steps := 10 ;
rulesize := BodyFontSize/steps/
On Tue, 4 Jul 2023, Henning Hraban Ramm wrote:
> Thanks to Taco, Robbert and Jules for their work!
>
>
> I used the downtime to setup a presentation style with a progress bar in the
> footer. But I get the same (first page) graphics on all pages, and the footer
> backgr
Am 04.07.23 um 22:53 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 04.07.2023 um 22:24:
I used the downtime to setup a presentation style with a progress bar
in the footer. But I get the same (first page) graphics on all pages,
and the footer background appears under the text
Henning Hraban Ramm schrieb am 04.07.2023 um 22:24:
Thanks to Taco, Robbert and Jules for their work!
I used the downtime to setup a presentation style with a progress bar
in the footer. But I get the same (first page) graphics on all pages,
and the footer background appears under the text
Thanks to Taco, Robbert and Jules for their work!
I used the downtime to setup a presentation style with a progress bar in
the footer. But I get the same (first page) graphics on all pages, and
the footer background appears under the text area as well as under the
margins.
* I thought
r[Gebuesch]
Hier versteckt sich ein Wolf...
\stopviewerlayer
Bäume, Bäume, Bäume...
\viewerlayer[Gebuesch]{... und ein Rotkehlchen}
\startviewerlayer[Versteck]Rumpelwicht\stopviewerlayer
\defineoverlay[MitVersteck]
[{\overlayrollbutton[VideLayer{Versteck}][HideLayer{Versteck}]}]
\framed[
,
footerstate=empty,
setups={toclist},
before=\setups{toc:setups},
]
\startsetups toc:setups
\setupbackgrounds[page][background=color, backgroundcolor=blue]
\stopsetups
\definemakeup
[standard]
[
doublesided=no,
page=right,
pagestate=start,
headerstate=empty
Index % todo: lucida
{%\startnotmode[*\v!frontpart]
\page[\v!right]
\setupbackgrounds[\v!paper][\c!background=\v!color]
\startmakeup[\v!standard]
\raggedleft
\doifsomething{\currentheadnumber}
{\hfill\expanded{\processMPheadnumber{\currentheadnumber}}}
\vfill
,
\c!numberstyle=\bfe]
and
\def\PlaatsHoofdstukIndex % todo: lucida
{%\startnotmode[*\v!frontpart]
\page[\v!right]
\setupbackgrounds[\v!paper][\c!background=\v!color]
\startmakeup[\v!standard]
\raggedleft
\doifsomething{\currentheadnumber}
{\hfill\expanded
igits_to_brackets suffix suf =
save s, idx;
string s;
pair idx;
s = str suf;
idx = (0,0);
forever:
idx := digits_index (s, xpart idx);
exitif unknown xpart idx;
s := substring (0,xpart idx) of s
& "[]" & substring (ypart idx,infinity) of s;
endfor
s
On 3/30/2023 6:22 PM, Thomas A. Schmitz via ntg-context wrote:
Hi all,
I wanted to use a rightbrace as background for a table, as defined in
meta-imp-fen.mkiv. Unfortunately, I can't get it to work, for 2 reasons:
1. meta-imp-fen doesn't appear to be ported to mkxl.
2. When I try to compile
Hi all,
I wanted to use a rightbrace as background for a table, as defined in
meta-imp-fen.mkiv. Unfortunately, I can't get it to work, for 2 reasons:
1. meta-imp-fen doesn't appear to be ported to mkxl.
2. When I try to compile with the --luatex switch, I get this error message:
tex error
the bottomframe in black. I have tried all kinds of
combinations but unsuccessfully.
Table cells are based on \framed, and there doesn’t seem to be an
option to have different colors of parts of the frame (e.g.
bottomframecolor…)
You can use a MetaPost graphic as background, like
in black. I have tried all kinds of
combinations but unsuccessfully.
Table cells are based on \framed, and there doesn’t seem to be an option
to have different colors of parts of the frame (e.g. bottomframecolor…)
You can use a MetaPost graphic as background, like in the “diagonal”
example
[1]{\RtH}{\rotate{#1}}
\starttext
\setupTABLE[offset=3pt]
\setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
\bTABLE
\bTABLEhead
\bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH
\bTH\RtH{average speed}\eTH \eTR
You can change the vertical alignment
,
footer=0.75cm,
]
\definelayer[test3]
%[x=.5\paperwidth, y=.5\paperheight]
[x=.5\textwidth, y=.5\textheight]
%\setupbackgrounds[page]
\setupbackgrounds[text]
[background=test3]
\starttext
\setlayer[test3][location={middle}]
\framed[offset=overlay
grounds[page]
\setupbackgrounds[text]
[background=test3]
\starttext
\setlayer[test3][location={middle}]
\framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm]
{\externalfigure[cow][width=15mm]}{}
\rotate[rotation=90]{\externalfigure[cow
find an option to do that.
> Tried \dontleavehmode or \hfill in my \RtH macro to no avail.
> Is it possible?
>
>
> \define[1]{\RtH}{\rotate{#1}}
>
> \starttext
>
> \setupTABLE[offset=3pt]
> \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
>
\dontleavehmode or \hfill in my \RtH macro to no avail.
> Is it possible?
>
>
> \define[1]{\RtH}{\rotate{#1}}
>
> \starttext
>
> \setupTABLE[offset=3pt]
> \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
> \bTABLE
> \bTABLEhead
> \bTR \bTH
]
\setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
\bTABLE
\bTABLEhead
\bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH
\bTH\RtH{average speed}\eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD sparrow \eTD \bTD small \eTD \bTD light \eTD \bTD high \eTD \eTR
\bTR \bTD dog
Reminder: This is in a few hours.
For my part I’d like to know what was in the latest updates and maybe
discuss the page breaking in floats (possible with tables, how about
text background boxes – didn’t try yet, just curious).
Hraban
Am 04.03.23 um 18:42 schrieb Henning Hraban Ramm via ntg
b/mdframed/mdframed.pdf)
> >
> > I have searched in the wiki and found \defineenumeration:
> > This is near of that what I need. However I explicitly does not need an
> > enumeration (so no number or counter). Also I am not sure if I can set a
> > background
s not need an
enumeration (so no number or counter). Also I am not sure if I can set a
background and so on.
The other possibility is \defineframedtext. For example this goes much
in the direction that I want:
\definecolor[gbackground][s=0.98]
\defineframedtext[gtk][frame=on,
e if I can set a
background and so on.
The other possibility is \defineframedtext. For example this goes much
in the direction that I want:
\definecolor[gbackground][s=0.98]
\defineframedtext[gtk][frame=on,
offset=5pt,
backgr
eld[Text][Text],
direction = "down",
alternative = "linear",
colors = { "MyColor1", "MyColor2" },
] ;
StopPage;
\stopMPcode}
]
\showframe
\setupbackgrounds[page][background=apage]
\setupbackgrounds[footer][text] [background=color, backgroundcolor=blue]
Hi,
I'm getting unexpected results for \xmlpos
With the example below, I was expecting to get the following positions:
1 2 3 4
However the result is: 2 4 6 8, i.e. each time it's exactly the double.
What am I missing?
Background: I need to define column alignment based on the value
ithcolor .625yellow) ;
> draw fullcircle xscaled 1.5cm yscaled 1cm ;
> \stopuseMPgraphic
>
> %\startnotmode[proof]
> % \defineoverlay[circled][\useMPgraphic{circled}]
> %\stopnotmode
>
> \define[1]\Circled%
> {\framed
> [background=circled,frame=off,offset=overlay]
>
led%
{\framed
[background=circled,frame=off,offset=overlay]
{\color[darkred]{#1}}}
\setuppagenumbering[location=]
\setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}]
\startuniqueMPgraphic{titled}
path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayhei
ble-to-the-Public-as-a-Part-of-Its-Art-of-Code-Series.html>
and a blog post with the background to PostScript here
<https://computerhistory.org/blog/postscript-a-digital-printing-press/>
Regards,
—
Bruce Horrocks
H
;
\stopuniqueMPgraphic
\defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}]
\define[1]\cancel{%
\ifmmode
\mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\else%
\framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\fi%
}
\starttext
\dots E.g
scaled .8pt ;
\stopuniqueMPgraphic
\defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}]
\define[1]\cancel{%
\ifmmode
\mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\else%
\framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\fi%
}
\starttext
Hello.
A few years ago I created a PHP application for printing filled forms with PDF
background. PHP application is generating ConTeXt source code, that is
subsequently translated using the online application
https://live.contextgarden.net.
I have now discovered that the application
ed\def\euros#1{#1\,\symbol[europe][EUR]}
\protected\def\point#1#2#3{\math{#1\left(#2\,;#3\right)}}
\protected\def\coord#1#2{\math{\left(#1\,;#2\right)}}
\define[2]\prod{\m{\vector{#1}\cdot\vector{#2}}}
\protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace}
\stopenvironment\startenv
ntg-context <
ntg-context@ntg.nl> wrote:
> I’m not sure if this ever worked, but at least in latest LMTX it doesn’t:
>
> """
> \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint]
>
> \starttext
>
> \framed[
>background=color,
>ba
I’m not sure if this ever worked, but at least in latest LMTX it doesn’t:
"""
\setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint]
\starttext
\framed[
background=color,
backgroundcolor=yellow,
]{\ss\bfd
Black should always overprint.
}
\stoptext
""&q
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04:
Dear list,
Is there a trick to not apply the leftoffset to the header of a
defineenumeration?
MWE:
[...]
You can use \offset to shift the enumeration title.
\defineframed
[ExampleHeadFrame]
[location=low,
background
Dear list,
Is there a trick to not apply the leftoffset to the header of a
defineenumeration?
MWE:
\definetextbackground
[textFrameEx]
[
frame=off,
framecolor=darkgreen,
rulethickness=2ex,
background=,
location=paragraph,
leftoffset=2.25ex,
rightoffset=2.25ex
21:52, Thomas A. Schmitz via ntg-context
> wrote:
>
> On 10/23/22 21:34, Otared Kavian via ntg-context wrote:
>> Hi Thomas,
>> Both your examples typeset fine with my installation of LMTX (version
>> 2022.10.22 11:23) on MacOS 11.7.
>> (Indeed you previous fil
"Thomas A. Schmitz via ntg-context" writes:
> On 10/23/22 21:34, Otared Kavian via ntg-context wrote:
>> Hi Thomas,
>> Both your examples typeset fine with my installation of LMTX
>> (version 2022.10.22 11:23) on MacOS 11.7.
>> (Indeed you previous file tes
On 10/23/22 21:34, Otared Kavian via ntg-context wrote:
Hi Thomas,
Both your examples typeset fine with my installation of LMTX (version
2022.10.22 11:23) on MacOS 11.7.
(Indeed you previous file test file reporting the background issue is typeset
fine also).
Best regards : Otared
Thanks
Hi Thomas,
Both your examples typeset fine with my installation of LMTX (version
2022.10.22 11:23) on MacOS 11.7.
(Indeed you previous file test file reporting the background issue is typeset
fine also).
Best regards : Otared
> On 23 Oct 2022, at 16:30, Thomas A. Schmitz via ntg-cont
eat,
background={Ornament}]
\starttext
\dorecurse {10} {Test \page}
\stoptext
All best
Thomas
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist :
Hi Thomas,
Your example does indeed show the issue I had reported on with Simpleslides:
the backgrounds of the slides are not as expected.
So it seems that beginning with version 2022-10-15 something has changed with
Metapost or the background mechanism.
Best regards: Otared
> On 21 Oct 2
(0, -14.42pt) ;
draw p[i] withcolor (0.5,0.5,0.5) ;
endfor ;
pickup pencircle scaled 2pt ;
draw p[0] withcolor red ;
StopPage ;
\stopreusableMPgraphic
\defineoverlay[Card][\reuseMPgraphic{card}]
\setupbackgrounds[page]
[state=repeat,
background={Card
,
after=\blank,
background=]
\setupfloats
[freeregion=no]
\definedescription
[Definition]
[alternative=top,
text={Definition: },
title=yes,
before=\startOliver,
after=\stopOliver,
inbetween={\blank[medium]}]
\startbuffer[sampletext
works perfectly. I included everything in this
code, to show exactly, what is not working.
\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft,
offset=1em,background=color,framecolor=black]
{{\bf Box with centered image} \blank[medium]
\input khatt-en
Dear Oliver,
maybe something like this?
This is my example:
\starttext
\setuppapersize
[A5]
\setupexternalfigures
[location=default]
\setupindenting
[yes, small]
\setupwhitespace
[small]
\defineframedtext
[prettyblock]
[width=10cm,
indenting={yes, small},
background
it the wrong way. I would appreciate if someone could help me or
has a tipp.
Here is an example code, where the figure does not behave as expected, i.e. the
figure is behind the text:
\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft,
offset=1em,background=color
dto connections also image(
draw (offset_bc, offset_br) -- (vc, vr)
withcolor colour_edge
withpen pencircle
scaled 0.05bp;
);
);
endfor;
draw hexgrid scaled SCALE;
draw vertices scaled SCALE;
draw connections scaled SCALE;
draw perceptr
;
\stopuniqueMPgraphic
\framedtext
[height=fit,
align={lohi,center},
background=Cutpointstight,
foregroundcolor=black,
frame=off,
offset=3pt]
{{\tfa HALITGARII EPISCOPI
\blank[small]
De vitiis et virtutibus
\blank[small
On Sun, 18 Sep 2022 10:13:34 +0200
Axel Kielhorn via ntg-context wrote:
> There are still some further ideas and a lot to learn for me:
> - multi line annotations
> - a transparent white background
> - a frame around the text
Just use
"\framed[background=color,backgroundcolor
Hello,
last week I learned something about MetaPost at the context meeting.
Thanks Taco!
First a little background:
I write a lot of documentation and sometimes I need to include a picture with
annotations.
Until now I used a drawing program to add text and arrows.
This has one disadvantage
\defineoverlay
[verticalrule]
[\useMPgraphic{verticalrule3}]
\definecolumnset
[exam]
[n=2,
background=verticalrule]
\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background
]
\chapter{通用规}
\placefigure
[left,none]
{汉字表}
{\framed
[width=4cm,
height=2\lineheight,
frame=off,
backgroundcolor=darkgreen,
foregroundcolor=white,
background=color]
{汉字表}}
\dorecurse{40}{%
通用规\ruby{范
I really don't understand how TexLive is installed. On Gentoo Linux, the code
that handles TexLive installation is complex. I can't reuse code that I don't
understand.
I came from LaTeX background. I got sick of handling incompatible modules in
LaTeX and decided to try ConTeXt. I had used
[before={
\startnarrow[left=1cm,before={\blank[10pt]}]
\switchtobodyfont[8pt]
\startframed
[align=flushleft,
background=color,
backgroundcolor=gray,
frame=off,
leftframe=on,
rulethickness=2pt,
make \startnarrow[middle=1cm] (or left=... for that matter)
produce any offset on the left. I was playing with the following
example, but the frame refuses to be shifted to the right
\setupvimtyping
[before={
\startnarrow[left=1cm,before={\blank[10pt]}]
\switchtobodyfont[8pt]
][{%
\externalfigure[mill][width=\overlaywidth]
}]
\framed[background=Mill,width=3cm,height=4cm,
corner=round,radius=1cm,
backgroundcorner=round,backgroundradius=1cm,
offset=overlay]{}
\setupexternalfigures[location=default]
\starttext
\startMPclip{rounded corner}
clip currentpicture
Hi, can ConTeXt make rounded image corners?
Both of my approaches don’t work:
\externalfigure[mill][
width=3cm,
frame=on,
corner=round,radius=1cm,
backgroundcorner=round,backgroundradius=1cm,
]
\defineoverlay[Mill][{%
\externalfigure[mill][width=\overlaywidth]
}]
\framed[background
ted (i*5pt, 0pt)
withcolor if i < PageNumber : red
else : black
fi ;
endfor ;
StopPage ;
\stopuseMPgraphic
\defineoverlay[background:ornament][\useMPgraphic{MP:ornament}]
\setupbackgrounds[page][background={background:ornament}]
\set
else : black
fi ;
endfor ;
StopPage ;
\stopuseMPgraphic
\defineoverlay[background:ornament][\useMPgraphic{MP:ornament}]
\setupbackgrounds[page][background={background:ornament}]
\setupbodyfont[ss,18pt]
\starttext
\dorecurse{10}{
\strut\par
imexpr2bp I get an error. How should I add these 2bp?
>
> (Untested)
>
> \dimexpr\measure{base}+2bp\relax
>
> or
>
> \dimexpr\measured{base}+2bp\relax
>
> should work.
>
> > 2. I have an mp graphic defined in the file "graphic.mp" which has the
> >
lax
or
\dimexpr\measured{base}+2bp\relax
should work.
> 2. I have an mp graphic defined in the file "graphic.mp" which has the
> exact same dimensions as my page. I'd like to set that graphic as a
> background. How do I do this?
(Again, untested)
\startuseMPgraphic
. I have an mp graphic defined in the file "graphic.mp
<http://graphic.mp>" which has the exact same dimensions as my page.
I'd like to set that graphic as a background. How do I do this?
\startreusableMPgraphic{backgroundgraphic}
input graphic.mp;
\stopreusableMPgraphic
at graphic as a
background. How do I do this?
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpa
othering, or do you
>>see adding the extra environment by default as an acceptable
>>practice?
>
> A similiary question came up in the org-mode mailinglist some weeks ago.
>
> (Background: Org-mode is a markup used with Emacs to make single source
> publishing poss
ceptable
> >practice?
>
> A similiary question came up in the org-mode mailinglist some weeks ago.
>
> (Background: Org-mode is a markup used with Emacs to make single source
> publishing possible)
>
> Someone who maintains an export progr
e
>practice?
A similiary question came up in the org-mode mailinglist some weeks ago.
(Background: Org-mode is a markup used with Emacs to make single source
publishing possible)
Someone who maintains an export programme for ConTeXt uses
sectionlevels.
You get the incremental subsections and
} %
\startshapetext[mytest1,mytest2]
\strut\samplefile{douglas}
\stopshapetext
\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}
{\bf Between} %
\startshapetext
]
[background=color,
backgroundcolor=transparentred,
width=0.3\textwidth,
after=\dontleavehmode]
%
\definelayer % used to display the pull quote on the page
[test]
[x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight
\setupbackgrounds
[page]
[background={backgraphics,foreground,foregraphics}]
\defineoverlay [backgraphics] [\positionoverlay{backgraphics}]
\defineoverlay [foregraphics] [\positionoverlay{foregraphics}]
\setupMPvariables
[mpos:box]
[linecolor=blue,
linewidth=\linewidth,
fillcolor
the
background, these might work with \startknockout etc.
When I try my example:
\useMPlibrary[dum]
\setupcolors[
rgb=no,cmyk=yes,
intent=overprint,% or knockout
]
\setupbodyfont[modern,ss,18pt]
\starttext
\definecollector[Test]
\setcollector [Test] {\externalfigure[none][width=8cm,height
lt;--really big chapter number
> === <-- there is a border created by a background image between these
>How to keep <--chapter title
>fish
>
> This is the article <-- the article begins
> about how to keep
> fish
> -
>
> \definefontsiz
101 - 200 of 4042 matches
Mail list logo