From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28380 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Font size in FLOWchart module. Date: Thu, 1 Jun 2006 18:42:35 -0400 Organization: WexfordPress Message-ID: <200606011842.36056.john@wexfordpress.com> References: <200508072007.04419.john@wexfordpress.com> <200606010851.24370.john@wexfordpress.com> <447F27AD.4050803@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149202034 11934 80.91.229.2 (1 Jun 2006 22:47:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jun 2006 22:47:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 02 00:47:11 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FlvwZ-0006ta-E6 for gctc-ntg-context-518@m.gmane.org; Fri, 02 Jun 2006 00:47:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01D5912813; Fri, 2 Jun 2006 00:47:07 +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 02792-02; Fri, 2 Jun 2006 00:47:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 83D4712809; Fri, 2 Jun 2006 00:46:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F04812809 for ; Fri, 2 Jun 2006 00:46:56 +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 02500-07 for ; Fri, 2 Jun 2006 00:46:53 +0200 (CEST) Original-Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by ronja.ntg.nl (Postfix) with SMTP id 9C325127B3 for ; Fri, 2 Jun 2006 00:46:52 +0200 (CEST) Original-Received: from 69-174-128-193.frdrmd.adelphia.net ([69.174.128.193]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060601224651.BBSQ27996.mta10.adelphia.net@69-174-128-193.frdrmd.adelphia.net> for ; Thu, 1 Jun 2006 18:46:51 -0400 Original-To: mailing list for ConTeXt users User-Agent: KMail/1.9.1 In-Reply-To: <447F27AD.4050803@seznam.cz> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:28380 Archived-At: On Thursday 01 June 2006 13:45, Vit Zyka wrote: > John R. Culleton wrote: > > On Monday 08 August 2005 07:59, Hans Hagen wrote: > >> Vit Zyka wrote: > >>> John R. Culleton wrote: > >>>> I am using the flowchart module to create various goodies. What > >>>> I don't know how to do is regulate the size of the font for the > >>>> text that goes inside the little boxes. Any suggestions? > >>> > >>> I do not known any other way but put the size/style together with text: > >>> > >>> \startFLOWcell > >>> \name{Obs} > >>> \location{1,1} > >>> \shape{action} > >>> \text{{\switchtobodyfont[16pt]\bf Text in cell}} > >>> \stopFLOWcell > >>> > >>> If you want to be consistent over several cells, define a macro. > >>> vit > >> > >> in m-chart you will find: > >> > >> \setupFLOWcharts > >> [\c!option=, > >> \c!bodyfont=, > >> \c!dot=, % private option > >> \c!width=12\bodyfontsize, > >> \c!height=7\bodyfontsize, > >> \c!maxwidth=, > >> \c!maxheight=, > >> \c!offset=\v!standard, % == auto offset > >> \c!dx=2\bodyfontsize, > >> \c!dy=2\bodyfontsize, > >> \c!nx=0, % 1, > >> \c!ny=0, % 1, > >> \c!x=1, > >> \c!y=1, > >> \c!autofocus=, > >> \c!focus=, > >> \c!background=, % \v!color, > >> \c!backgroundcolor=\s!white, > >> \c!rulethickness=\linewidth, > >> \c!frame=\v!off, > >> \c!framecolor=] > >> > >> \setupFLOWlines > >> [\c!corner=\v!round, > >> \c!arrow=\v!yes, > >> \c!dash=\v!no, > >> \c!radius=.375\bodyfontsize, % 2.5\c!rulethickness > >> \c!color=FLOWlinecolor, > >> \c!rulethickness=.15\bodyfontsize, % 2pt, > >> \c!offset=\v!none] > >> > >> \setupFLOWshapes > >> [\c!default=action, > >> \c!framecolor=FLOWframecolor, > >> \c!background=\v!color, > >> \c!backgroundcolor=FLOWbackgroundcolor, > >> \c!backgroundscreen=\@@rsscreen, > >> \c!rulethickness=.15\bodyfontsize, % 2pt, > >> \c!offset=.5\bodyfontsize] > >> > >> \setupFLOWfocus > >> [\c!framecolor=FLOWfocuscolor, > >> \c!background=\@@FLOSbackground, > >> \c!backgroundcolor=\@@FLOSbackgroundcolor, > >> \c!backgroundscreen=\@@FLOSbackgroundscreen, > >> \c!rulethickness=\@@FLOSrulethickness, > >> \c!offset=\@@FLOSoffset] > >> > >> \definecolor [FLOWfocuscolor] [s=.2] > >> \definecolor [FLOWlinecolor] [s=.5] > >> \definecolor [FLOWframecolor] [s=.7] > >> \definecolor [FLOWbackgroundcolor] [s=.9] > >> > >> so guess ... what variable can be used to set the bodyfont > >> > >> Hans > > > > Revisiting this question after an absence I tried redefining > > various values from the above list within \setupFLOWcharts. None > > worked. No doubt there is a magic combination I missed. But more > > than one user has been perplexed by this. > > > > You know I never did figure out the answer to this one. And > > factors such as \tfd were still too small. So I used the > > John, I guess you have > > maxwidth=\textwidth > > and your natural chart is wider then \textwidth, is't it? > What happens if you put away maxwidth? > > Vit > The immediate effect is that everything is bigger and the chart overflows both margins. The text is at normal size for this document. So the text problem was solved, but how to get the widgets and the spaces between them down to a reasonable size? After much experimentation I came up with this: \setupFLOWcharts [ nx=6, ny=2, dx=\bodyfontsize, dy=\bodyfontsize, width=.15\hsize, height=.15\hsize, ] There is still some overflow into the margins and some of the text is too highly hyphenated. But at least I am on the right track. When all this is over I may write my own version of the manual so I won't forget between uses :<) Thanks much, John Culleton