From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72035 Path: news.gmane.org!not-for-mail From: Curiouslearn Newsgroups: gmane.comp.tex.context Subject: custom command \myframedsection does not always work. Bug? Date: Sun, 30 Oct 2011 11:00:41 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319986865 4651 80.91.229.12 (30 Oct 2011 15:01:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2011 15:01:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 30 16:01:01 2011 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.69) (envelope-from ) id 1RKWse-000539-DN for gctc-ntg-context-518@m.gmane.org; Sun, 30 Oct 2011 16:01:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 730D0CB0CA; Sun, 30 Oct 2011 16:00:59 +0100 (CET) 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 DlffblgqtXO1; Sun, 30 Oct 2011 16:00:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 017C8CB0B4; Sun, 30 Oct 2011 16:00:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2774CCB0B4 for ; Sun, 30 Oct 2011 16:00:54 +0100 (CET) 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 gB-c0Sbd3HPi for ; Sun, 30 Oct 2011 16:00:43 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 1955DCB0B1 for ; Sun, 30 Oct 2011 16:00:43 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9UF0fA6008441 for ; Sun, 30 Oct 2011 16:00:42 +0100 Original-Received: by bkbzv15 with SMTP id zv15so727143bkb.14 for ; Sun, 30 Oct 2011 08:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=FvAZA5PoA+cclWvVTH7tyf8gF1SWJ6ql5wkEogdx/a0=; b=Zg5cFyZj/TmK7bjnbYfqqT0RO+DSePOKVY9MIHoNheiRDzAEs+amYrDk0uzpT7ljlc IGBwnPVW7rHkekFJX5hq0hLxEJF39E8ZsXYmWiPzZQYrGoybYCotvUc3klg1XyLcDtXD mqHS0EUznjOGMJfpAVK8DSlx05d5pxmcBEOAY= Original-Received: by 10.205.83.73 with SMTP id af9mr7877188bkc.24.1319986841133; Sun, 30 Oct 2011 08:00:41 -0700 (PDT) Original-Received: by 10.204.119.211 with HTTP; Sun, 30 Oct 2011 08:00:41 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03FP30FCD - f6f878d76832 - 20111030 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:72035 Archived-At: Hi All, Please see the working example below. I have defined a command called \myframedsection. It works the first two times I use it, but not the third time. I think it has something to do with using \startitemize...\stopitemize before the command is used the third time. But I am not sure. Can someone please tell me why it is not working, and how I can change my definition so that it works? Is this a bug? Minimal Example: \setuppapersize[letter][letter] \setupwhitespace[medium] \setuplayout[height=middle,width=middle,topspace=0.5in,header=1cm,backspace=1.25in] \setupcolors[state=start] \setupcolor[xwi] \setupinteraction[state=start] % Changing the location of the page numbers so that they appear in the footer. \setuppagenumbering[location=footer] \setupnarrower[left=2ex] \setupitemize[margin=0.5cm] \setupitemize[a] \setupitemize[stopper=)] %%% Defining \mysection and \myframedsection %%% \definehead[mysection][section] \setuphead[mysection][color=blue*:3] \def\myframedsection#1{\bgroup\vskip 0.5in \framed[background=color, backgroundcolor=gray:10] {\mysection{#1}}% \egroup} \starttext \myframedsection{Confidence Intervals from the normal and $t$-distributions} {\bf Here myframedsection commmand works.} \subsection{Confidence Interval for Mean} \subsection{Confidence Interval for Proportion} \subsection{Confidence Interval for Linear Transformation} %%%% SECTION %%%% \myframedsection{Classical Hypothesis Testing} %%%% SECTION %%%% {\bf Here myframedsection commmand works.} \startitemize \item some item here \item some item here \stopitemize %%%% SECTION %%%% \myframedsection{Problems with Statistical Significance} %%%% SECTION %%%% {\bf where is the section title??????} Researchers often compare results based on statistical significance. There are two pitfalls in doing so: \startitemize \item Statistical significance does not mean practical significance. A result that is statistically significant may be practically insignificant. \item If one result is statistically significant and other is not, it does not necessarily mean that the difference in the two results is statistically significant. For example, suppose there are two independent studies, one with an effect estimate of 25 and standard error of 10. Another with an effect estimate of 10 and standard error of 10. The former is statistically significant at 1\% significance level. The latter is not significant at 1\%. From this one may be tempted to conclude that there is a large/significant difference between the results in two studies. However, this is not true. The estimate of difference in the effects is 15 with standard error of $ \sqrt{10^{2} + 10^{2}} = 14 $. This is not even close to being statistically significant at 1\% level. \stopitemize \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________