Changes

Jump to navigation Jump to search
819 bytes added ,  22:38, 12 December 2020
m
no edit summary
< [[Basics#Basics_of_ConTeXt_text_formatting|Text formatting]] |
 
= How to achieve specific results =
\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>
= See also =
* [[:Category:Command/Frames]]
 
[[Category:Basics]]

Navigation menu