From: Thomas A.Schmitz <thomas.schmitz@uni-bonn.de>
Subject: Re: finishing a module
Date: Sun, 23 Jan 2005 14:33:32 +0100 [thread overview]
Message-ID: <6018DAD8-6D43-11D9-B338-000A95B9ADE2@uni-bonn.de> (raw)
In-Reply-To: <41F36F54.1040000@elvenkind.com>
Taco, thanks so much! I really appreciate the wonderful ConTeXt
community without whose help I would never have been able to even get
started.
On Jan 23, 2005, at 10:33 AM, Taco Hoekwater wrote:
> This, however, will not work:
> \definefont[Gf][\MyFont sa \MyScale]
> Both work for me. Unless I misunderstood what it is supposed to do.
>
\Gf is later used in the macros to define the Greek font. When defined
with the \definebodyfont alternative, this works; when I try the
\definefont, I get this error message:
! Undefined control sequence.
<argument> ...else \getvalue {MyFont} sa \MyScale
\@@@instring
\expanded ...\long \xdef \@@expanded {\noexpand #1
}\@@expanded
\p!doifinstringelse ...{\pp!doifinstringelse #2#1}
@@\war
\dodoifinstringelse ...tringelse \@@@instring {#1}
\@EA
\firstoftwoarguments ...
\dodefinefont ...2][#3]->\doifinstringelse { }{#2}
{\ifthirdargument
\unexpa...
<to be read again>
\par
l.19
?
It looks like \MyFont doesn't get expanded when the \definefont command
is read, but this is an area of TeX that I find especially opaque...
> Rude, but effective:
>
> \define\koppa {{\Gf \char37}}
>
Yes, this works and is just what I want. Great!
> Greetings, Taco
>
> ----------
> \def\setupgreek#1[#2]{%
> \getparameters[GG][Scale=,Font=,#2]
> \edef\MyScale{\GGScale}%
> \processaction[\GGFont]
> [ SomeFont1=>\def\MyFont{cmbx10},
> SomeFont2=>\def\MyFont{cmtt10}]%
> }
> \setupgreek[Scale=5,Font=SomeFont1]
>
> \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4
> pt,16pt,18pt,20pt,22pt][rm][rm=\getvalue{MyFont} sa \MyScale]
>
> \definefont[Gf][\getvalue{MyFont} sa \MyScale]
>
> \starttext
> Beo {\switchtobodyfont[20pt]Beolarge} Beo {\Gf Beolarge}
> \stoptext
>
Thanks a lot, Taco!
Best
Thomas
next prev parent reply other threads:[~2005-01-23 13:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-22 20:41 Thomas A.Schmitz
2005-01-23 9:33 ` Taco Hoekwater
2005-01-23 13:33 ` Thomas A.Schmitz [this message]
2005-01-23 14:06 ` Taco Hoekwater
2005-01-23 14:42 ` Thomas A.Schmitz
2005-01-23 15:22 ` Taco Hoekwater
2005-01-23 21:24 ` h h extern
2005-01-24 14:06 ` Thomas A.Schmitz
2005-01-24 17:50 ` Hans Hagen
2005-01-24 17:50 ` Hans Hagen
2005-01-24 18:20 ` Thomas A.Schmitz
2005-01-24 18:03 ` Hans Hagen
2005-01-24 18:47 ` Thomas A.Schmitz
2005-01-25 14:56 ` h h extern
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=6018DAD8-6D43-11D9-B338-000A95B9ADE2@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--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).