From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29921 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: column overflow at times --- any thoughts? Date: Thu, 3 Aug 2006 00:28:00 -0700 Message-ID: <7FAEF973-56DD-4F44-92DA-A1C96CD6B0FC@cox.net> References: <63B82A81-83FC-469D-904A-496A837855E0@cox.net> <44D0604A.7040501@elvenkind.com> <44D1A0ED.2020903@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============0037801813==" X-Trace: sea.gmane.org 1154590197 2389 80.91.229.2 (3 Aug 2006 07:29:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 07:29:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 03 09:29:55 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 1G8XeS-00058T-KT for gctc-ntg-context-518@m.gmane.org; Thu, 03 Aug 2006 09:29:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B3F501FF03; Thu, 3 Aug 2006 09:29:51 +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 18632-06; Thu, 3 Aug 2006 09:29:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04B8B1FE93; Thu, 3 Aug 2006 09:29:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC0931FE93 for ; Thu, 3 Aug 2006 09:29:38 +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 18631-08 for ; Thu, 3 Aug 2006 09:29:32 +0200 (CEST) Original-Received: from fed1rmmtao03.cox.net (fed1rmmtao03.cox.net [68.230.241.36]) by ronja.ntg.nl (Postfix) with SMTP id 931041FE90 for ; Thu, 3 Aug 2006 09:29:31 +0200 (CEST) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao03.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060803072929.QSCF2704.fed1rmmtao03.cox.net@[10.0.1.2]> for ; Thu, 3 Aug 2006 03:29:29 -0400 In-Reply-To: <44D1A0ED.2020903@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) 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:29921 Archived-At: --===============0037801813== Content-Type: multipart/alternative; boundary=Apple-Mail-12-189221264 --Apple-Mail-12-189221264 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Taco, Nice try, but didn't help. On Aug 3, 2006, at 12:08 AM, Taco Hoekwater wrote: > \displaywidowpenalty0\brokenpenalty0 The difficulty might be that Exercise #27 is in a textblock. % Exercise #27 \beginquestion \startquestion[ex:secqu.27] $f(x)=\sqrt{x+5}$. \stopquestion \endquestion \beginlonganswer[] \startanswer \stopanswer \endlonganswer \beginshortanswer[] \startanswer $\text{Domain}=[-5,\infty)=\{x:\,x\ge -5\}$ \startbuffer %initialize scale numeric u; 20u=2in; %draw axes \includeMPgraphic{1010_xy_axes_ti} %define function vardef f(expr x)= sqrt(x+5) enddef; %create function path path p; p:=(-5,f(-5)); for x=-5 step .1 until 10: p:=p--(x,f(x)); endfor; p:=p--(10,f(10)); p:=p scaled u; drawarrow p withcolor blue; label.rt(btex $\tfx f$ etex, (10,f(10)) scaled u); %create projection domain for x=-5 step 1 until 10: drawarrow ((x,f(x))--(x,0)) scaled u withcolor green; endfor; pickup pencircle scaled 2pt; drawarrow (-5u,0)--(10u,0) withcolor red; pickup defaultpen; filleddotred((-5u,0)); label.bot(btex $\tfx -5$ etex, (-5u,0)); \stopbuffer \startlinecorrection[blank] \midaligned{\processMPbuffer} \stoplinecorrection \column <--------------------Taco, inserting a column break works, which is what we'll probably do $\text{Range}=\{y:\,y\ge 0\}=[0,\infty)$ \startbuffer %initialize scale numeric u; 20u=2in; %draw axes \includeMPgraphic{1010_xy_axes_ti} %define function vardef f(expr x)= sqrt(x+5) enddef; %create function path path p; p:=(-5,f(-5)); for x=-5 step .1 until 10: p:=p--(x,f(x)); endfor; p:=p--(10,f(10)); p:=p scaled u; drawarrow p withcolor blue; label.rt(btex $\tfx f$ etex, (10,f(10)) scaled u); %create projection domain for y=0 step 1 until 3: drawarrow ((y*y-5,y)--(0,y)) scaled u withcolor green; endfor; for y=4 step 1 until 10: drawarrow ((10,y)--(0,y)) scaled u withcolor green; endfor; pickup pencircle scaled 2pt; drawarrow (0,0)--(0,10u) withcolor red; pickup defaultpen; filleddotred((0,0)); label.lft(btex $\tfx 0$ etex, (0,0)); \stopbuffer \startlinecorrection[blank] \midaligned{\processMPbuffer} \stoplinecorrection \stopanswer \endshortanswer --Apple-Mail-12-189221264 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Taco,

