Open main menu

Changes

864 bytes removed ,  07:33, 1 December 2022
m
Hints about old code
'''Beware: This page is very old, code might not work any more.'''
 
On this page I will describe the lessons learned while setting a CD booklet.
But as always with ConTeXt: Hans to the rescue! He has just some time before my trials made a nice macro available in cont-new.tex with the adequate name \starthangaround. With this macro it is quite easy to float the text around the graphic. You only has to change the buffer-code:
<texcode>
% MkII code! Doesn’t work any more.
\startbuffer[text]
\starthangaround{\framed[height=1cm]{graphic}}%
== Use Delicious OTF font with luatex / mkiv ==
<texcode>% Typescript Get the typescript for delicious% the [http://www.josbuivenga.demon.nl/delicious.html \starttypescript [sans] [deliciousDelicious fonts] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Exljbris typescript#Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps]\stoptypescript
\starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [fileThen type:Delicious-Roman][features=default] \definefontsynonym [Delicious-Italic] [file:Delicious-Italic][features=default] \definefontsynonym [Delicious-Bold] [file:Delicious-Bold][features=default] \definefontsynonym [Delicious-BoldItalic][file:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [file:Delicious-SmallCaps][features=default] \definefontsynonym [Delicious-Heavy] [file:Delicious-Heavy][features=default]\stoptypescript \starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default]\stoptypescript
<texcode>
\usetypescript[delicious]
\setupbodyfont[delicious,ss,10pt]
 
</texcode>
</texcode>
(You can discard the background definition then) But this places the layer relative to the textarea and not as intended to the pagearea.
 
[[Category:Sample documents]]