From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52776 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: The simpleslides can not output '--' Date: Tue, 8 Sep 2009 10:17:31 -0400 (EDT) Message-ID: References: <9dc88b850909072238u92a904awc923fe084dd1d4c8@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252419502 21874 80.91.229.12 (8 Sep 2009 14:18:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2009 14:18:22 +0000 (UTC) To: muzili@gmail.com, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 08 16:18:15 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ml1WL-0006KF-Ba for gctc-ntg-context-518@m.gmane.org; Tue, 08 Sep 2009 16:18:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A694AC9AC7; Tue, 8 Sep 2009 16:18:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ALdgB1BEvRnN; Tue, 8 Sep 2009 16:17:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1084BC9A63; Tue, 8 Sep 2009 16:17:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EF81BC9A63 for ; Tue, 8 Sep 2009 16:17:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w+Xd98-x6EWO for ; Tue, 8 Sep 2009 16:17:47 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by balder.ntg.nl (Postfix) with ESMTP id 58E24C9A47 for ; Tue, 8 Sep 2009 16:17:47 +0200 (CEST) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By hellskitchen.mr.itd.umich.edu ID 4AA66789.5A794.12620 ; Authuser adityam; 8 Sep 2009 10:17:45 EDT In-Reply-To: <9dc88b850909072238u92a904awc923fe084dd1d4c8@mail.gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:52776 Archived-At: On Tue, 8 Sep 2009, joshua lee wrote: > Hi All, > Attached is the simple test file for the simpleslides which can not output > '--', any idea? Thanks. There is a bug somewhere (see later). As a workaround, you can use \setuptyping[style={\definedfont[LMTypewriter10-Regular]}] Here is a minimal example of what is happening. In simpleslides we use \definebodyfontenvironment, otherwise the size calculations (tfa, etc) and the math fonts do not work (at least this is what used to happen in MkII). For some reason this means that we cannot switch to typewriter font. Any ideas on what is wrong here? \def\NormalSize{17pt} \def\TitleSize {22pt} %D The bodyfont needs to be defined so \CONTEXT\ can calculate size switches, %D math formulas, etc. \starttypescript [serif] [default] [size] \definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [rm] [default] \stoptypescript \starttypescript [sans] [default] [size] \definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [ss] [default] \stoptypescript \definebodyfontenvironment[\NormalSize] \definebodyfontenvironment[\TitleSize] \starttypescript[bookman] \definetypeface [bookman] [rm] [serif] [bookman] [default] \definetypeface [bookman] [ss] [sans] [adventor] [default] \definetypeface [bookman] [tt] [mono] [modern] [default] [rscale=1.075] \definetypeface [bookman] [mm] [math] [pagella] [default] \stoptypescript \usetypescript[bookman] \setupbodyfont[bookman,\NormalSize] \starttext \starttyping i ++; i --; \stoptyping {\tt A test i -- } \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________