Nice try, but didn't = help.

On Aug 3, 2006, at 12:08 AM, Taco Hoekwater = wrote:

\displaywidowpenalty0\brokenpenalty0

=

The difficulty might be that Exercise #27 is = in a textblock.

% Exercise = #27
\beginquestion
\startquestion[ex:secqu.27]
$f(x)=3D\sqrt{x+5}$.
\stopquestion
\endquestion

\beginlonganswer[]
= \startanswer
\stopanswer
\endlonganswer

\beginshortanswer[]
\startanswer

$\text{Domain}=3D[-5,\infty)=3D= \{x:\,x\ge -5\}$

\startbuffer

%initialize = scale
numeric u; 20u=3D2in;

%draw = axes
\includeMPgraphic{1010_xy_axes_ti}

%define = function
vardef f(expr x)=3D
= sqrt(x+5)
enddef;

%create function = path
path p; p:=3D(-5,f(-5));
for x=3D-5 step .1 = until 10:
= p:=3Dp--(x,f(x));
endfor;
p:=3Dp--(10,f(10));
p:=3Dp scaled u;
drawarrow p withcolor = blue;
label.rt(btex $\tfx f$ etex, (10,f(10)) scaled = u);

%create = projection domain
for x=3D-5 step 1 until 10:
= drawarrow ((x,f(x))--(x,0)) scaled u withcolor = green;
endfor;
pickup pencircle scaled = 2pt;
drawarrow (-5u,0)--(10u,0) withcolor = red;
pickup = defaultpen;
filleddotred((-5u,0));
label.bot(btex = $\tfx -5$ etex, (-5u,0));
\stopbuffer

\startlinecorrection[blank]
\midaligned{\processMPbuffer}
\stoplinecorrection
=

\column =A0 =A0=A0 = =A0=A0 =A0=A0 =A0=A0 =A0=A0 =A0<--------------------Taco, inserting a = column break works, which is what we'll probably do

$\text{Range}=3D\{y:\,y\ge = 0\}=3D[0,\infty)$

\startbuffer

%initialize = scale
numeric u; 20u=3D2in;

%draw = axes
\includeMPgraphic{1010_xy_axes_ti}

%define = function
vardef f(expr x)=3D
= sqrt(x+5)
enddef;

%create function = path
path p; p:=3D(-5,f(-5));
for x=3D-5 step .1 = until 10:
= p:=3Dp--(x,f(x));
endfor;
p:=3Dp--(10,f(10));
p:=3Dp scaled u;
drawarrow p withcolor = blue;
label.rt(btex $\tfx f$ etex, (10,f(10)) scaled = u);

%create = projection domain
for y=3D0 step 1 until 3:
= drawarrow ((y*y-5,y)--(0,y)) scaled u withcolor = green;
endfor;
for y=3D4 step 1 until 10:
= drawarrow ((10,y)--(0,y)) scaled u withcolor = green;
endfor;

pickup pencircle scaled = 2pt;
drawarrow (0,0)--(0,10u) withcolor red;
pickup = defaultpen;
filleddotred((0,0));
label.lft(btex = $\tfx 0$ etex, (0,0));
\stopbuffer

\startlinecorrection[blank]
\midaligned{\processMPbuffer}
\stoplinecorrection
=

\stopanswer
\endsho= rtanswer


= --Apple-Mail-12-189221264-- --===============0037801813== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0037801813==--