Changes

Jump to navigation Jump to search
1,278 bytes added ,  22:38, 12 December 2020
m
no edit summary
< [[Visuals]] |
 
= How to achieve specific results =
== Preventing hyphenation ==
One can prevent hyphenation inside a frame by passing {{code|1=nothypenated}} option to {{code|1=align}}. It is also a good idea to add {{code|1=verytolerant}} and {{code|1=strectchstretch}} options.
<context source="yes">
|}
See the [[ColorsColor]] article for more information on available colors and color usage.
== Shaded background for part of a displayed equation ==
\Picture{sample/cow.pdf}{All your base are belong to us}{SampleRef}
\stoptext
</context>
 
 
== Colorored horizontal stripe of full paper width ==
 
<context mode="mkiv" source="yes">
\definepapersize[sheet][width=120mm,height=60mm]
\setuppapersize[sheet]
\setuppagenumbering[location=]
\setuplayout
[width=110mm,
backspace=5mm,
topspace=5mm,
header=5mm,
headerdistance=5mm,
footer=5mm,
footerdistance=5mm]
 
\showframe
 
\setupbackgrounds[page] [background=color, backgroundcolor=lightgray]
 
\startuniqueMPgraphic{whatever}
fill OverlayBox
leftenlarged BackSpace rightenlarged CutSpace
withcolor OverlayColor;
setbounds currentpicture to OverlayBox enlarged max(BackSpace,CutSpace);
\stopuniqueMPgraphic
 
\defineoverlay[whatever][\uniqueMPgraphic{whatever}]
\starttext
 
Here some text first.
 
\framed[background=whatever,backgroundcolor=green,frame=off,width=\textwidth]{test}
 
After, again some text.
 
\stoptext
 
</context>
hoffset=\zeropoint]
</texcode>
 
= Location parameter =
 
<context source="yes">
\ruledhbox
{A
\framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging}
\framed[width=2cm,align=middle,location=depth] {location\\equals\\depth}
\framed[width=2cm,align=middle,location=height] {location\\equals\\height}
B}
\vskip2cm
\ruledhbox
{A
\framed[width=2cm,align=middle,location=low] {location\\equals\\low}
\framed[width=2cm,align=middle,location=line] {location\\equals\\line}
\framed[width=2cm,align=middle,location=high] {location\\equals\\high}
B}
\vskip2cm
\ruledhbox
{A
\framed[width=2cm,align=middle,location=top] {location\\equals\\top}
\framed[width=2cm,align=middle,location=bottom] {location\\equals\\bottom}
\framed[width=2cm,align=middle,location=lohi] {location\\equals\\lohi}
\framed[width=2cm,align=middle,location=middle] {location\\equals\\middle}
B}
</context>
= Similar topics =
* [[:Category:Command/Frames]]
[[Category:Command/FramesBasics]]context source='yes'>\setuppapersize[A5]\setuppapersize[A7,landscape][A7,landscape]\setupbodyfont[8pt,ss]\starttext\framed[width=broad]{}\startnarrower[left]\framed[width=broad]{}\dontleavehmode\framed[width=broad]{}\dontleavehmode\framed[width=local]{}\stopnarrower\blank\hsize.5\hsize\framed[width=broad]{}\startnarrower[left]\framed[width=broad]{}\dontleavehmode\framed[width=broad]{}\dontleavehmode\framed[width=local]{}\stopnarrower\stoptext

Navigation menu