ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* finishing a module
@ 2005-01-22 20:41 Thomas A.Schmitz
  2005-01-23  9:33 ` Taco Hoekwater
  2005-01-23 21:24 ` h h extern
  0 siblings, 2 replies; 14+ messages in thread
From: Thomas A.Schmitz @ 2005-01-22 20:41 UTC (permalink / raw)


I spent some (too much) time today improving my Greek module. For the  
time being, two questions remain; I'm confident that they're not too  
difficult for the experts; any help would be appreciated.

I've succesfully defined my fonts and scale like so:

\def\setupgreek#1[#2]{%
   \getparameters[GG][Scale=,Font=,#2]
\edef\MyScale{\GGScale}%
\processaction[\GGFont]
    [  SomeFont1=>\def\MyFont{somefont },
       SomeFont2=>\def\MyFont{someotherfont }]%
}

\protect

(The space after "somefont" looks ugly, but I haven't figured out how  
to get rid of it; TeX will always complain if I delete it.)

1. After this definition, this will work:
\definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4p 
t,16pt,18pt,20pt,22pt][rm][Gf=\MyFont sa \MyScale]

This, however, will not work:
\definefont[Gf][\MyFont sa \MyScale]

and I don't see why. Can anybody explain? I see that the \definefont...  
takes care of the annoying problem with font sizes, so I would prefer  
that way.

2. In my module, I define some special symbols:
\define\koppa{\getglyph{\MyFont}{\char37}}

Is there a way to give the same scaling factor here as in the  
definition of \Gf? I tried
\define\koppa{\getglyph{\MyFont scaled XXXX}{\char37}}
as a first attempt which kind of works but gives me the letters "at" in  
the pdf in front of the symbol.

Best

Thomas

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-01-25 14:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-22 20:41 finishing a module Thomas A.Schmitz
2005-01-23  9:33 ` Taco Hoekwater
2005-01-23 13:33   ` Thomas A.Schmitz
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

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).