From: Maarten Sneep <maarten.sneep@xs4all.nl>
Subject: Custom definition of a bodyfont (and using it)
Date: Wed, 23 Apr 2003 14:42:16 +0200 [thread overview]
Message-ID: <0410D6C8-7589-11D7-8364-000393780830@xs4all.nl> (raw)
Hi,
I'm trying to make my own headings, and it doesn't really come out the
way I want. I'll describe what I'm trying to do, and maybe someone has
something that can help me.
I'd like to have the chapter number really big, in a (light) colour in
the background. The title should go over the number. If
possible/needed, the number may end up (partially) under the text. I
think I can get the positioning correct (in metapost/metafun if I have
to), but defining the (huge) font in ConTeXt proves a hurdle I cannot
tackle.
My attempts (copied rather directly from the manual) are below.
Thanks for your time,
Maarten
%% This generated no error, but not a really large font either
\definebodyfont[9pt][rm][tfe=LucidaBright at 36pt]
\definebodyfont[9pt][ss][fte=LucidaSans at 36pt]
%% after the following definition, TeX claims it cannot find
%% \MyChapNumLetter
%\definebodyfont[MyChapNumLetter][LucidaSans-DemiItalic sa 4]
%% this example also comes from the manual
\def\MyChapterHeadingCommand#1#2{\hbox to \hsize\bgroup%
\setupframed[offset=.5em,frame=off]%
\tbox{\framed{{\color[MyChapNumColor]{\fte\ss\bf #1}}}}%
\tbox{\framed[width=8cm,align=right]{{\tfa\ss\bf #2}}}%
\egroup}
%% the obligatory version info:
%% ConTeXt ver: 2003.3.11 fmt: 2003.3.26 int: english mes: english
%% (on texlive 7)
next reply other threads:[~2003-04-23 12:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 12:42 Maarten Sneep [this message]
2003-04-23 17:39 ` Maarten Sneep
2003-04-24 7:38 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0410D6C8-7589-11D7-8364-000393780830@xs4all.nl \
--to=maarten.sneep@xs4all.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).