From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17914 Path: main.gmane.org!not-for-mail From: Thomas A.Schmitz Newsgroups: gmane.comp.tex.context Subject: Re: Greek font in Footnote problem Date: Sat, 22 Jan 2005 09:18:06 +0100 Message-ID: <24B0B280-6C4E-11D9-92C7-000A95B9ADE2@uni-bonn.de> References: <741818970.20050117165440@iol.it> <1156143079.20050119130558@iol.it> <41F1582C.7020606@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106382085 3791 80.91.229.6 (22 Jan 2005 08:21:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jan 2005 08:21:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 22 09:21:19 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CsGWF-0005tq-00 for ; Sat, 22 Jan 2005 09:21:19 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F9041279E; Sat, 22 Jan 2005 09:21:18 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16579-02; Sat, 22 Jan 2005 09:21:16 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E3CD1277E; Sat, 22 Jan 2005 09:21:16 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1AB71277E for ; Sat, 22 Jan 2005 09:21:14 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16347-07-2 for ; Sat, 22 Jan 2005 09:21:13 +0100 (CET) Original-Received: from mailout11.sul.t-online.com (unknown [194.25.134.85]) by ronja.ntg.nl (Postfix) with ESMTP id 8121C1276D for ; Sat, 22 Jan 2005 09:21:13 +0100 (CET) Original-Received: from fwd09.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1CsGW9-0005r7-01; Sat, 22 Jan 2005 09:21:13 +0100 Original-Received: from [192.168.0.2] (bLtXZoZTweFjT5fMtyWzu+QOFlcpz31mkcxna5JUASYq6UVZPI390s@[62.158.132.87]) by fmrl09.sul.t-online.com with esmtp id 1CsGW2-1WJm400; Sat, 22 Jan 2005 09:21:06 +0100 In-Reply-To: <41F1582C.7020606@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) X-ID: bLtXZoZTweFjT5fMtyWzu+QOFlcpz31mkcxna5JUASYq6UVZPI390s@t-dialin.net X-TOI-MSGID: 5ba9a199-0e44-4f47-b63a-f9e4ae63f66a X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17914 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17914 First: thanks to Giuseppe and Hans for their suggestions! As soon as I have a bit more time, I will look into the \scantokens command and try and correct my Greek modules. However, I had a couple of minutes today, and it looks like the solution to Alan's problem is much simpler. In your sample, Alan, if you replace \setupbodyfont[cmr, 10.5pt] with \setupbodyfont[cmr, 10pt] %or 11 pt or 12 pt the file compiles cleanly, with Greek in the footnotes where it should appear. So, for the time being, it doesn't seem to be a problem with the catcode changes. If I'm not mistaken, this would have given weird characters, but the problem was that the font change was not done at all. So: I had already mailed off-list to Alan that I thought the problem was with defining the new bodyfont. And I think this is right. In my definition for the Greek fonts, I have this line: \definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,10.5pt,11pt,12pt,14pt,14.4p t,16pt,18pt,20pt,22pt][rm][Gf=greeoxon sa 1.08] So I would assume the following: 1. When the body font of the document is 10, 11 or 12 pt, the footnote body font is in one of the predefined sizes, i.e. 8, 9, 10, whatever. 2. When the body font is a weird number like 10.5, ConTeXt (or is it eTeX itself?) recalculates the size for the footnote, which will be an even weirder number. Accordingly, the definitions in my file won't work anymore. Thusly: I looked at the source to find out by which factor the font in the footnotes is scaled, but couldn't find out. So my questions: how is this font size calculated? Or is it possible to give a "blanket" declaration for font sizes in my file (there is something like <-> in LaTeX which means "all sizes," if memory serves right). Thanks for the help! Best Thomas On Jan 21, 2005, at 8:29 PM, h h extern wrote: > Giuseppe Bilotta wrote: >> Wednesday, January 19, 2005 Thomas A.Schmitz wrote: >>> On Jan 17, 2005, at 4:54 PM, Giuseppe Bilotta wrote: >>>> enablegreek relies on catcode changes, so it cannot work inside >>>> commands. It should be redefined to make use of e-TeX's >>>> \scantoken feature so that it can re-parse its input. >>> Giuseppe, >>> I'll be too bust the next three weeks to look into this, but would >>> love >>> to correct my quick and dirty hack. Can you give me a hint where I >>> can >>> learn more about \scantoken and how I can implement it for my Greek >>> stuff? >> Ehehehe. The reason why I was so generic in my answer is >> precisely the same :) >> Something like >> \def\localgreek#1{\scantokens{\Gf\enablegreek#1}} >> could work. > > more precisely: > > \starttext > > \def\rescan#1{\scantokens{#1}} [\rescan{oeps}] > > \def\rescan#1{\scantokens{#1\ignorespaces}} [\rescan{oeps}] > > \stoptext > > and therefore: > > \def\localgreek#1{\rescan{\Gf\enablegreek#1}} > > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >