* [Fwd: Where did the equal sign go?]
@ 2004-11-01 9:28 Hans Hagen
2004-11-01 9:40 ` missing = Patrick Gundlach
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2004-11-01 9:28 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 406 bytes --]
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
[-- Attachment #2: Where did the equal sign go? --]
[-- Type: message/rfc822, Size: 5480 bytes --]
[-- Attachment #2.1.1: Type: text/plain, Size: 556 bytes --]
Hans,
This typesets (pdf) fine on my system.
\starttext
\subject{Unorthodox}
Subtracting a scalar from a matrix or vector makes no sense
mathematically.
\startformula
\left(\matrix{1 & 2 & 3\cr 4 & 5 & 6}\right)-1
\stopformula
However, this is such a common occurrence, Matlab interprets this to
mean
\startformula
\left(\matrix{1 & 2 & 3\cr 4 & 5 & 6}\right)-1
=\left(\matrix{0 & 1 & 2\cr 3 & 4 & 5}\right).
\stopformula
\stoptext
However, the exact same construct in the attached file doesn't show the
equal sign when viewed in Acrobat. How come?
[-- Attachment #2.1.2: slides.tex --]
[-- Type: text/plain, Size: 2784 bytes --]
%\showframe
\setuppapersize[S6][S6]
\setuplayout
[width=middle,
top=1cm,
bottom=1cm,
backspace=1cm,
leftmargin=0pt,
rightmargin=0pt,
footer=0pt,
header=0pt]
\setuppagenumbering
[state=stop]
\setupwhitespace[medium]
\setupindenting[medium]
\setupbodyfont[lbr,14pt]
\setupcolors[state=start]
\definecolor[darkred][r=0.5, g=0.0, b=0.0]
\definecolor[darkgreen][r=0.0, g=0.5, b=0.0]
\setuphead
[subject][color=blue]
\starttext
\startstandardmakeup
\startcolor[darkred]
\startalignment[center]
\tfd Using Technology \blank
\tfd in\blank
\tfd Teaching Multivariable Calculus\vfill
\tfb David Arnold\vfill
\tfb Humboldt Mathematics Colloquium\blank
\tfb\currentdate[month,year]
\stopalignment
\stopstandardmakeup
\subject{Matlab}
In order to use Matlab effectively, students must understand that
Matlab's basic data structure is the matrix.
\startitemize
\item Entries in rows are separated by commas.
\starttyping
>> u=[1,2,3]
u =
1 2 3
\stoptyping
\item Rows are terminated by semicolons.
\starttyping
>> v=[1;2;3]
v =
1
2
3
\stoptyping
\item Row entries can also be separated by spaces.
\starttyping
>> A=[1 2;3 4]
A =
1 2
3 4
\stoptyping
\stopitemize
\page
\subject{The Algebra of Vectors}
\startitemize
\item Vectors are added element by element.
\starttyping
>> u=[1,2,3]; v=[4,5,6];
>> u+v
ans =
5 7 9
\stoptyping
\item Vectors are subtracted element by element.
\starttyping
>> u=[1;2;3]; v=[4;5;6];
>> u-v
ans =
-3
-3
-3
\stoptyping
\item Scalar multiplication is performed on each element.
\starttyping
>> u=[7,8,9];
>> 2*u
ans =
14 16 18
\stoptyping
\stopitemize
\page
\subject{Matrices}
\startitemize
\item Matrices of equal size are added (or subtracted) element by element.
\starttyping
>> A=[1,2,3;4,5,6]; B=[1,1,1;2,2,2];
>> A+B
ans =
2 3 4
6 7 8
\stoptyping
\item Scalar multiplication is performed on each entry.
\starttyping
>> A=[1,2;3,4;5,6;7,8];
>> 2*A
ans =
2 4
6 8
10 12
14 16
\stoptyping
\stopitemize
\page
\subject{Unorthodox}
Subtracting a scalar from a matrix or vector makes no sense
mathematically.
\startformula
\left(\matrix{1 & 2 & 3\cr 4 & 5 & 6}\right)-1
\stopformula
However, this is such a common occurrence, Matlab interprets this to
mean
\startformula
\left(\matrix{1 & 2 & 3\cr 4 & 5 & 6}\right)-1=\left(\matrix{0 & 1 & 2\cr 3 & 4 & 5}\right).
\stopformula
\page
\subject
{Parametric Equations}
\stoptext
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: missing =
2004-11-01 9:28 [Fwd: Where did the equal sign go?] Hans Hagen
@ 2004-11-01 9:40 ` Patrick Gundlach
2004-11-02 17:04 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2004-11-01 9:40 UTC (permalink / raw)
> From: David Arnold <darnold@northcoast.com>
> Subject: Where did the equal sign go?
> To: pragma@wxs.nl
> Date: Sat, 30 Oct 2004 09:25:19 -0700
Please use the following method to make the error more clear for us:
* delete everything unecessary
* post the resulting code
* (there is no step three)
So it comes down to something like:
\setupbodyfont[lbr,14pt]
\starttext
\startformula
-1=+1
\stopformula
\stoptext
which typesets -1 1
removing the \setupbodyfont is the key to the = and + sign. Perhaps
this is enough for others to track down the error. Sorry I don't know
further.
Patrick
--
ConTeXt wiki: http://contextgarden.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: missing =
2004-11-01 9:40 ` missing = Patrick Gundlach
@ 2004-11-02 17:04 ` Hans Hagen
2004-11-02 17:53 ` David Arnold
2004-11-02 18:13 ` Adam Lindsay
0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2004-11-02 17:04 UTC (permalink / raw)
Patrick Gundlach wrote:
>
>>From: David Arnold <darnold@northcoast.com>
>>Subject: Where did the equal sign go?
>>To: pragma@wxs.nl
>>Date: Sat, 30 Oct 2004 09:25:19 -0700
>
>
> Please use the following method to make the error more clear for us:
>
> * delete everything unecessary
> * post the resulting code
> * (there is no step three)
>
> So it comes down to something like:
>
> \setupbodyfont[lbr,14pt]
> \starttext
> \startformula
> -1=+1
> \stopformula
> \stoptext
>
> which typesets -1 1
>
> removing the \setupbodyfont is the key to the = and + sign. Perhaps
> this is enough for others to track down the error. Sorry I don't know
> further.
here i get
-1 = +1
maybe you run a special version of tex that has a math correctness test
in it
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: missing =
2004-11-02 17:04 ` Hans Hagen
@ 2004-11-02 17:53 ` David Arnold
2004-11-02 18:13 ` Adam Lindsay
1 sibling, 0 replies; 5+ messages in thread
From: David Arnold @ 2004-11-02 17:53 UTC (permalink / raw)
Hans, Patrick, et al,
This was my fault. I don't have Lucida fonts set up properly on my system
for Context (and I don't want to go there yet), so I just switched over to
Computer Modern and all is fine.
At 06:04 PM 11/2/04 +0100, you wrote:
>Patrick Gundlach wrote:
>
>>
>>>From: David Arnold <darnold@northcoast.com>
>>>Subject: Where did the equal sign go?
>>>To: pragma@wxs.nl
>>>Date: Sat, 30 Oct 2004 09:25:19 -0700
>>
>>
>> Please use the following method to make the error more clear for us:
>>
>> * delete everything unecessary
>> * post the resulting code
>> * (there is no step three)
>>
>> So it comes down to something like:
>>
>> \setupbodyfont[lbr,14pt]
>> \starttext
>> \startformula
>> -1=+1
>> \stopformula
>> \stoptext
>>
>> which typesets -1 1
>>
>> removing the \setupbodyfont is the key to the = and + sign. Perhaps
>> this is enough for others to track down the error. Sorry I don't know
>> further.
>
>here i get
>
> -1 = +1
>
>maybe you run a special version of tex that has a math correctness test
>in it
>
>Hans
>
>
>-----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
>-----------------------------------------------------------------
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: missing =
2004-11-02 17:04 ` Hans Hagen
2004-11-02 17:53 ` David Arnold
@ 2004-11-02 18:13 ` Adam Lindsay
1 sibling, 0 replies; 5+ messages in thread
From: Adam Lindsay @ 2004-11-02 18:13 UTC (permalink / raw)
Hans Hagen said this at Tue, 2 Nov 2004 18:04:35 +0100:
>> \setupbodyfont[lbr,14pt]
>> \starttext
>> \startformula
>> -1=+1
>> \stopformula
>> \stoptext
>>
>> which typesets -1 1
>>
>> removing the \setupbodyfont is the key to the = and + sign. Perhaps
>> this is enough for others to track down the error. Sorry I don't know
>> further.
>
>here i get
>
> -1 = +1
>
>maybe you run a special version of tex that has a math correctness test
>in it
:p [it wouldn't surprise me if DEK were *capable* of doing such a thing...]
Actually, it reminds me quite a bit of one of the problems I had in some
math experiments yesterday. For me, the key was in the equivalent lines
to this:
\starttypescript [math,boldmath] [lucida] [special]
\usemathcollection[lbr]
\stoptypescript
(Something in the past year changed so that a [special] typescript is
needed for a correct \usemathcollection.)
So, in response to David, just to make sure: you *do* have the (non-free)
Lucida fonts installed correctly? The typeset output is definitely
Lucida, albeit incorrect?
If so, then what about:
\usetypescript [lucida] [\defaultencoding]
\setupbodyfont [lucida,14pt]
\starttext etc.
(Apologies if this is off the mark. I don't have the TeXish lbr fonts, so
can't directly verify)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-02 18:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-01 9:28 [Fwd: Where did the equal sign go?] Hans Hagen
2004-11-01 9:40 ` missing = Patrick Gundlach
2004-11-02 17:04 ` Hans Hagen
2004-11-02 17:53 ` David Arnold
2004-11-02 18:13 ` Adam Lindsay
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).