From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52837 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: mkIV framedcontent not working Date: Thu, 10 Sep 2009 18:47:12 +0200 Message-ID: <92D89D04-6365-4D6B-996A-E272BC17975F@googlemail.com> References: <002d01ca2a1e$7e627e50$8614a8c0@boschung.local> <4AA81260.2030806@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1075.2) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252601263 10976 80.91.229.12 (10 Sep 2009 16:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 16:47:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 10 18:47:36 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 1Mlmo4-000820-1b for gctc-ntg-context-518@m.gmane.org; Thu, 10 Sep 2009 18:47:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70407C9AAF; Thu, 10 Sep 2009 18:47:34 +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 O1Yc1uWvWrDm; Thu, 10 Sep 2009 18:47:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F151C9A92; Thu, 10 Sep 2009 18:47:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 614D8C9A92 for ; Thu, 10 Sep 2009 18:47:28 +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 ZmnQSpiS1-TI for ; Thu, 10 Sep 2009 18:47:24 +0200 (CEST) Original-Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by balder.ntg.nl (Postfix) with ESMTP id 00A84C9A90 for ; Thu, 10 Sep 2009 18:47:23 +0200 (CEST) Original-Received: by ewy21 with SMTP id 21so288982ewy.8 for ; Thu, 10 Sep 2009 09:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=MdPgZNa3mRGhLx+HF+gpUUzKs2DsX4wKaCflp3bq4nk=; b=XeE6YzKCztRxQYjfSLIoEP7cEaG21sCRpSW3/c4aj1P9XaxOf27+tRH+xDDzzqVax6 Dax9JM+xCWfgPfxzVsck8HdPgTy3DTDX+QtmUW384zIbVGQJJPNe3d4UeqHhQcV08sCi +mrDgCu4HfllsmzXcRNOizD8n0chSLIgyrvwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=tmXGcjLvvKP3snC8Kma9lljLXb7K2W1tG4uySL3/mtZddOYKkAV7/srSszS7PXSSrn XjIu/LyaNHk9g2QLc3ZN6G7dL8kpLUYAJNORDxGTxGM8GnIW7NUSqOiK48Q53SoALCzP TR7CjwlmKnHP73wkWBhQrmb1QISRwK/TSAhgQ= Original-Received: by 10.210.9.12 with SMTP id 12mr1986092ebi.3.1252601242414; Thu, 10 Sep 2009 09:47:22 -0700 (PDT) Original-Received: from ?10.70.158.45? ([82.113.106.153]) by mx.google.com with ESMTPS id 23sm5887233eya.1.2009.09.10.09.47.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Sep 2009 09:47:20 -0700 (PDT) In-Reply-To: <4AA81260.2030806@wxs.nl> X-Mailer: Apple Mail (2.1075.2) 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:52837 Archived-At: Am 09.09.2009 um 22:38 schrieb Hans Hagen: > start with making a small example that shows the problem easy to fix, change (why \ifcsname here?) \def\startframedcontent[#1]% {\bgroup \doifelse{#1}\v!off {\let\stopframedcontent\egroup} {\ifcsname\??fc#1\c!frame\endcsname \dostartframedcontent{#1}% \fi}} to \def\startframedcontent[#1]% {\bgroup \doifelse{#1}\v!off {\let\stopframedcontent\egroup} {\dostartframedcontent{#1}}} there is another problem with the code in \stoplocalframedcontent \doifvalue{\??fc#1\c!width}\v!fit {\letvalue{\??fc#1\c!width}\v!fixed}% no shapebox width has no default value for framedcontent and after this test it has the value \relax which causes a problem in \framed, there are two solutions a) set a default value with \defineframedcontent or change the \doifvalue definition \def\dodefineframedcontent[#1][#2]% {\presetlocalframed[\??fc#1]% \getparameters[\??fc#1] [\c!leftoffset=\zeropoint, \c!rightoffset=\getvalue{\??fc#1\c!leftoffset}, \c!topoffset=\zeropoint, \c!bottomoffset=\getvalue{\??fc#1\c!topoffset}, \c!width=\v!fit, % default value for \framed \c!strut=\v!no, \c!offset=\v!overlay, \c!linecorrection=\v!no, \c!left=, \c!right=, #2]} or \long\def\doifvalue#1#2% {\begingroup \edef\!!stringa{\csname#1\endcsname}\edef\!!stringb{#2}% \ifx\!!stringa\!!stringb \aftergroup\firstofoneargument % \expandafter\endgroup \expandafter\firstofoneargument \else \aftergroup\gobbleoneargument % \expandafter\endgroup\expandafter \gobbleoneargument \fi\endgroup} 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________