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
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
.
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,
ckground
>
> \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
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
ramed text
\defineframedtext
[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]
o 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,
backgrou
xtbackground
>> 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.
>>
>>
. 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 Li
} {a 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
figure[cow.pdf][width=3cm]}
\stopsetups
\starttext
\setupbackgrounds [page][setups=placeisbn,background=isbn]
\startmakeup [cover4]
\scale [width=\textwidth] {\red \Title}
\stopmakeup
\stoptext
For me (Win64, current standalone beta), compilation halts with:
lua error
er [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]
> {\externalfigure[cow.pdf][width=3cm]}
> \stopsetups
> \starttext
> \setupbackgrounds [page][setups=placeisbn,background=isbn]
> \startmakeup [cover4]
> \scale [width=\textwidth] {\red \
\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
lorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
> \defineornament
>[FrameTitle]
>[preset=lefttop]
> [
> frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
>]
>
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
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},
>]
>
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
r[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,
> fo
\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
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 -
apost).
>>
>> \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,
>> foregroundsty
e metapost).
>>
>> \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,
>> foregroundsty
[preset=lefttop]
> [
> frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
>
=\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
hic{triangledone}
> > fill lltriangle scaled 4cm withcolor darkred;
> > \stopuseMPgraphic
> >
> > \defineoverlay[triangledone][\useMPgraphic{triangledone}]
> >
> > \def\Triangledone#1%
> > {\framed
> > [background=triangledone,frame=o
][\uniqueMPgraphic{titled}]
>
> \startuseMPgraphic{triangledone}
> fill lltriangle scaled 4cm withcolor darkred;
> \stopuseMPgraphic
>
> \defineoverlay[triangledone][\useMPgraphic{triangledone}]
>
> \def\Triangledone#1%
> {\framed
> [background=triangledone,
][\uniqueMPgraphic{titled}]
>
> \startuseMPgraphic{triangledone}
> fill lltriangle scaled 4cm withcolor darkred;
> \stopuseMPgraphic
>
> \defineoverlay[triangledone][\useMPgraphic{triangledone}]
>
> \def\Triangledone#1%
> {\framed
> [background=triangledone,
;
\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;
\stopuseMPgraphic
> On 10. Aug 2017, at 14:18, Hans Hagen <pra...@wxs.nl> 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
lsemarkedpage{chapter}{CHAPTER}{}]
>
> \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
> on chapter pages?
>
> one of the many ways ...
>
> \definelayer
> [chapter]
> [width=\paperwidth,
>height=\paperheight]
>
> \defineoverlay
> [pagebackground]
> [\directsetup{pagebackground}]
>
> \setupbackgrounds
> [page]
> [background=pageb
=\paperheight]
\defineoverlay
[pagebackground]
[\directsetup{pagebackground}]
\setupbackgrounds
[page]
[background=pagebackground]
\startsetups pagebackground
\doifelsemode {chapterpage} {
\setlayer
[chapter]
[preset=middle]
{\scale[width=\textwidth
Thank you for your answer, Henning.
I am sorry, but it does not work. The problem is that I don't have the
marking text in the header, but in overlays in the margins. I tried to
replace your
\setupheadertexts[][][][]
inside the setup with
\setupbackgrounds[text][rightmargin][background=]
t have the
marking text in the header, but in overlays in the margins. I tried to
replace your
\setupheadertexts[][][][]
inside the setup with
\setupbackgrounds[text][rightmargin][background=]
but with no luck. But maybe you are right that one should use setups.
/Mikael
]
\setupbackgrounds[text][rightmargin][background=mymargin]
\starttext
\chapter{Foo}
\dorecurse{15}{\section{Bar}\input ward\par}
\stoptext
___
If your question is of interest to others as well, please add an entry
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
\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 <adit...@umich.edu>:
> 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 \backgroundim
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
ult][default][boundingbox=background]
\definefontfeature[default][default][boundingbox=frame]
\definefontfeature[default][default][boundingbox={background,empty}]
\definefontfeature[default][default][boundingbox={frame,empty}]
\definefontfeature[default][default][boundingbox={fra
.
Well, it's a tracing option so don't expect miracles and integration
with other features (like color). I'll add things like
\definefontfeature[default][default][boundingbox=yes]
\definefontfeature[default][default][boundingbox=background]
\definefontfeature[default][default][boundingbox
m]
> \definevimtyping[python][syntax=python, escape=on]
>
> \starttext
> \startpython[highlight=1]
> # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> \stoppython
> \stoptext
> ```
By default, the highlighting is done using the bars mechanism. It works
for simple cases but f
s mechanism. It works
for simple cases but fails with math mode (the spaces are not covered).
One option is to highlight using the textbackground mechanism:
\definetextbackground[texthighlight]
[
background=color,
backgroundcolor=gray,
frame=off,
]
\define[1]\texthighlig
rtpython[highlight=1]
> > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> > \stoppython
> > \stoptext
> > ```
> By default, the highlighting is done using the bars mechanism. It works
> for simple cases but fails with math mode (the spaces are not covered).
&
gt; # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> > \stoppython
> > \stoptext
> > ```
>
> By default, the highlighting is done using the bars mechanism. It works
> for simple cases but fails with math mode (the spaces are not covered).
> One option is to highlight using the textbackgr
using the textbackground mechanism:
\definetextbackground[texthighlight]
[
background=color,
backgroundcolor=gray,
frame=off,
]
\define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight}
\usemodule[vim]
\definevimtyping[python][syntax=python, escape
\definevimtyping[python][syntax=python, escape=on]
> >
> > \starttext
> > \startpython
> > # Returns \m{\sum_{i=1}^{n}i}
> > def sum_upto(\m{n \in \mathbb{N}})
> >r = range(1, \m{n} + 1)
> >return sum(r)
> > \stoppython
> > \stopt
}^{n}i}
def sum_upto(\m{n \in \mathbb{N}})
r = range(1, \m{n} + 1)
return sum(r)
\stoppython
\stoptext
```
Another option will be to use the algorithmic module:
https://bitbucket.org/wolfs/algorithmic/src/
2. It would be cool, if I can define some background color for the code.
Unfortunately
{n} + 1)
> return sum(r)
> \stoppython
> \stoptext
> ```
>
> 2. It would be cool, if I can define some background color for the code.
> Unfortunately I'm very new to context and haven't seen a direct option. I
> assume this is possible with some kind of extra environment arou
]
\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
# Returns \m{\sum_{i=1}^{n}i}
def sum_upto(\m{n \in \mathbb{N}})
r = range(1, \m{n} + 1)
return sum(r)
\stoppython
\stoptext
```
2. It would be cool, if I can define some background color for the code.
Unfortunately I'm very new
On 07/15/2017 08:07 PM, Mathias Schickel wrote:
>> Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez:
>> [...]
>> Just in case I got you wrong: is your issue that the background also
>> covers the footnotes, such as in the first and second pages from:
>
l example showing this effect of
>> textbackgrounds.
>>
>> However, I have met some issues using your solution, Aditya, with
>> \automigrateinserts. I got one text in background containing a footnote
>> that has been rendered onto the footnote. Of course this can only happen
&g
using your solution, Aditya, with
> \automigrateinserts. I got one text in background containing a footnote
> that has been rendered onto the footnote. Of course this can only happen
> if the backgrounded text appears at the bottom of a page. It is a little
> hard to get a minimal example showing this. But I t
> Am 13.07.2017 um 01:18 schrieb Aditya Mahajan <adit...@umich.edu>:
>
> On Wed, 12 Jul 2017, Mathias Schickel wrote:
>
>> Does no-one know what I can do to settle the problem?
>> [...]
>> So what can I do to get the footnotes in a background environment
On Wed, 12 Jul 2017, Mathias Schickel wrote:
Does no-one know what I can do to settle the problem?
[...]
So what can I do to get the footnotes in a background environment
displayed?
\automigrateinserts
\starttext
\startbackground
This is a test\footnote{Footnote} continue
\stopbackground
unds existed in ConTeXt.Framed texts does the trick with your sample: \setupframedtext [width=\textwidth, frame=on, rulethickness=1pt, corner=0, offset=12pt] \starttext \startframedtext If you typeset text with background, the footnote workaround does not work. \p
even know that backgrounds existed in ConTeXt.
>
> Framed texts does the trick with your sample:
>
>\setupframedtext
> [width=\textwidth,
>frame=on,
>rulethickness=1pt,
>corner=0,
>offset=12pt]
>
>\starttext
>\sta
twidth,
frame=on,
rulethickness=1pt,
corner=0,
offset=12pt]
\starttext
\startframedtext
If you typeset text with background,
the footnote workaround does not work.
\postponenotes\footnote{So what could
I do to get this footnote d
]
[headstyle=\tf,alternative=hanging]
\definelayer [vLine]
\setlayer [vLine]
[x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]}
\setupbackgrounds [text]
[background=vLine]
\starttext
\startDesc{one
t]}
> \setupbackgrounds [text]
> [background=vLine]
> \starttext
> \startDesc{one}
> Description of item one. Description of item one.% Description of item
> one.
> \stopDesc
> \startDesc{two}
> Description of item two. Description of item two.%
[vLine]
\setlayer [vLine]
[x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]}
\setupbackgrounds [text]
[background=vLine]
\starttext
\startDesc{one}
Description of item one. Description of item one.%
Description of item
. Here I provide a minimal example that shows the
problem:
\setupbackground[
width=\textwidth,
frame=on,
framecolor=black,
rulethickness=1pt,
background=color,
backgroundcolor=white,
corner=0,
offset=12pt
[level]{}
\setupbackgrounds[page][background={level}]
\startxmlsetups xml:setups
\xmlsetsetup{#1}{contacts}{xml:contacts}
\xmlsetsetup{#1}{contact}{xml:contacts:contact}
\stopxmlsetups
\xmlregistersetup{xml:setups}
\startxmlsetups xml:contacts
\xmlflush{#1}
\stopxmlsetups
\startxml
wishlist is to change the background of the certificate
depending on the type of certificate. In mkii I manage to do this as follows:
File: participants.xml
Janssen
Piet
levelA
certificates.tex:
\resetlayer[module]{}
\setlayer[module][][]{\externalfigure[\XMLflush{courselevel}[width
\definetypeface [myfont][mm] [math] [modern][default]
> \stoptypescript
>
> \setupbodyfont[myfont,rm]
> %% NOTE 3
> %\definedfont[Serif]
>
> \def\Sample{{\lefttoright Salam} {\righttoleft سلام} }
>
> \starttext
> rm:\Sample
> {\bf bf:\Sample}
> {\it it:\Sam
] [math] [modern][default]
>
> \stoptypescript
>
>
> \setupbodyfont[myfont,rm]
>
> %% NOTE 3
>
> %\definedfont[Serif]
>
>
> \def\Sample{{\lefttoright Salam} {\righttoleft سلام} }
>
>
> \starttext
>
> rm:\Sample
>
> {\bf bf:\Sample}
>
> {\it
hic{T}]
\setupbackgrounds[page][background={foreground,T}]
\startTEXpage[width=200mm,height=200mm]
\stopTEXpage
See ch. 8.2 of the metafun manual.
HTH
Thomas
___
If your question is of interest to others as
;
label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm,
50mm)) ;
\stopuseMPgraphic
\defineoverlay[T][\useMPgraphic{T}]
\setupbackgrounds[page][background={foreground,T}]
\startTEXpage[width=200mm,height=200mm]
\stopTEXpage
See ch. 8.2 of the metafun
);
draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm))
withcolor %col
transparent(1, .4, col)
;
\stopuseMPgraphic
\defineoverlay[T][\useMPgraphic{T}]
\setupbackgrounds[page][background={foreground,T}]
\startTEXpage[width=200mm,height=200mm]
\stopTEXpage
Am 2017-04-09 um 16:53 schrieb Thomas A. Schmitz <thomas.schm...@uni-bonn.de>:
> On 04/09/2017 03:57 PM, Hans Hagen wrote:
>> \starttext
>>
>> \setuplinetable[n=2,lines=25]
>> \setuplinetable[c][1][width=6cm] %
>> ,background=color,backgroundcolor=red,colo
On 4/10/2017 4:25 PM, Thomas A. Schmitz wrote:
On 09.04.2017 15:57, Hans Hagen wrote:
\starttext
\setuplinetable[n=2,lines=25]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color
On 09.04.2017 15:57, Hans Hagen wrote:
\starttext
\setuplinetable[n=2,lines=25]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[1][all][background=color
On 04/09/2017 03:57 PM, Hans Hagen wrote:
\starttext
\setuplinetable[n=2,lines=25]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[1][all][background=color
h
one (would xtables be better?)? Or low-level vboxes within hboxes etc.?
Or just \framed within \framed? What would you suggest for this sort of
material?
\starttext
\setuplinetable[n=2,lines=25]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinet
And me again.
I’m trying to get some info box on my page that
- has a defined width
- sits in the margin but protrudes into the text area
- while the body text runs around it
Additionally the caption (title) should sit on (in front of) the background
color.
Here is what I tried:
\definefloat
Thank you Aditya, i ended up using a layer for my header, but your approach
is more succint
\setupbackgrounds[page][background=mybg]
\setlayer[mybg] % name of the layer
[hoffset=2.5cm, voffset=0.2cm] % placement (from upper left corner
of the layer)
{\framed[frame=off
On Sat, 4 Mar 2017, kaddour kardio wrote:
Hi everyone, i have a quiet simple question as i'm a beginnerin ConTeXT
(with a background of 05 years with LaTeX):
Is it possible tu use tabulate environment as a header?
Yes, but there were too many typos in your code.
\setupheadertexts[\setups
901 - 1000 of 4042 matches
Mail list logo