[test][backgroundcolor=lightgray]
\starttextbackground[test]
\input ward
\input ward
\stoptextbackground
\stoptext
%%% begin textbackground-bug.tex
___
If your question is of interest to others as well, please add
=color,backgroundcolor=tcolor]
\starttext
\starttextbackground[ghost]
FOO
\stoptextbackground
\stoptext
Here the error message...
metapost terminal: (redpart boxfillcolor,greenpart
boxfillcolor,bluepart boxfillcolor)
1
! Equation cannot be performed (color=numeric).
to be read again
]
\definetextbackground[ghost]
[background=color,backgroundcolor=tcolor]
\starttext
\starttextbackground[ghost]
FOO
\stoptextbackground
\stoptext
Here the error message...
metapost terminal: (redpart boxfillcolor,greenpart
boxfillcolor,bluepart boxfillcolor)
1
! Equation cannot be performed
]
\setupcolumnset[first][2][width=.35\makeupwidth]
\definecolor[introbackground][r=.92, g=.94, b=.84]
\setupcolors[state=start]
\definetextbackground[intro]
[location=paragraph,frame=no,backgroundcolor=introbackground]
\starttext
\startcolumnset[first]
\starttextbackground[intro
I can't seem to set a background on one of my paragraphs. I'm using:
\definetextbackground[intro][backgroundcolor=gray,
location=text,color=blue]
along with
\starttextbackground[intro]
paragraph
\stopbackgroundtext
in the body of the document.
I got the impression from one
On Thu, Jun 23, 2011 at 1:35 PM, H. Hodges freelancer.hod...@gmail.com wrote:
I can't seem to set a background on one of my paragraphs. I'm using:
\definetextbackground[intro][backgroundcolor=gray,
location=text,color=blue]
along with
\starttextbackground[intro]
paragraph
On Thu, Jun 23, 2011 at 1:56 PM, H. Hodges freelancer.hod...@gmail.com wrote:
this is ok (mkiv)
\definetextbackground[intro][backgroundcolor=gray,
location=text,color=blue]
\starttext
\starttextbackground[intro]
\input knuth
\stoptextbackground
\stoptext
--
luigi
On Thu, Jun 23, 2011 at 2:06 PM, luigi scarso luigi.sca...@gmail.com wrote:
also with mkii, with \setupcolors[state=start]
\setupcolors[state=start]
\definetextbackground[intro][backgroundcolor=gray,
location=text,color=blue]
\starttext
\starttextbackground[intro]
\input knuth
]
\starttext
\starttextbackground[intro]
\input knuth
\stoptextbackground
\stoptext
Since I had to include \setupcolors, I must have mkii (I didn't know before).
Neither of your example files worked properly for me. The text was blue, but
there was no background at all. I'm going to try
]
\definetextbackground[intro][backgroundcolor=gray,
location=text,color=blue]
\starttext
\starttextbackground[intro]
\input knuth
\stoptextbackground
\stoptext
Since I had to include \setupcolors, I must have mkii (I didn't know before).
Neither of your example files worked properly for me
,color=blue]
\starttext
\starttextbackground[intro]
\input knuth
\stoptextbackground
\stoptext
--
luigi
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
-background][frame=off,location=paragraph,backgroundcolor=red]
\defineenumeration
[john]
[text=John: ,
width=3em,
number=no,
location=left,
before={\starttextbackground[john-background]},
after=\stoptextbackground]
\defineenumeration
[mary][john]
[ text=Mary
,backgroundcolor=green]
\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]
\defineenumeration
[john]
[text=John: ,
width=3em,
number=no,
location=left,
before={\starttextbackground[john-background]},
after=\stoptextbackground
][backgroundcolor=green]
\definetextbackground[mary-background][backgroundcolor=red]
\definestartstop[dialogue]
\defineparagraphs[john][before={\starttextbackground[john-background]},after={\stoptextbackground}]
\defineparagraphs[mary][before={\starttextbackground[mary-background]},after
=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]
\starttextbackground
\startitemize[packed]
\item First question
\item Second question
\item Third question
\stopitemize
\stoptextbackground
\stoptext
-end of second minimal example
important:start
\starttextbackground[zhu]
\stopsetups
\startsetups important:stop
\endgraf
\stoptextbackground
\stopsetups
\definestartstop
[important]
[before=\setups{important:start},
after=\setups{important:stop}]
\abbreviation [NPV] {\math{\text{NPV}}} {full form}
\starttext
this looks
]}]
\definetextbackground[zhu]
[location=paragraph,
background=color,backgroundcolor=orange,
leftoffset=0.5\bodyfontsize,rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize,
style=ImportantStyle,
frame=off]
\startsetups important:start
\starttextbackground[zhu]
\stopsetups
=.5\bodyfontsize,
topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize,
before={\startnarrower[left,right]},
after={\stopnarrower},
frame=off]
\startsetups important:start
\starttextbackground[zhu]
\stopsetups
\startsetups important:stop
\endgraf
hello all
I was using this to have a framed text but now it's not working anymore, even
in context live.
what i'm missing? thankyou in advance.
%
\starttext
\definetextbackground[marco][backgroundcolor=lightgray,background=color,frame=on,location=paragraph]
\starttextbackground[marco
=on,location=paragraph]
\starttextbackground[marco]
\input tufte
\stoptextbackground
\stoptext
%%%
Enable write18 or add \runMPgraphicsfalse.
Search the archive for the reason.
Aditya
___
If your question
anymore,
even in context live.
what i'm missing? thankyou in advance.
%
\starttext
\definetextbackground[marco][backgroundcolor=lightgray,background=color,frame=on,location=paragraph]
\starttextbackground[marco]
\input tufte
\stoptextbackground
\stoptext
]
\defineparagraphs [TwoThird][n=2]
\setupparagraphs[TwoThird]
[1]
[width=.66\textwidth]
\starttext
\startTwoThird
\starttextbackground
[blurb]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Blurb,
way=bysection
]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Blurb,
way=bysection,
location=hanging
=darkred]
\defineenumeration[blurb]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Blurb,
way=bysection,
location=hanging,
letter=rm
=on,
framecolor=darkred,
location=paragraph,
color=darkred]
\defineenumeration[blurb]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Blurb
={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Definition,
way=bysection,
location=hanging,
letter=rm]
\starttext
\startdefinition
\input knuth
\stopdefinition
\input knuth
\stoptext
___
If your
,
color=darkred]
\defineenumeration
[definition]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Definition,
way=bysection,
location=hanging,
letter=rm]
\starttext
\startdefinition
\input knuth
\stopdefinition
\input knuth
=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
framecolor=darkred,
location=paragraph,
color=darkred]
\defineenumeration
[definition]
[before={\starttextbackground[defbackground]},
after={\stoptextbackground},
text=Definition,
way=bysection,
location=hanging,
letter=rm
width:
\startsetups streamlayer:test:settings
\overloadtextwidth{12cm}
\stopsetups
frame:
\definetextbackground[testframe]
\startstreamlayer[test]
\starttextbackground[testframe]
...
\stoptextbackground
\stopstreamlayer
That's exactly what I need! Based on your example I kept
]
\startstreamlayer[test]
\starttextbackground[testframe]
...
\stoptextbackground
\stopstreamlayer
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
[underline]
[location=text,alternative=1,background=underline,frame=off]
\setupletterstyle
[backaddress]
[alternative=yes,
before={\starttextbackground[underline]},
after=\stoptextbackground]
Andreas
___
If your
]
\setuptyping[typing][margin=1cm,bodyfont=8.0pt,before={\starttextbackground[verbatim]},after={\stoptextbackground}]
\starttext
\starttyping
This is the first line.
This is the second line.
\stoptyping
\stoptext
test.tex%%%
I use contextminimals
=1pt]
\definetyping [C]
[option=commands]
\setuptyping [C]
[bodyfont=8pt,
margin=1em,
before=%
{\blank[big]
\setupinterlinespace[line=1.6ex]
\starttextbackground[listingbackground]},
after=%
{\stoptextbackground
\blank[big]}]
\protect
\starttext
\input tufte
=off,
location=paragraph,
color=white]
\definetextbackground[subintro]
[backgroundcolor=texcolorfour,
backgroundoffset=0pt,
offset=0pt,
frame=off,
location=text,
color=blue]
\starttext
\starttextbackground[intro]
A rather common way to draw attention to a passage, is to add
a background
,
location=paragraph,
color=white]
\definetextbackground[subintro]
[backgroundcolor=texcolorfour,
backgroundoffset=0pt,
offset=0pt,
frame=off,
location=text,
color=blue]
\starttext
\starttextbackground[intro]
A rather common way to draw attention to a passage, is to add
Am 07.04.2009 um 04:18 schrieb Yanrui Li:
\definestartstop
[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
You don't need this, \definetextbackground creates start/stopunderline
itself.
Wolfgang
:= currentpicture shifted (0,-1.2*StrutDepth) ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\definetextbackground[underline]
[location=paragraph,alternative=1,background=,frame=off]
\definestartstop
[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground
:= currentpicture shifted (0,-1.2*StrutDepth) ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\definetextbackground[underline]
[location=paragraph,alternative=1,background=,frame=off]
\definestartstop
[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground
,
leftoffset=0cm,rightoffset=0cm,
backgroundoffset=.5cm,topoffset=-.3cm, % but not here
frame=on]
\starttext
\startbackground
\input tufte
\stopbackground
\vfill
\starttextbackground
\input tufte
\stoptextbackground
\stoptext
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member
, frame=off,
offset=overlay, backgroundoffset=2pt]
\def\Bla{\starttextbackground[TG]FF FF XX XX XX XX XX XX SS CS CS%
\stoptextbackground}
\dorecurse{20}{bla \Bla\ bla}
\stoptext
Could anybody help please?
TIA for any hints!
Cheer, Peter
--
http://pmrb.free.fr/contact
20.01.2009 um 23:51 schrieb Alan BRASLAU:
I, too, do not understand the
\definetextbackground
\starttextbackground
\stoptextbackground
commands, even though I tried looking at details.pdf (and core-
pgr.tex).
My particular problem is rather classic, that of illustrating
examples, set off
}}}
\definetextbackground[underline][%
location=text,
alternative=1,
background=,
frame=off]
\def\UnderlineC{%
\groupedcommand
{\starttextbackground[underline]}
{\stoptextbackground}}
\starttext
Thus, I came to \UnderlineA{the conclusion} that the designer of a new
I, too, do not understand the
\definetextbackground
\starttextbackground
\stoptextbackground
commands, even though I tried looking at details.pdf (and core-pgr.tex).
My particular problem is rather classic, that of illustrating examples, set off
from the main text.
I
Am 20.01.2009 um 23:51 schrieb Alan BRASLAU:
I, too, do not understand the
\definetextbackground
\starttextbackground
\stoptextbackground
commands, even though I tried looking at details.pdf (and core-
pgr.tex).
My particular problem is rather classic, that of illustrating
examples, set off
black
withpen pencircle scaled \MPvar{linewidth};
endfor;
\stopuseMPgraphic
\definetextbackground[ExampleBackground]
[mp=mpos:par:myexample,location=paragraph,leftoffset=1em,rightoffset=1em,rulethickness=1pt]
\starttext
\input knuth \endgraf
\starttextbackground[ExampleBackground
=paragraph,leftoffset=1em,rightoffset=1em,rulethickness=1pt]
\starttext
\input knuth \endgraf
\starttextbackground[ExampleBackground]
\dorecurse{13}{\input knuth \endgraf}
\stoptextbackground
\input knuth \endgraf
\stoptext
But now I need to make this box have rounded corners, and I am very confused
=paragraph,leftoffset=1em,rightoffset=1em,rulethickness=1pt]
\starttext
\input knuth \endgraf
\starttextbackground[ExampleBackground]
\dorecurse{13}{\input knuth \endgraf}
\stoptextbackground
\input knuth \endgraf
\stoptext
But now I need to make this box have rounded corners, and I am very
confused
]
[location=text,alternative=1,background=,frame=off]
\definestartstop
[underline]
[before={\starttextbackground[Sub]},
after=\stoptextbackground]
%%
\def\startalign{\startformula
\let\\\cr
\null\vcenter\bgroup
\openup\jot {\mathsurround=0pt}%
\everycr
{\starttextbackground[TG]FF FF XX XX XX XX XX XX SS CS CS%
\stoptextbackground}
\dorecurse{20}{bla \Bla\ bla}
\stoptext
Could anybody help please?
TIA for any hints!
Cheer, Peter
--
http://pmrb.free.fr/contact
multipars[i],ulcorner multipars[i]] --
.2[urcorner multipars[i],lrcorner multipars[i]] ;
endfor ;
\stopuseMPgraphic
\definetextbackground[cancel][location=text,mp=mpos:par:cancel]
\def\startcancel{\starttextbackground[cancel]}
\def\stopcancel {\stoptextbackground}
\def\cancel
]] --
.2[urcorner multipars[i],lrcorner multipars[i]] ;
endfor ;
\stopuseMPgraphic
\definetextbackground[cancel][location=text,mp=mpos:par:cancel]
\def\startcancel{\starttextbackground[cancel]}
\def\stopcancel {\stoptextbackground}
\def\cancel {\groupedcommand\startcancel\stopcancel
this comes?
\setupcolors[state=start]
\definetextbackground[test][
backgroundcolor=yellow,
frame=off,
leftoffset=5mm,
location=paragraph,
color=black]
\definecolumnset[example][n=2,distance=5mm]
\starttext
\startcolumnset[example]
\starttextbackground[test
,
location=paragraph,
frame=on,
frameoffset=5mm]
\starttext
bla
\starttextbackground[strong]
zack
\stoptextbackground
blub
\stoptext
Wolfgang
___
If your question is of interest
:
\setuptyping[typing][margin=0.5cm,bodyfont=8.0pt,
before={\starttextbackground[verbatim]},
after={\stoptextbackground}]
This works only partly. For example, when using long
verbatim texts that spans over more than one page,
the background color disappears on the last page.
Is there any other easy way
]
\setupbodyfont[palatino,10pt]
\definetextbackground[verbatim]
[background=color,
backgroundcolor=yellow,
backgroundoffset=0cm,
offset=0.5cm,
frame=on,
framecolor=black,
location=paragraph,
color=black]
% Setup verbatim
\setuptyping[typing][margin=1cm,bodyfont=8.0pt,
before={\starttextbackground[verbatim
\starttextbackground[strong]
zack
\stoptextbackground
blub
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
=8.0pt,
before={\starttextbackground[verbatim]},
after={\stoptextbackground}]
This works only partly. For example, when using long
verbatim texts that spans over more than one page,
the background color disappears on the last page.
Is there any other easy way of controlling the background
color
,
frame=on,
%add
background=color,
location=text,
color=blue]
\starttext
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
,
color=blue]
\starttext
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
%-
Thanks for the prompt reply!
I have tried to add background=color
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
%-
The background of the rendered text is always white, independent of the
backgroundcolor parameter. The font
,%--- Add this
frame=on,
location=text,
color=blue]
\starttext
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
%-
Add
,
frame=on,
%add
background=color,
location=text,
color=blue]
\starttext
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
\def\underline{\groupedcommand{\starttextbackground[underline]}{\stoptextbackground}}
\setuphead[section][textcommand=\underline]
\starttext
\section{Section}
\stoptext
, it is also the better solution
in grid mode.
\definetextbackground
[cover]
[frame=on,
location=paragraph,
background=,
leftoffset=.25ex,
rightoffset=.25ex,
topoffset=.25ex,
bottomoffset=.25ex]
\starttext
\starttextbackground[cover]
\getbuffer[text]
\stoptextbackground
Commenting out the \startframedtext,\stopframedtext typesets two
columns; \startsimplecolumns shows the same ill behaviour.
ConTeXt ver: 2008.05.13 14:42 MKII fmt: 2008.5.19 int: english/
english
Is there a cure?
http://www.ntg.nl/pipermail/ntg-context/2007/025622.html
or
\starttextbackground
the same ill behaviour.
ConTeXt ver: 2008.05.13 14:42 MKII fmt: 2008.5.19 int: english/
english
Is there a cure?
http://www.ntg.nl/pipermail/ntg-context/2007/025622.html
or
\starttextbackground/\stoptextbackground
Hans van der Meer
Wolfgang
][
before={\starttextbackground[highlight]},
after=\stoptextbackground]
\starttext
\subject{Problem 1}
\startcolumns
It was a·
\starthighlight dark·
and stormy night; the rain fell in torrents --- except at
occasional intervals, when it was checked by a·
violent\stoptextbackground~
gust of wind
\starttable[text|name] \stoptable
\starttables[text|name] \stoptables
\starttabulate[text][settings] \stoptabulate
# \startTEXpage \stopTEXpage
# \starttext \stoptext
# \starttextbackground \stoptextbackground
# \starttextdata \stoptextdata
\starttextrule[top|bottom]{text} \stoptextrule
\starttyping
=start]
\startuseMPgraphic{tableback}
pickup pencircle scaled 1pt;
path p;
p = (multipars[1]);
draw p withcolor red;
\stopuseMPgraphic
\definetextbackground
[mytab]
[location=paragraph,
width=local,
mp=tableback]
\starttext
%\topskip=0pt
\setuptabulate
[before={\starttextbackground[mytab
\definetextbackground
[mytab]
[location=paragraph,
width=local,
mp=tableback]
\starttext
%\topskip=0pt
\setuptabulate
[before={\starttextbackground[mytab]},
after=\stoptextbackground]
\starttabulatehead
\HL
\NC Row 1 \NC Row 2 \NC Row 3 \NC\NR
\HL
[TEST][option=JV,
before={\bgroup\setupinterlinespace[line=3ex]%
\testpage[1]\starttextbackground[code]},
after={\stoptextbackground\egroup}]
\setupbodyfont[14pt]
\starttext
Testing textbackground\crlf
\startTEST
first line
second line
third line
fourth line
fifth
on how you define \startunderline. The usual way is to
\definetextbackground[underline]
[location=text,alternative=1,background=,frame=off]
\definestartstop [underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
which does not introduce any interaction (interaction
,alternative=1,background=,frame=off]
\definestartstop [underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
which does not introduce any interaction (interaction means that
something should happen when you click the screen). It does have a
blue
underline, because
=on,
framecolor=darkblue,
location=paragraph,
color=darkblue]
\defineenumeration
[theorem]
[before={\starttextbackground[thmbackground]},
after={\stoptextbackground},
text=Theorem,
way=bysection,
location=hanging,
letter=rm]
\setuppapersize[letter][letter]
\starttext
\startcolumns[n=2
,
%corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkblue]
\defineenumeration
[theorem]
[before={\starttextbackground[thmbackground]},
after={\stoptextbackground},
text=Theorem
]
[location=text,alternative=1,background="">
\definestartstop[ul]
[before={\starttextbackground[ul]
},
after={\stoptextbackground\
}]
Below is a sample .tex file that
I have been playing with: -
\usemodule[contml]
\autoXMLnamespace [context]
% Attempts at defining a
to it by \in{}[] and \at{}[].
123 work great, however, if the source codes are long enough, and doesn't fit into one page, then the bottom of it will not display.
After searching this mailing list, I found some methods: \bTABLE, \starttextbackground ..etc... But none of them can achieve
=start]
\definetextbackground[foo]
[backgroundcolor=lightgray,
frame=off,
level=-1, % -3,-2,-1,+1,+2
]
\startuniqueMPgraphic{bar}
fill OverlayBox withcolor red ;
\stopuniqueMPgraphic
\defineoverlay[bar][\uniqueMPgraphic{bar}]
\starttext
An example of a \starttextbackground[foo
\MyDisplayCorrection {\vskip-\lineheight}
\margintext{some text in margin}
\starttextbackground
\MyDisplayCorrection
\placeformula \startformula a+b=c \stopformula
\stoptextbackground
\stoptext
use a Correction macro that can be nilled (since some day we may have more
control over math
=,
after=,
location=paragraph]
\setuphead[section]
[style={\ss\bf},
before={\starttextbackground[section]~}, %NOTE
after={\stoptextbackground}]
NOTE: I am unhappy
\input tufte
\starttextbackground[grayback]
\input tufte
\stoptextbackground
\stoptext
[2]:
http://archive.contextgarden.net/message/20060524.162941.8a054666.en.html
The test case:
\chardef\kindofpagetextareas\plusone
\setupcolors[state=start]
\setupwhitespace[medium]
% needed to activate
On Mon, 19 Jun 2006 18:45:32 +0800, Helin Gai [EMAIL PROTECTED] wrote:
Thanks Hans for the prompt reply.
I tried the following code:
\definetextbackground[A]
[frame=off,location=paragraph,backgroundcolor=gray]
\setuptyping[before={\starttextbackground[A]},after=
{\stoptextbackground
20, 2006, at 2:51 AM, nico wrote:
On Mon, 19 Jun 2006 18:45:32 +0800, Helin Gai [EMAIL PROTECTED] wrote:
Thanks Hans for the prompt reply.
I tried the following code:
\definetextbackground[A]
[frame=off,location=paragraph,backgroundcolor=gray]
\setuptyping[before={\starttextbackground[A]},after
tufte
\input tufte
\input tufte
\input tufte
\starttextbackground[grayback]
\input tufte
\stoptextbackground
\stoptext
Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
by the background, right?}.
\input tufte
\input tufte
\input tufte
\input tufte
\starttextbackground[grayback]
\input tufte
\stoptextbackground
\placefigure[top]{joke}{\framed[width=5cm]{Hi}}
\stoptext
Regards,
BG
___
ntg-context mailing list
ntg-context
by the background, right?}.
\input tufte
\input tufte
\input tufte
\input tufte
\starttextbackground[grayback]
\input tufte
\stoptextbackground
\stoptext
not yet interfaced but public anyway
\chardef\kindofpagetextareas\plusone
On Mon, 22 May 2006, nico wrote:
The problem often occurs just after a heading starting at the top of a
page (section, enumeration title). Here is an example showing the
behaviour:
I had a similar problem in the past, and Hans suggested to use
starttextbackground instead of background
in the past, and Hans suggested to use
starttextbackground instead of background. background is supposed to be
deprecated.
Deprecated? Really?
Try the following code and see if you get what you want.
setuplayout[middle]
\setupcolors[state=start]
\definecolor[ScreenGray][s=0.95
:
I had a similar problem in the past, and Hans suggested to use
starttextbackground instead of background. background is supposed to be
deprecated.
Deprecated? Really?
Try the following code and see if you get what you want.
setuplayout[middle]
\setupcolors[state=start
be avoided in floats i'll use
the framed typing definition for floats (that cannot split anyway).
i adapted the backgrounds to recognize floats, i'll sen dyou the file
BTW, is there other known unsafe combinations to avoid?
well, \starttextbackground is the more modern way to go (only one level
combinations to avoid?
well, \starttextbackground is the more modern way to go (only one level
needed since one can hook in mp code)
I tried this too, but it became a real nightmare. It compiles ok, but is
so slow: there were hundred of MP files, and the result was ugly (strange
offsets
\starttextbackground[test]
\dorecurse{15}{\input knuth \endgraf}
\stoptextbackground
\stoptext
Is there some parameter to adjust the offset before and after a
pagebreak. (I want them to be same as bottomoffset and topoffset.)
Or should I take care of this in mpos:par:columnset with something
like
bottomenlarged 1cm;
fill p withcolor 0.9white ;
draw p withcolor \MPvar{linecolor}
withpen pencircle scaled \MPvar{linewidth};
endfor;
\stopuseMPgraphic
\starttext
\input knuth \endgraf
\hairline \par
\starttextbackground[test]
\dorecurse{13}{\input knuth \endgraf
Hi,
I have encountered a really strange bug in textbackground.
Occasionally, textbackground colors the whole page instead of just the
text between \starttextbackground and \stoptextbackground. This
happens only when I am using module mag-01 and have
\setuptyping[style=\ttx
Aditya Mahajan wrote:
Hi,
I have encountered a really strange bug in textbackground.
Occasionally, textbackground colors the whole page instead of just the
text between \starttextbackground and \stoptextbackground. This
happens only when I am using module mag-01 and have
\setuptyping
rightboundary multipars[i] withcolor .5red ;
fi ;
endfor ;
\stopuseMPgraphic
\setupdelimitedtext
[quotation]
[leftmargin=.5em,
rightmargin=.5em,
before={\starttextbackground[myquotation]},
after=\stoptextbackground]
\starttext
\input tufte
\startquotation
\dorecurse{10}{\input
]
% \expanded{\definemeasure[SavedLeftSkip][\the\leftskip]}
\Poem{#1}
\starttextbackground[poem]
\startlines}
\def\StopPoem
{\stoplines
\stoptextbackground
\stopnarrower}
\showframe
\StartPoem{xxx}
line 1
line 2
\StopPoem
\setuptextbackground
[poem]
[mp=mpos:par:poem
Hans van der Meer wrote:
It seems not possible to typeset in columns (\startcolumns[n=3]...
\stopcolumns) within a \startframedtext...\stopframedtext. It all
comes out in one long column.
How can I accomplish this?
For this, you have to use \starttextbackground (or \startbackground
I have been experimenting with columnsets too.
There I encounter the problem that I cannot set the distance between
the columns at will.
Neither lt columnsets force themselves into the frame.
\starttextbackground doesn't help here, at most I get frames around
the separate columns
101 - 200 of 224 matches
Mail list logo