From: David Arnold <dwarnold45@cox.net>
Subject: Re: column overflow at times --- any thoughts?
Date: Thu, 3 Aug 2006 00:28:00 -0700 [thread overview]
Message-ID: <7FAEF973-56DD-4F44-92DA-A1C96CD6B0FC@cox.net> (raw)
In-Reply-To: <44D1A0ED.2020903@elvenkind.com>
[-- Attachment #1.1: Type: text/plain, Size: 2149 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 4461 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2006-08-03 7:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-01 18:53 David Arnold
2006-08-02 8:20 ` Taco Hoekwater
2006-08-02 15:44 ` David Arnold
2006-08-03 7:08 ` Taco Hoekwater
2006-08-03 7:28 ` David Arnold [this message]
2006-08-03 8:00 ` Taco Hoekwater
2006-08-03 8:05 ` David Arnold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7FAEF973-56DD-4F44-92DA-A1C96CD6B0FC@cox.net \
--to=dwarnold45@cox.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).