From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34423 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: definetypeface confusion Date: Wed, 25 Apr 2007 15:36:27 +0200 Message-ID: <115224fb0704250636g7f7bbc85nd5320ef45ce41958@mail.gmail.com> References: <048E239D-5376-474A-9C5C-03998F0F85A6@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0526167313==" X-Trace: sea.gmane.org 1177508233 14930 80.91.229.12 (25 Apr 2007 13:37:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2007 13:37:13 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 25 15:37:00 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Hghfu-0002kk-BP for gctc-ntg-context-518@m.gmane.org; Wed, 25 Apr 2007 15:36:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C8BA1FAEE; Wed, 25 Apr 2007 15:36:43 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14228-01-4; Wed, 25 Apr 2007 15:36:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FE7A1FAD2; Wed, 25 Apr 2007 15:36:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA8A61FAD2 for ; Wed, 25 Apr 2007 15:36:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14228-01-3 for ; Wed, 25 Apr 2007 15:36:31 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by ronja.ntg.nl (Postfix) with ESMTP id D9E681FA9E for ; Wed, 25 Apr 2007 15:36:30 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id h29so211562wxd for ; Wed, 25 Apr 2007 06:36:28 -0700 (PDT) Original-Received: by 10.90.49.1 with SMTP id w1mr681079agw.1177508187979; Wed, 25 Apr 2007 06:36:27 -0700 (PDT) Original-Received: by 10.90.75.12 with HTTP; Wed, 25 Apr 2007 06:36:27 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34423 Archived-At: --===============0526167313== Content-Type: multipart/alternative; boundary="----=_Part_140144_19752539.1177508187931" ------=_Part_140144_19752539.1177508187931 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/4/25, Patrick Gundlach : > > Hello Thomas, > > > [...] > > > Try: > > \definetypeface [chaparral] [ss][sans] [myriad] [default] > > [encoding=texnansi] > > great! This works. Thanks (also to Wolfgang). Now another question: > I'd like to set the interlinespace for \rm only. > > My attempt: > > \definebodyfontenvironment [chaparral][14pt][interlinespace=20pt] > > changes the interlinespace for all fonts and > > \definebodyfontenvironment [Serif][14pt][interlinespace=20pt] > > does 'nothing' (no changed interlinespace at all) > > > This is my setup: > -------------------------------------------------- > \definetypeface [foo] [rm][serif] > [chaparral][default][encoding=texnansi] > \definetypeface [foo] [ss][sans] [myriad][default][encoding=texnansi] > \definetypeface [foo] [tt][mono] [modern][computer-modern] > [encoding=texnansi] > > \definebodyfontenvironment [foo][14pt][interlinespace=20pt] > \setupbodyfont[foo,14pt] > -------------------------------------------------- > > Any idea how to setup interlinespace for rm, ss and tt differently? > > My application: I have normal text (\rm) and some code samples and I'd > like to have fewer interlinespace in the code samples. Of course I > could put some code in the setup for the code samples > (\setupinterlinespace[line=xxxpt]??) and this would be the fallback > solution. Thinking of it, this might even be the best solution... > > > Patrick Hi Patrick, can you try the following setup \definebodyfontenvironment[chaparral][14pt][interlinespace=20pt] Wolfgang ------=_Part_140144_19752539.1177508187931 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2007/4/25, Patrick Gundlach <patrick@gundla.ch>:
Hello Thomas,


[...]

> Try:
> \definetypeface [chaparral]  [ss][sans]  [myriad]   [default]
> [encoding=texnansi]

great! This works. Thanks (also to Wolfgang). Now another question:
I'd like to set the interlinespace for \rm only.

My attempt:

\definebodyfontenvironment [chaparral][14pt][interlinespace=20pt]

changes the interlinespace for all fonts and

\definebodyfontenvironment [Serif][14pt][interlinespace=20pt]

does 'nothing' (no changed interlinespace at all)


This is my setup:
--------------------------------------------------
\definetypeface [foo]   [rm][serif] [chaparral][default][encoding=texnansi]
\definetypeface [foo]   [ss][sans]  [myriad][default][encoding=texnansi]
\definetypeface [foo]   [tt][mono]  [modern][computer-modern] [encoding=texnansi]

\definebodyfontenvironment [foo][14pt][interlinespace=20pt]
\setupbodyfont[foo,14pt]
--------------------------------------------------

Any idea how to setup interlinespace for rm, ss and tt differently?

My application: I have normal text (\rm) and some code samples and I'd
like to have fewer interlinespace in the code samples. Of course I
could put some code in the setup for the code samples
(\setupinterlinespace[line=xxxpt]??) and this would be the fallback
solution. Thinking of it, this might even be the best solution...


Patrick

Hi Patrick,

can you try the following setup

\definebodyfontenvironment[chaparral][14pt][interlinespace=20pt]

Wolfgang

------=_Part_140144_19752539.1177508187931-- --===============0526167313== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0526167313==--