From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84922 Path: news.gmane.org!not-for-mail From: "Keith J. Schultz" Newsgroups: gmane.comp.tex.context Subject: Re: Is this possible for the Frames Date: Mon, 21 Oct 2013 08:41:31 +0200 Message-ID: <8F7F697B-4791-4C69-BAB1-B9E3BCE81AE5@uni-trier.de> References: <6C9B92A4-9818-427B-A6EB-9CCB78841E30@uni-trier.de> <9102B569-1B5E-401D-B5B8-C7006E434EA4@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382337698 18097 80.91.229.3 (21 Oct 2013 06:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 06:41:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 21 08:41:40 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VY9BM-0000Li-50 for gctc-ntg-context-518@m.gmane.org; Mon, 21 Oct 2013 08:41:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 353BB10200; Mon, 21 Oct 2013 08:38:47 +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 ePCVjHlJCEEi; Mon, 21 Oct 2013 08:38:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1DAB5101FA; Mon, 21 Oct 2013 08:38:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2D6C101FA for ; Mon, 21 Oct 2013 08:38:43 +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 rlr-PMubSt7n for ; Mon, 21 Oct 2013 08:38:42 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 48C22101F9 for ; Mon, 21 Oct 2013 08:38:42 +0200 (CEST) Original-Received: from mx1.uni-trier.de (mx1.uni-trier.de [136.199.224.17]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9L6fWBb010440 for ; Mon, 21 Oct 2013 08:41:33 +0200 X-IronPort-AV: E=Sophos;i="4.93,537,1378850400"; d="scan'208";a="8709939" Original-Received: from rzmail.uni-trier.de ([136.199.8.220]) by mx1i.uni-trier.de with ESMTP; 21 Oct 2013 08:41:32 +0200 Original-Received: from [10.0.62.4] (dslb-084-058-224-205.pools.arcor-ip.net [84.58.224.205]) by rzmail.uni-trier.de (Postfix) with ESMTPA id 6573740201 for ; Mon, 21 Oct 2013 08:41:32 +0200 (CEST) In-Reply-To: <9102B569-1B5E-401D-B5B8-C7006E434EA4@gmail.com> X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=136.199.224.17; country=DE; region=08; city=Trier; latitude=49.7500; longitude=6.6333; http://maps.google.com/maps?q=49.7500,6.6333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WKDGFxT0 - bf5900ad9f33 - 20131021 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84922 Archived-At: Hi Wolfgang, all, Thanx for the example/help. I have a few questions sothat I understand properly what is going on and how to maybe do some more fancy things. 1) \dimexpr allows the calculation of a dimention 2) \dimexpr is closed by \relax or if I need more complicated calculation something like: frameoffset=\dimexpr{\framedparameter{rulethickness}*3/10} + \framedparameter{\frameoffset}}\relax 3) How would access a value of a DIFFERENT frame? 4) I could use my own command whose result is a dimension: \def\MyCommand#1{#1\textwidth} and use it as: frameoffset=\dimexpr\Mycommand{.05}\relax regards Keith Am 18.10.2013 um 14:56 schrieb Wolfgang Schuster : > > > \defineframed > [MyFrame] > [rulethickness=3pt, > frameoffset=\dimexpr\framedparameter{rulethickness}*3/10\relax] > > \starttext > > \MyFrame{What goes into the frame} > > \blank > > \MyFrame[rulethickness=1pt]{What goes into the frame} > > \blank > > \MyFrame[rulethickness=10pt]{What goes into the frame} > > \stoptext > > Wolfgang > ___________________________________________________________________________________ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________