[NTG-context] symbol parameter of \setuplist

2005-04-10 Thread David Munger
Hello,

I fear I cannot figure out what is the meaning of the `symbol' parameter
of \setuplist. From all the documentation or mailing list archives, the
only use I can find is "symbol=1".

Is there a way to use it to draw bullets, say, before each list item,
like those in the itemize environment? If not, what would be the best
way of achieving this? With \placelist[command=...] maybe?

Regards,

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page number in interaction menu

2005-04-10 Thread David Munger
Hello,

Is there a way to remove the page number from the interaction menu? I
might be doing something wrong. Thanks for any clue.

Minimal example:

\setuppapersize [S6][S6]
\setuplayout [height=300pt, bottom=24pt]
\setupbodyfont [20pt]

\setupinteraction [state=start, menu=on]
\startinteractionmenu [bottom]
  Menu: \placelist[chapter]
[alternative=bottom,criterium=all,pagenumber=no]
\stopinteractionmenu

\starttext
\chapter{First}
\page hello
\chapter{Second}
\stoptext


Regards,

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \stretched fails with accents

2005-04-10 Thread David Munger
Hello,


Both of these fail (the second one is assumed to be unicode).

\hbox to \textwidth {\stretched{pr\'edoctoral}}
\hbox to \textwidth {\stretched{prÃdoctoral}}


Regards,

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font encoding: \uppercased: \WORD

2005-04-10 Thread David Wooten
I came across the command \WORD{} in the manual (nice place to look, eh?). This does all capitals (it can be more than one word) and doesn't have the issue with diacritics that \uppercased was having for me. 

Thanks,
David

On Mar 25, 2005, at 5:30 PM, David Wooten wrote:

Greetings all,

Taco mentioned the command \uppercased{to get all uppercase letters}, and it works just fine…until I try to use my self-installed fonts. The quirks come up with diacritics, and this leads me to believe that there is an [encoding] or [regime] issue here, as I had similar issues earlier with the font in general. For example, with \uppercased{Krübel} I receive: KRüBEL. 

Do I need to "make a statement of my intent" in a typescript file or somewhere else to resolve this?

Kind regards,
David___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font encoding: \uppercased

2005-04-08 Thread David Wooten
Greetings Vit, all,
Thanks for the response.
I'm finally getting around to looking into this again. My first 
attempts haven't yielded any good results. Could you (or someone) say a 
little more (newbie-explicit)? I assume that the enco-*.tex files 
you're referring to are in .../context/base/, where there are a series 
of 30 or so such files. It isn't clear to me which one to use. Does the 
encoding refer to font encoding? —in which case there is no 
"enco-8r.tex"— or to something else? — enco-pdf.tex for example.

Thanks very much,
David Wooten
On Mar 26, 2005, at 11:35 AM, Vit Zyka wrote:
David Wooten wrote:
Greetings all,
Taco mentioned the command \uppercased{to get all uppercase letters}, 
and it works just fine…until I try to use my self-installed fonts. 
The quirks come up with diacritics, and this leads me to believe that 
there is an [encoding] or [regime]/ /issue here, as I had similar 
issues
Yes, \uccode and \lccode are encoding-dependent and are defined in 
enco-*.tex files. So, look into the encoding file you are using and 
add the their definition between
  \startmapping[st1]
\definecasemap 152 184 152
  \stopmapping
with meaning: character 152 has lower counterpart 184 and upper one 
152 (152 is uppercase letter).

(or for continuous sequence there is abbreviation
  \definecasemaps 160 to 188 lc +32 uc 0
 with meaning:
  \definecasemap 160 182 160
  \definecasemap 161 183 161
  ...
  \definecasemap 188 220 188
)
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Charts

2005-04-06 Thread David Waller
Thanks for your help. I suspect I would have been a long time spotting
it was \FLOWcharts and not \FLOWchart
Thanks again


On Apr 6, 2005 6:06 PM, Willi Egger <[EMAIL PROTECTED]> wrote:
> Hi David,
> 
> As Patrick posted on the list, you can use the placefloat mechanism to
> get the whole chart splitted over several pages. In this case you will
> not be able to use interactivity within the chart.
> 
> I feel, that you want to split the chart over two pages. So you need to use
> 
> \FLOWcharts[...] (plural)
>   ^
> Use \showframe to see the actual margins, header and footer. You will
> have to play with the different parameters to make things fit. E.g.
> there is no room for 8 shapes on a A4 if you do not change the
> page-layout. Though it works with 7 shapes. If you want that the text
> follows directly the FLOWchart, then you need to withdraw the
> after=\page. You might want to increase the space between chart and text
> by e.g. after={\blank[3*big]}.
> 
> I hope this will help solving your problem
> 
> Willi
> 
> David Waller wrote:
> > Hi Willi,
> > Thanks for your comments, unfortunately this still hasn't helped me. I
> > enclose below a simple sample that shows the problem. Any advice
> > please?
> >
> > % interface=en output=pdftex
> >
> > \usemodule[chart]
> > \setupFLOWcharts
> >   [x=1,
> >   y=1,
> >   nx=5,
> >   ny=9,
> >   dx=\bodyfontsize,
> >   dy=\bodyfontsize,
> >   width=6\bodyfontsize,
> >   height=4\bodyfontsize]
> >
> > \setupFLOWsplit
> > [x=1,
> > y=1,
> > nx=5,
> > ny=8,
> > dx=1,
> > dy=1,
> > before=,
> > after=\page,
> > marking=on]
> >
> > \startFLOWchart [place-st-low]
> >   \startFLOWcell
> > \name {start}
> > \location {1,1}
> > \shape {procedure}
> > \text {Straight}
> > \connection [bt] {1}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {1}
> > \location {1,2}
> > \shape {wait}
> > \text {Place}
> > \connection [bt] {20}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {20}
> > \location {1,3}
> > \shape {wait}
> > \text { point}
> > \connection [bt] {2}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {2}
> > \location {1,4}
> > \shape {12}
> > \text {User}
> > \connection [bt] {3}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {3}
> > \location {1,5}
> > \shape {sub procedure}
> > \text {Start}
> > \connection [bt] {4}
> > \connection [rr] {2}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {4}
> > \location {1,6}
> > \shape {decision}
> > \text {new}
> > \connection [bt] {5}
> > \connection [rl] {4a}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {4a}
> > \location {2,6}
> > \shape {action}
> > \text {Automatically}
> > \connection [bt] {7}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {5}
> > \location {1,7}
> > \shape {12}
> > \text {User}
> > \connection [bt] {6}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {6}
> > \location {1,8}
> > \shape {sub procedure}
> > \text {Start distance}
> > \connection [bt] {7}
> > \connection [rr] {5}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {7}
> > \location {1,9}
> > \shape {wait}
> > \text {Reset}
> > \connection [bt] {8}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {8}
> > \location {1,10}
> > \shape {12}
> > \text {User}
> > \connection [bt] {9}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {9}
> > \location {1,11}
> > \shape {sub procedure}
> > \text {distance validation}
> > \connection [bt] {10}
> > \connection [rr] {8}
> >   \stopFLOWcell
> >   \startFLOWcell
> > \name {10}
> > \location {1,12}
> > \shape {action}
> > \text {LOW is placed}
> > \connection [lr] {1a}
> >   \stopFLOWcell
> > \stopFLOWchart
> >
> > \starttext
> >
> > Some text to start it all off
> >
> > \FLOWchart[place-st-low]
> >
> > Now we want some text s

Re: [NTG-context] Charts

2005-04-05 Thread David Waller
Hi Willi,
Thanks for your comments, unfortunately this still hasn't helped me. I
enclose below a simple sample that shows the problem. Any advice
please?

% interface=en output=pdftex

\usemodule[chart]
\setupFLOWcharts
  [x=1,
  y=1,
  nx=5,
  ny=9,
  dx=\bodyfontsize,
  dy=\bodyfontsize,
  width=6\bodyfontsize,
  height=4\bodyfontsize]

\setupFLOWsplit
[x=1,
y=1,
nx=5,
ny=8,
dx=1,
dy=1,
before=,
after=\page,
marking=on]

\startFLOWchart [place-st-low]
  \startFLOWcell
\name {start}
\location {1,1}
\shape {procedure}
\text {Straight}
\connection [bt] {1}
  \stopFLOWcell
  \startFLOWcell
\name {1}
\location {1,2}
\shape {wait}
\text {Place}
\connection [bt] {20}
  \stopFLOWcell
  \startFLOWcell
\name {20}
\location {1,3}
\shape {wait}
\text { point}
\connection [bt] {2}
  \stopFLOWcell  
  \startFLOWcell
\name {2}
\location {1,4}
\shape {12}
\text {User}
\connection [bt] {3}
  \stopFLOWcell
  \startFLOWcell
\name {3}
\location {1,5}
\shape {sub procedure}
\text {Start}
\connection [bt] {4}
\connection [rr] {2}
  \stopFLOWcell
  \startFLOWcell
\name {4}
\location {1,6}
\shape {decision}
\text {new}
\connection [bt] {5}
\connection [rl] {4a}
  \stopFLOWcell
  \startFLOWcell
\name {4a}
\location {2,6}
\shape {action}
\text {Automatically}
\connection [bt] {7}
  \stopFLOWcell
  \startFLOWcell
\name {5}
\location {1,7}
\shape {12}
\text {User}
\connection [bt] {6}
  \stopFLOWcell 
  \startFLOWcell
\name {6}
\location {1,8}
\shape {sub procedure}
\text {Start distance}
\connection [bt] {7}
\connection [rr] {5}
  \stopFLOWcell
  \startFLOWcell
\name {7}
\location {1,9}
\shape {wait}
\text {Reset}
\connection [bt] {8}
  \stopFLOWcell
  \startFLOWcell
\name {8}
\location {1,10}
\shape {12}
\text {User}
\connection [bt] {9}
  \stopFLOWcell 
  \startFLOWcell
\name {9}
\location {1,11}
\shape {sub procedure}
\text {distance validation}
\connection [bt] {10}
\connection [rr] {8}
  \stopFLOWcell
  \startFLOWcell
\name {10}
\location {1,12}
\shape {action}
\text {LOW is placed}
\connection [lr] {1a}
  \stopFLOWcell
\stopFLOWchart

\starttext

Some text to start it all off

\FLOWchart[place-st-low]

Now we want some text so that it looks like their is actually some
more text at the end.

\stoptext

Thanks
David Waller


On Apr 4, 2005 9:47 PM, Willi Egger <[EMAIL PROTECTED]> wrote:
> Hi David,
> 
> If I remember correctly one should not use the \maxwidth option.
> Personally I have at this moment work under hand using the following setup:
> 
> \setupFLOWcharts
>  [x=1,
>  y=1,
>  nx=5,
>  ny=11,
>  dx=\bodyfontsize,
>  dy=\bodyfontsize,
>  width=6\bodyfontsize,
>  height=4\bodyfontsize]
> 
> \setupFLOWsplit
>[x=1,
>y=1,
>nx=5,
>ny=10,
>dx=1,
>dy=1,
>before=,
>after=\page,
>marking=off]
> 
> This works perfectly even with charts consuming multiple pages.
> 
> Kind regards Willi
> 
> David Waller wrote:
> > Hello,
> > I am using the charts module as part of context to produce flowcharts
> > and I am having problems when the flowchart goes above a page in that
> > I can't get the system to automatically split the chart.
> > I have the following setup commands in my context file
> >
> > \usemodule[chart]
> > \setupFLOWcharts[maxwidth=\textwidth, nx=4]
> > \setupFLOWsplit[ny=9, before=, after=\page]
> >
> > based upon the manual. I then use the command
> > \FLOWcharts [bigchart]
> >
> > later in the document and the flowchart does not split, instead it
> > runs off the bottom of the page. I have also tried using \splitfloat
> > with no success either.
> >
> > I am running
> >  TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
> >
> > Kpathsea released!
> >texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
> >texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
> >tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2c 7.5.3)
> >context : ver: 2005.03.16
> >cont-en : ver: 2005.03.16  fmt: 2005.3.20  mes: english
> >cont-cz : ver: 2005.03.16  fmt: 2005.3.20  mes: english
> >cont-de : ver: 2005.03.16  fmt: 2005.3.20  mes: english
> >cont-it : ver: 2005.03.16  fmt: 2005.3.20  mes: english
> >cont-nl : ver: 2005.03.16  fmt: 2

[NTG-context] Charts

2005-04-04 Thread David Waller
Hello,
I am using the charts module as part of context to produce flowcharts
and I am having problems when the flowchart goes above a page in that
I can't get the system to automatically split the chart.
I have the following setup commands in my context file

\usemodule[chart]
\setupFLOWcharts[maxwidth=\textwidth, nx=4]
\setupFLOWsplit[ny=9, before=, after=\page]

based upon the manual. I then use the command
\FLOWcharts [bigchart]

later in the document and the flowchart does not split, instead it
runs off the bottom of the page. I have also tried using \splitfloat
with no success either.

I am running
 TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005

Kpathsea released!
   texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2c 7.5.3)
   context : ver: 2005.03.16
   cont-en : ver: 2005.03.16  fmt: 2005.3.20  mes: english
   cont-cz : ver: 2005.03.16  fmt: 2005.3.20  mes: english
   cont-de : ver: 2005.03.16  fmt: 2005.3.20  mes: english
   cont-it : ver: 2005.03.16  fmt: 2005.3.20  mes: english
   cont-nl : ver: 2005.03.16  fmt: 2005.3.20  mes: dutch
   cont-ro : ver: 2005.03.16  fmt: 2005.3.20  mes: dutch
   cont-uk : ver: 2005.03.16  fmt: 2005.3.20  mes: dutch

Any help please

Thanks
Dave Waller
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \newbibfield[help!] : Very quick question.

2005-03-31 Thread David Wooten
Greetings all,
In working with the bib module, I've been trying to understand the 
addition of a field. There is a "\newbibfield" command, but it is not 
entirely clear where to declare it. E.g., I want to have a field called 
"yearnote". If I place this in the list of commands in the t-bib.tex 
file, and call for it with "\insertyearnote" in the 
\setuppublicationlayout, it works perfectly. But declaring 
\newbibfield[yearnote] yields me an "undefined control sequence". Is 
there a special place to declare the latter? — I've tried in my current 
file, before and after \starttext, in the .bbl file, before and after 
\setuppublicationlist… no luck!

Regards,
David
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread David Arnold
Gerben, Again, thanks for all you do. Here's a Fourier approximation of 
a square wave. Again, I compiled this in Texshop so I know it works.

%verbatimtex
% \input mtplain
% \MTMI{8pt}{6pt}{5pt}
% \MTSY{8pt}{6pt}{5pt}
% \MTEX{8pt}
% \MathRoman{tir}{8pt}{6pt}{5pt}
% \MathBold{tib}{8pt}{6pt}{5pt}
%etex
%Input Context macros
input mp-tool
%define ytick
 vardef ytick(expr pos)=
  path p;
  p:=(-2,0)--(2,0);
  draw p shifted pos;
 enddef;
%define xtick
 vardef xtick(expr pos)=
  path p;
  p:=(0,-2)--(0,2);
  draw p shifted pos;
 enddef;
%define pi
 pi:=3.14159;
%define cosine in radians
 vardef cos(expr x)=
  cosd(x*180/pi)
 enddef;
%define sine in radians
 vardef sin(expr x)=
  sind(x*180/pi)
 enddef;
%hyperbolic sine
 vardef sinh(expr x)=
  (exp(x)-exp(-x))/2
 enddef;
beginfig(1);
%enter number of terms
 numeric N;
 N=6;
%define L
 numeric L;
 L:=pi;
%define a_0
 ao:=1;
%define a_n
 vardef a(expr n)=
  2*sin(n*pi/2)/(n*pi)
 enddef;
%define b_n
 vardef b(expr n)=
  0
 enddef;
%initialize scale
 numeric ux, uy;
 pi*ux=2in; 1.5*uy=2in;
%draw axes
 drawarrow (0,0)--(3.5ux,0);
 drawarrow (0,0)--(0,1.5uy);
%label axes
 label.rt(btex $x$ etex, (3.5ux,0));
%tick marks
 xtick((pi*ux,0));
 label.bot(btex $\pi$ etex, (pi*ux,0));
 ytick((0,1*uy));
 label.lft(btex $1$ etex, (0,1*uy));
%draw the function in black
 draw (0,1uy)--((pi/2)*ux,1uy);
%draw Fourier approximation in cyan
 path p;
 numeric x, y;
 x:=0;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=(x,y);
 for x=0 step .1 until pi:
  y:=ao/2;
  for k=1 step 1 until N:
   y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
  endfor;
  p:=p--(x,y);
 endfor;
 x:=pi;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=p--(x,y);
 p:=p xyscaled(ux,uy);
 draw p withcolor cyan;
endfig;
beginfig(0);
%enter number of terms
 numeric N;
 N=6;
%define L
 numeric L;
 L:=pi;
%define a_0
 ao:=1;
%define a_n
 vardef a(expr n)=
  2*sin(n*pi/2)/(n*pi)
 enddef;
%define b_n
 vardef b(expr n)=
  0
 enddef;
%initialize scale
 numeric ux, uy;
 6*pi*ux=2in; 1.5*uy=2in;
%draw axes
 drawdblarrow (-3.5*pi*ux,0)--(3.5*pi*ux,0);
 drawarrow (0,0)--(0,1.5uy);
%label axes
 label.rt(btex $x$ etex, (3.5*pi*ux,0));
%tick marks
 xtick((pi*ux,0));
 xtick((2*pi*ux,0));
 xtick((3*pi*ux,0));
 label.bot(btex $3\pi$ etex, (3*pi*ux,0));
 xtick((-pi*ux,0));
 xtick((-2*pi*ux,0));
 xtick((-3*pi*ux,0));
 label.bot(btex $-3\pi$ etex, (-3*pi*ux,0));
 ytick((0,1*uy));
 label.lft(btex $1$ etex, (0,1*uy));
%draw the function in black
 path q;
 q:=(-pi/2,1)--(pi/2,1);
 q:=q xyscaled(ux,uy);
 draw q;
 draw q shifted (2*pi*ux,0);
 draw q shifted (-2*pi*ux,0);
%draw Fourier approximation in cyan
 path p;
 numeric x, y;
 x:=-3*pi;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=(x,y);
 for x=-3*pi step .1 until 3*pi:
  y:=ao/2;
  for k=1 step 1 until N:
   y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
  endfor;
  p:=p--(x,y);
 endfor;
 x:=3*pi;
 y:=ao/2;
 for k=1 step 1 until N:
  y:=y+a(k)*cos(k*pi*x/L)+b(k)*sin(k*pi*x/L);
 endfor;
 p:=p--(x,y);
 p:=p xyscaled(ux,uy);
 draw p withcolor cyan;
endfig;
end;
On Mar 26, 2005, at 3:19 PM, Gerben Wierda wrote:
I am trying to learn metapost/fun, inline in ConTeXt source. Some 
basic things are clear, but now the issue is metapost itself.

For instance, I would like to plot a Fourier approximation of a block 
function.

For instance, I would like to plot a gaussian spread.
I am looking for examples on how to do this. I need to do a bit of 
programming here and these are my initial projects.

Thanks in advance,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] OT: looking for metapost/fun examples

2005-03-26 Thread David Arnold
Gerben,
I am so happy I can contribute as a way of thanking you for all the 
work that you've done for us. Thanks. Here, try this one, which uses an 
RK4 routine. I just tried it out in Texshop, so I know they both 
compile.

%This file creates two figures associated with the
%system x'=f(x,y), y'=g(x,y)
%1. Plots the graphs of x(t) and y(t)
%2. Plots the graph of (x(t),y(t)) in the phase plane.
%verbatimtex
%\input mtplain
%etex
%Generate standard eps
prologues:=2;
beginfig(0);
%Place RHS of x'=f(t,x,y) here
 def fxy(expr t, x, y)=
  (0.4-0.01*y)*x
 enddef;
%Place RHS of y'=g(t,x,y) here
 def gxy(expr t, x, y)=
  (-0.3+0.005*x)*y
 enddef;
%Declare some variables
 path q, trajx, trajy;
 pair L, R, B, T, xt, yt;
 numeric sx[], sy[];
%Initialize clipping window
 a:=0; b:=40;   %left and right of viewing rectangle
 c:=0; d:=150;  %bottom and top of viewing rectangle
%Initialize timespan
 tstart:=a;
 tstop:=b;
%Initialize number of points to be plotted
 N:=500;
%Calculate time increment dt for Euler's method
 dt:=(tstop-tstart)/N;
%Scaling factors for horizontal and vertical axes. Note that this 
produces
%an image that is 2 inches by 2 inches.
 (b-a)*ux=1.75in;
 (d-c)*uy=1.75in;

%Clipping boundary
 q=(a,c)--(b,c)--(b,d)--(a,d)--cycle;
%Use Runge-Kutta4 to create path (t,x(t))
%Choose initial condition
 t:=tstart;
 x:=40;
 y:=20;
 trajx:=(t,x);
 forever:
  sx1:=fxy(t,x,y);
  sy1:=gxy(t,x,y);
  sx2:=fxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2));
  sy2:=gxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2));
  sx3:=fxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2));
  sy3:=gxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2));
  sx4:=fxy((t+dt),(x+dt*sx3),(y+dt*sy3));
  sy4:=gxy((t+dt),(x+dt*sx3),(y+dt*sy3));
  x:=x+dt*(sx1+2*sx2+2*sx3+sx4)/6;
  y:=y+dt*(sy1+2*sy2+2*sy3+sy4)/6;
  t:=t+dt;
  trajx:=trajx..(t,x);
  exitif ((t>tstop) or (t>b) or (xd));
 endfor;
%Use Runge-Kutta4 to create path (t,y(t))
%Choose initial condition
 t:=tstart;
 x:=40;
 y:=20;
 trajy:=(t,y);
 forever:
  sx1:=fxy(t,x,y);
  sy1:=gxy(t,x,y);
  sx2:=fxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2));
  sy2:=gxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2));
  sx3:=fxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2));
  sy3:=gxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2));
  sx4:=fxy((t+dt),(x+dt*sx3),(y+dt*sy3));
  sy4:=gxy((t+dt),(x+dt*sx3),(y+dt*sy3));
  x:=x+dt*(sx1+2*sx2+2*sx3+sx4)/6;
  y:=y+dt*(sy1+2*sy2+2*sy3+sy4)/6;
  t:=t+dt;
  trajy:=trajy..(t,y);
  exitif ((t>tstop) or (t>b) or (yd));
 endfor;
%Draw the paths x(t) and y(t) and clip them to bounding box
 draw trajx xscaled ux yscaled uy withcolor red;
 draw trajy xscaled ux yscaled uy withcolor red dashed evenly;
 clip currentpicture to (q xscaled ux yscaled uy);
%Label graph x(t) and initial condition
 len:= 0.65*(length trajx);
 xt:=point len of trajx;
 label.urt(btex $\scriptstyle x(t)$ etex, (xt xscaled ux yscaled uy));
%Label graph y(t) and initial condition
 len:= 0.5*(length trajy);
 yt:=point len of trajy;
 label.lrt(btex $\scriptstyle y(t)$ etex, (yt xscaled ux yscaled uy));
%Initialize left and right endpoints on time-axis
 L=(a*ux,0);R=(b*ux,0);
%Draw and label t-axis
 drawarrow L--R;
 label.rt(btex $\scriptstyle t$ etex,(b*ux,0));
%Initialize bottom and top endpoints on time-axis
 B=(0,c*uy);T=(0,d*uy);
%Draw and label vertical axis
 drawarrow B--T;
 label.lft(btex $\scriptstyle 0$ etex, B);
 label.lft(btex $\scriptstyle 150$ etex, T);
endfig;
beginfig(2);
%Make some variables local
 save ux, uy;
%Place RHS of x'=f(t,x,y) here
 def fxy(expr t, x, y)=
  (0.4-0.01*y)*x
 enddef;
%Place RHS of y'=g(t,x,y) here
 def gxy(expr t, x, y)=
  (-0.3+0.005*x)*y
 enddef;
%Declare some variables
 path q, trajxy;
 pair L, R, B, T;
%Initialize clipping window
 a:=0; b:=150;   %left and right of viewing rectangle
 c:=0; d:=100;  %bottom and top of viewing rectangle
%Initialize timespan
 tstart:=a;
 tstop:=b;
%Initialize number of points to be plotted
 N:=500;
%Calculate time increment dt for Euler's method
 dt:=(tstop-tstart)/N;
%Scaling factors for horizontal and vertical axes. Note that this 
produces
%an image that is 2 inches by 2 inches.
 (b-a)*ux=1.75in;
 (d-c)*uy=1.75in;

%Clipping boundary
 q=(a,c)--(b,c)--(b,d)--(a,d)--cycle;
%Use Runge-Kutta4 to create path (x(t),y(t))
%Choose initial condition
 t:=tstart;
 x:=40;
 y:=20;
 trajxy:=(x,y);
 forever:
  sx1:=fxy(t,x,y);
  sy1:=gxy(t,x,y);
  sx2:=fxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2));
  sy2:=gxy((t+dt/2),(x+dt*sx1/2),(y+dt*sy1/2));
  sx3:=fxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2));
  sy3:=gxy((t+dt/2),(x+dt*sx2/2),(y+dt*sy2/2));
  sx4:=fxy((t+dt),(x+dt*sx3),(y+dt*sy3));
  sy4:=gxy((t+dt),(x+dt*sx3),(y+dt*sy3));
  x:=x+dt*(sx1+2*sx2+2*sx3+sx4)/6;
  y:=y+dt*(sy1+2*sy2+2*sy3+sy4)/6;
  t:=t+dt;
  trajxy:=trajxy..(x,y);
  exitif ((t>tstop) or (t>b) or (xb) or (yd));
 endfor;
%Draw the paths x(t) and y(t) and clip them to bounding box
 draw trajxy xscaled ux yscaled uy withcolor red;
 clip currentpicture to (q xscaled ux yscaled uy);
%Initialize left and right endpoints on x-axis
 L=(a*ux,0);R=(b*ux,0);
%Draw and label x-axi

[NTG-context] Font encoding: \uppercased

2005-03-25 Thread David Wooten
Greetings all,

Taco mentioned the command \uppercased{to get all uppercase letters}, and it works just fine…until I try to use my self-installed fonts. The quirks come up with diacritics, and this leads me to believe that there is an [encoding] or [regime] issue here, as I had similar issues earlier with the font in general. For example, with \uppercased{Krübel} I receive: KRüBEL. 

Do I need to "make a statement of my intent" in a typescript file or somewhere else to resolve this?

Kind regards,
David___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib: potential range of bibliography styles?

2005-03-25 Thread David Wooten
Great, that does the trick. Another quickie:

This bib style demands that the first author/editor is "invertedauthor", while the subsequent authors/editors are "normalauthor", e.g.:

WOOTEN, David and Charles M. SCHULZ and Kris KRINGLE.
2005.  Adventures in Babysitting, etc.

Is there currently the possibility of distinguishing between the first & subsequent authors? (From my preliminary investigations it looks like all authors automatically follow the declared style.)

Regards,
David

P.S. This is a lot more fun than preparing for my exams!

On Mar 24, 2005, at 10:22 AM, Taco Hoekwater wrote:

David Wooten wrote:
Hm. A quick question—is there a way to call "all true upper case" (instead of {\sc small caps})? I haven't been able to track this down in the usual places. For myself the small caps are preferable, but they're not "officially sanctioned" :).

I have to guess a bit on what the 'official' ConTeXt way is to
get all uppercase text, but I think this is it:

\uppercased{all caps}

Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib: potential range of bibliography styles?

2005-03-24 Thread David Wooten
Hm. A quick question—is there a way to call "all true upper case" 
(instead of {\sc small caps})? I haven't been able to track this down 
in the usual places. For myself the small caps are preferable, but 
they're not "officially sanctioned" :).

Regards,
David
On Mar 23, 2005, at 12:43 PM, Taco Hoekwater wrote:
[EMAIL PROTECTED] wrote:
Aside from all the niggling details (which I'm sure could be worked 
out), is this kind of layout in general possible—all citations going 
by year underneath a single instance of the author? …or am I doomed 
to forever make these by hand? ;)
I'd say it is doable, but not trivial. ;-)
You need to use \setupbibtex[sort=author], of course.  I you can
make it come out like below (all that should be doable using just
the documented features of the bib module), then I will help you
'compress' the repeating authors afterwards, ok?
  PEIRCE, Charles S.
  1859. "An Essay on the Limits of Religious Thought Written to Prove 
That We
  Can Reason Upon the Nature of God", MS 53, in W1:37-40

  PEIRCE, Charles S.
  1982. Writings of Charles S. Peirce: a Chronological Edition, ed. 
Max Fisch,
  Peirce Edition Project. Five volumes. (Bloomington: Indiana 
University Press, 1982-98).

Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: AW: [NTG-context] TOC indenting

2005-03-18 Thread David Arnold
Michael,
Perfect!
Thanks.
On Mar 18, 2005, at 1:28 AM, Michael Fuchs wrote:
Hi David!
See the following example for a TOC where sections and
subsections are indented.
Regards
Michael
Example:
--
\setuplist
[chapter]
[before=\blank,style=bold]
\setuplist
[section]
[margin=2em, width=3em]
\setuplist
[subsection]
[margin=4em, width=3em,distance=1em]
\setupcombinedlist
[content]
[alternative=c, aligntitle=no, width=2em]
\starttext
\placecontent
[level=subsection,criterium=all]
\chapter{One}
\section{One- one}
\subsection{One- two}
\section{Two- one}
\subsection{Two- two}
\chapter{Two}
\section{One- one}
\subsection{One- two}
\section{Two- one}
\subsection{Two- two}
\stoptext


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von David Arnold
Gesendet: Donnerstag, 17. März 2005 23:54
An: Context Mailing List List
Betreff: [NTG-context] TOC indenting
All,
In my table of contents, I have:
\definecombinedlist
[content][section,subsection]
\setupcombinedlist
[content]
[alternative=c,aligntitle=yes,width=2.5em]
How do I set up my TOC so that subsections are indented slightly more
than sections in which they are contained?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] TOC indenting

2005-03-17 Thread David Arnold
All,
In my table of contents, I have:
\definecombinedlist
[content][section,subsection]
\setupcombinedlist
[content]
[alternative=c,aligntitle=yes,width=2.5em]
How do I set up my TOC so that subsections are indented slightly more 
than sections in which they are contained?

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Suppress numbering of figures

2005-03-17 Thread David Arnold
Michael,
Perfect! Thanks.
On Mar 17, 2005, at 1:20 PM, Michael Guravage wrote:

All,
I have:
\placefigure
[here][]
{Mary Glenn}{\externalfigure[MaryGlenn3.jpg][width=0.5\makeupwidth]}
I'd like the figure to float with the caption, but I don't want the
Figure 1, Figure 2, etc. That is, I just want the caption under the
figure.
How can I modify to accomplish this?
Hello David,
To obviate figure numbers use the setupcaptions command, e.g.
\setupcaptions [number=no]
You can find a complete description of the command with texshow web on 
the ConTeXt wiki: <http://texshow.contextgarden.net>, or on page 224 
of the context manual.

Cheers,
Michael
-
  Michael A. Guravage
Mijndensedijk 11a | 3632 NT Loenen aan de Vecht | The Netherlands
tel: +31 (0)294233682 | gsm: +31 (0)621431435
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Suppress numbering of figures

2005-03-17 Thread David Arnold
All,
I have:
\placefigure
[here][]
{Mary Glenn}{\externalfigure[MaryGlenn3.jpg][width=0.5\makeupwidth]}
I'd like the figure to float with the caption, but I don't want the 
Figure 1, Figure 2, etc. That is, I just want the caption under the 
figure.

How can I modify to accomplish this?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Initial Font Installation Question (Mac)

2005-03-12 Thread David Wooten
On Mar 12, 2005, at 3:58 PM, Adam Lindsay wrote:
David Wooten said this at Sat, 12 Mar 2005 15:07:25 -0800:
Hmm. What do your typescript definitions look like, then? Does 
ConTeXt
know you're using 8r as the encoding for the font?
I believe so. An example from the typescript file:
\usetypescriptfile [type-buy]
\loadmapfile [8r-stf-andulka-book.map]
\starttypescript [serif] [andulka-book] [name]
\definefontsynonym [Serif]   [Andulka-Book]
\stoptypescript
\starttypescript [serif] [andulka-book] [8r]
\definefontsynonym [Andulka-Book] [8r-andulkabook]
Ah-ha.
ConTeXt isn't *that* clever about names. At the end of the font synonym
chain, you need to associate the font name with an encoding explicitly.
The typescript names are just symbols (for the most part) that signal 
to
ConTeXt which groups of definitions to use.

Therefore, the above line should be:
 \definefontsynonym [Andulka-Book] [8r-andulkabook] [encoding=8r]
Bravo, that does it. Many thanks, Adam.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Initial Font Installation Question (Mac)

2005-03-12 Thread David Wooten
On Mar 12, 2005, at 1:49 PM, Adam Lindsay wrote:
David Wooten said this at Fri, 11 Mar 2005 15:40:14 -0800:
That is, when I try to use
any special glyph, be it an accented character of any kind, or e.g. an
eth.
Hi David,
I took a look at your file (off-list), and it looks like you're using 
the
8r encoding. Interesting that you bring the "eth" up, because that
character doesn't exist in the 8r encoding.
Yes, that's my error—let's change that to thorn :)
8r encoding it is.
The result of something like \"a (or \"{a}) is _a_ without the
diacritic.
Hmm. What do your typescript definitions look like, then? Does ConTeXt
know you're using 8r as the encoding for the font?
I believe so. An example from the typescript file:
\usetypescriptfile [type-buy]
\loadmapfile [8r-stf-andulka-book.map]
\starttypescript [serif] [andulka-book] [name]
\definefontsynonym [Serif]   [Andulka-Book]
\stoptypescript
\starttypescript [serif] [andulka-book] [8r]
\definefontsynonym [Andulka-Book] [8r-andulkabook]
\stoptypescript
Curiously (to me, at least:), if I enter the actual glyph:
ä, it gives me the character I need…but only for a few runs!
Okay, that now becomes an interaction between regime (input file
encoding) and the rest. It could be coincidence that ä is in the same
slot (228) with both regime and encoding. Which regime are you using? 
Are
you sure it lines up with the encoding in (say) TeXshop?
I use TextMate for the text editing, and it's currently saving in 
UTF-8. …this area of "regime and encoding" isn't very clear to me. That 
sounds like a clue.

Some trials evince an ff-ligature as the diacritic.
That's another data point pointing to the encoding not being in synch.
So. More input required, but right now I'm eyeing the encoding with 
suspicion.

adam
P.S. As a side point, Andulka does indeed look like a nice, sturdy,
legible text font. A bit like the free (but masterfully drawn) Charter,
but with a lot more personality.
Yes, I've grown fond of it, especially at a smaller size. Funny you 
should mention Charter in this regard, as it always had a certain 
appeal.

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] batch download from pragma

2005-03-11 Thread David Rogers
Idris Samawi Hamid wrote:

>Dear musketeers,
>
>How can I download all of the manuals and magazines from
>
>http://www.pragma-ade.com/overview.htm
>
>in batch, say, as a single zip file, or otherwise all at once? (I use 
>Windows for now). Is there an ftp site? Some
>other way (perhaps using wget.txt)?


Not certain if I'm a musketeer, but try this:

Download wget.txt to the directory where you want the files
cd to that directory
wget -Nxi wget.txt

David
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Initial Font Installation Question (Mac)

2005-03-11 Thread David Wooten
Greetings ConTeXters
I'm back to ask another question:
After an initial successful installation of the purchased fonts, I've 
come to find that there is a serious quirk. That is, when I try to use 
any special glyph, be it an accented character of any kind, or e.g. an 
eth. The result of something like \"a (or \"{a}) is _a_ without the 
diacritic. Curiously (to me, at least:), if I enter the actual glyph: 
ä, it gives me the character I need…but only for a few runs! After 
adding a couple more of such "alternative" glyphs, it starts to show 
gibberish. Some trials evince an ff-ligature as the diacritic. Errors 
in the mapping/virtual font/…?

Again I hope to save myself some time by asking to be pointed in the 
right direction, as my initial searches haven't really helped.

Kind Regards,
David Wooten
On Feb 21, 2005, at 1:17 AM, Adam Lindsay wrote:
Thomas A.Schmitz said this at Mon, 21 Feb 2005 10:01:50 +0100:
Just a quick reply:
having the afm is already very good. The file without an extension
looks suspiciously like a Mac font resource. Can you try running the
utility "fondu" on it (from the command line)? That will usually
produce the pfbs (very likely, there's more than one: roman, italics,
bold ...). Texfont, btw, can equally well work with truetype fonts, so
if you have a proper tryetype font with extension .ttf. you might as
well use this. texfont will produce a map entry that you will have to
modify a bit (so it points to a .ttf instead of the default .pfb), but
that's not too difficult. As to names: don't bother, ConTeXt is happy
with whatever name you throw at it.
Only a couple things to add:
When fondu generates the .pfb file, copy the .afm to share the new
(probably longer) filename.
Texfont on MacOSX trips on capital letter extensions: make sure they're
uniformly lower case.
If fondu fails you (it hasn't failed me yet), there's also t1unmac 
(lcdf.org).

And if texfont installation fails or inexplicably stalls, you might 
need
to go in and truncate long (255+ character) lines by manually editing 
the
text file. I've always found these to be comment/copyright lines, so
you're not hurting anything by doing so.

You lucky so-and-so for getting Andulka!
adam
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pdf bookmarks

2005-03-08 Thread David Waller
Hello,

I am trying to produce bookmarks in the PDF file produced with context. 

 I can produce bookmarks but I am unable to get any hierarchy of bookmarks
such that chapters can just be displayed initially and then the
sections open up.

 I am able to do this in latex, with hyperref, and am looking for a
list of commands, or guidance, which would allow me to do the same in
context.

Thanks

 

David Waller
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt-updater i-Package updated

2005-03-04 Thread David Wooten
On Mar 4, 2005, at 5:49 AM, Mark Smith wrote:
Steffen Wolfrum wrote:
Uwe Koloska <[EMAIL PROTECTED]> wrote:
 Let's count the guys that use OSX with ConTeXt (and possibly
 i-Packages):
 -- One --

-- Two --
 -- Three --
-- Four --
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] csr fonts in last ConTeXt

2005-03-04 Thread David Antos
On Fri, Mar 04, 2005 at 03:18:34PM +0100, Michal Kvasnička wrote:
> A couple of days ago I have reinstalled my computer and installed the 
> newest ConTeXt as well (TeXExec 5.2.4, ConTeXt  ver: 2005.01.31). I 
> found that it could work under SuSE Linux 9.2 -- teTeX distribution. But 
> I also found that there is a change with csr fonts -- it is (at least in 
> the Czech interface) substituted with cmr fonts. What's the reason? How 
> could I change it againt to csr? (cmr fonts don't have accented letters.)

Hello,

quick and dirty way may be \setupbodyfont[csr] in the document.

Systematically, my (older) cont-cz.tex contains
\setupbodyfont [csr,ams,rm,12pt]
What does your cont-cz.tex set?

D.A.

-- 
A dissertation thesis should bring some new knowledge to the mankind.
-- Petr Sojka
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lettrine.sty, but not LaTeX

2005-02-25 Thread David Wooten
Hmm, this is great.
However, I can't seem to get it to accept an image (Image=true or 
Image=yes). Anyone else have some luck?

On Feb 25, 2005, at 2:28 PM, Taco Hoekwater wrote:
Sorrry about that, last-minute change :-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Initial Font Installation Question (Mac)

2005-02-24 Thread David Wooten
Thanks so much!
After a fair amount of tinkering & testing, I've got it worked out.
Regards,
David Wooten
On Feb 21, 2005, at 1:17 AM, Adam Lindsay wrote:
Thomas A.Schmitz said this at Mon, 21 Feb 2005 10:01:50 +0100:
Just a quick reply:
having the afm is already very good. The file without an extension
looks suspiciously like a Mac font resource. Can you try running the
utility "fondu" on it (from the command line)? That will usually
produce the pfbs (very likely, there's more than one: roman, italics,
bold ...). Texfont, btw, can equally well work with truetype fonts, so
if you have a proper tryetype font with extension .ttf. you might as
well use this. texfont will produce a map entry that you will have to
modify a bit (so it points to a .ttf instead of the default .pfb), but
that's not too difficult. As to names: don't bother, ConTeXt is happy
with whatever name you throw at it.
Only a couple things to add:
When fondu generates the .pfb file, copy the .afm to share the new
(probably longer) filename.
Texfont on MacOSX trips on capital letter extensions: make sure they're
uniformly lower case.
If fondu fails you (it hasn't failed me yet), there's also t1unmac 
(lcdf.org).

And if texfont installation fails or inexplicably stalls, you might 
need
to go in and truncate long (255+ character) lines by manually editing 
the
text file. I've always found these to be comment/copyright lines, so
you're not hurting anything by doing so.

You lucky so-and-so for getting Andulka!
adam
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Initial Font Installation Question (Mac)

2005-02-21 Thread David Wooten
Greetings all,
I've been having a lot of fun struggling with the installation of a 
newly purchased font, and wanted to double check a preliminary question 
before I give in and ask a more thorough question ;)

I'm working with Mac OS X, so I bought a font-set with both Mac TTF and 
Postscript files. The Postscript folders have 2 types of file for each 
fontname: .afm and another without a suffix. The names also have 
uppercase letters, such as AndulBooBol (a.k.a. Andulka Book Bold).

For the texfont script, it apparently needs the .afm files and .pfb 
files. Thus:

1) Are these non-suffixed files the .pfb files in question? If so, 
should I rename (add .pfb to) them before trying to install them? (I 
could convert the TTF files to .pfb?)

2) Should I take away the UpperCaseLettering as well? Rename them to 
something more Berry-like?

In fact, I've tried these things with no success, but before I spell 
out the details of my failure I thought I would get this straight.

Kind regards,
David Wooten
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib module: \cite with page numbers

2005-02-18 Thread David Munger
It works pretty well, thanks a lot!

David

Taco Hoekwater wrote :
> 
>\setupcite[author,year][left=,right=] % disable braces
>\def\citewithpages[#1]#2{% new command
>  (\cite[author][#1], \cite[year][#1], #2)%
>}
> 
>\citewithpages[davidson2001]{pp. 163-170}


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module: \cite with page numbers

2005-02-16 Thread David Munger
Hello,

Is it possible to get page numbers (or a chapter number) displayed in a
citation, e.g.

\cite[authoryears]{pp. 163-170}[davidson2001]

and

see \cite[authoryear]{chap. 3}[davidson2001]

would format as:

(Davidson, 2001, pp. 163-170)

and

see Davidson (2001) chap. 3


Thanks for any clue,

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Tex-Live bittorrent sites?

2005-02-09 Thread K. David Prince
If you want to try a bittorrent download, you have to have a client that 
runs on your O/S.  A good one to try is to download the current Knoppix 
ISO image.  It is by far an excellent way to share large files AND 
"server" load.  In this case, the "server" is all the other machines that 
have bits of the file you're downloading (and uploading).  I usually let 
it run until I've uploaded at least as much as I've downloaded.  Your 
client will show you the up/down load statistics real time.  -kdp

On Wed, 9 Feb 2005, Karl Berry wrote:
   Is there a bittorrent site for downloading the current version of
   texlive?
Not that I am aware of.  If you find one or can set one up, please email
[EMAIL PROTECTED] with the info.
For those who may not know -- Hans just asked me :) -- BitTorrent is a
peer-to-peer system that lets big files be downloaded in small pieces
from many different machines.  The client reassembles the pieces.  I
haven't used it myself, although I've heard some good things about it.
http://bittorrent.com/
karl
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Tex-Live bittorrent sites?

2005-02-08 Thread K. David Prince
Is there a bittorrent site for downloading the current version of texlive?
Dave
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ! Undefined control sequence.

2005-02-07 Thread K. David Prince
0.  I'm using Debian/Testing.
1.  Downloaded: context/current/cont-tmf.zip  \
the main CONTEXT distribution \
2005-02-03 15:19  2356473 
from

http://www.pragma-ade.com/download-1.htm
2.  Installed according to:
http://levana.de/context/
[EMAIL PROTECTED]:~/Projects/ConTeXt$ ./texversion.pl
TeXVersion 0.1 / Taco Hoekwater 2004
   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
   context : ver: 2005.01.31
   cont-en : ver: 2003.1.31  fmt: 2005.1.28  mes: english
[EMAIL PROTECTED]:~/Projects/ConTeXt$
3.  Created hello.tex:
\starttext
Hello World
\stoptext
4.  "texexec --pdf hello.tex"  generates errors:
[EMAIL PROTECTED]:~/Projects/ConTeXt/Play$ texexec --pdf hello.tex
Use of uninitialized value in string eq at-\ 
/opt/context/2005.01.31/bin/texexec line 344.  |  I fixed this
Use of uninitialized value in string eq at |  in the previous
/opt/context/2005.01.31/bin/texexec line 348.   > version, but I
Use of uninitialized value in string eq at |  didn't do it because
/opt/context/2005.01.31/bin/texexec line 348.  /  of the error below.

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
executable : pdfetex
format : cont-en
 inputfile : hello
output : pdftex
 interface : en
  current mode : none
   TeX run : 1
This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
entering extended mode
(./hello.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
ConTeXt  ver: 2003.1.31  fmt: 2005.1.28  int: english  mes: english
language   : language en is active

system : cont-new loaded
(/opt/context/2005.01.31/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
! Undefined control sequence.
\@@toks ->\everymathematics
\dodoappendtoks ->\dodoglobal \@@toks
  [EMAIL PROTECTED] [EMAIL PROTECTED] \the [EMAIL PROTECTED] \@@toks 
\the ...
l.299 \to \everymathematics

? x  <==I just bailed out here.  "hello.tex" runs fine under the old
version.
No pages of output.
Transcript written on hello.log.
   return code : 256
  run time : 2 seconds
total run time : 3 seconds
[EMAIL PROTECTED]:~/Projects/ConTeXt/Play$
Additional info on my setup:
[EMAIL PROTECTED]:~/Projects/ConTeXt/Play$ echo $PATH
/opt/context/2005.01.31/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[EMAIL PROTECTED]:~/Projects/ConTeXt/Play$
%%%
%%% KDP texmf.cnf Edits for ConTeXt upgrade
%%%
TEXMFCONTEXT = /opt/context/2005.01.31/texmf
TEXMF = 
{$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFOLDLOCAL,!!$VARTEXMF,!!$TEXMFCONTEXT,!!$TEXMFMAIN}
%%%
%%% End KDP ConTeXt Edits.
%%%
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Error messages with first attempts to use ConTeXt

2005-02-06 Thread David Wooten
Greetings all,
I'm a LaTeXer who is intrigued by ConTeXt. I'm running Mac OS 10.3, 
using Gerben Wierda's i-Installer, and have been receiving some error 
messages with my first attempts that a little searching-around haven't 
been clarified. Without the latest ConTeXt update from the i-Installer, 
for a file like:

\starttext
Hello there.
\stoptext
when run with texexec =
texexec Condy.tex
 TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004
executable : pdfetex
format : cont-en
 inputfile : Condy
output : standard
 interface : en
  current mode : none
   TeX run : 1
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
 (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
kpathsea: Running mktexfmt cont-en.fmt
fmtutil: no info for format `cont-en'.
Sorry, I can't find the format `cont-en.fmt'; will try `context.fmt'.
kpathsea: Running mktexfmt context.fmt
fmtutil: no info for format `context'.
I can't find the format file `context.fmt'!
   return code : 256
  run time : 3 seconds
total run time : 3 seconds
With the update, I get =
texexec Condy.tex
 TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
executable : pdfetex
format : cont-en
 inputfile : Condy
output : standard
 interface : en
  current mode : none
   TeX run : 1
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
 (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./Condy.tex
ConTeXt  ver: 2001.11.13  fmt: 2005.2.5  int: english  mes: english
language   : language en is active
system : cont-new loaded
(/Users/wooten/Library/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 473] \ifcsname
)
system : cont-old loaded
(/Users/wooten/Library/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/Users/wooten/Library/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
bodyfont   : 12pt rm is loaded
language   : patterns 2-en-2 2-uk-2 2-de-2 2-fr-2 2-es-2 2-nl-2 
loaded
specials   : tex,postscript,rokicki loaded
system : Condy.top loaded
(./Condy.top
! Undefined control sequence.
 \c!directory
={/Users/wooten/}
\xprocesscommaitem #1,#2->\if ]#1
 \expandafter \gobbleoneargument \else 
\p!do...

\xdogetparameters #1]->\xprocesscommaitem #1,]
  ,[EMAIL PROTECTED]@
\dosetupsystem [#1]->\getparameters [\??sv ][#1]
\setuprandomize 
[\@@svwillek...
l.3 \setupsystem[\c!directory={/Users/wooten/}]

—
I'd appreciate any advice you can give, and perhaps I won't even have 
to eat crow ;)

David Wooten
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] "uninitialized value"

2005-02-03 Thread K. David Prince
I dare!  Thanks, Taco.  -kdp
On Thu, 3 Feb 2005, Taco Hoekwater wrote:
K. David Prince wrote:
What am I missing?
Dave
Your system is fine, so no worries. Those warning lines are annoying
but harmless. They'll be fixed in the next release, but in the mean
time, you can change lines 344 and 348 of texexec.pl yourself, if you
dare:
$ diff texexec.pl.old texexec.pl
344c344
< if ($ENV{openin_any} eq 'p') {
---
if (defined $ENV{openin_any} && $ENV{openin_any} eq 'p') {
348c348,349
< if (($ENV{shell_escape} eq 'f') || ($ENV{SHELL_ESCAPE} eq 'f')) {
---
if ((defined $ENV{shell_escape} && $ENV{shell_escape} eq 'f') ||
(defined $ENV{SHELL_ESCAPE} && $ENV{SHELL_ESCAPE} eq 'f')) {

Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] "uninitialized value"

2005-02-02 Thread K. David Prince
I'm following the "Install ConTeXt" instructions on 
.  I'm installing this on a Debian Testing 
machine.  I've downloaded and installed version 2005.01.31.  I just ran 
"texversion.pl" and get:

[EMAIL PROTECTED]:~/Projects/ConTeXt$ ./texversion.pl
Use of uninitialized value in string eq at /opt/context/2005.01.31/bin/texexec 
line 344.
Use of uninitialized value in string eq at /opt/context/2005.01.31/bin/texexec 
line 348.
Use of uninitialized value in string eq at /opt/context/2005.01.31/bin/texexec 
line 348.
TeXVersion 0.1 / Taco Hoekwater 2004
   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
Use of uninitialized value in string eq at /opt/context/2005.01.31/bin/texexec 
line 344.
Use of uninitialized value in string eq at /opt/context/2005.01.31/bin/texexec 
line 348.
Use of uninitialized value in string eq at /opt/context/2005.01.31/bin/texexec 
line 348.
   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
   context : ver: 2005.01.31
   cont-en : ver: 2003.1.31  fmt: 2005.1.28  mes: english
[EMAIL PROTECTED]:~/Projects/ConTeXt$
What am I missing?
Dave
P.S.
[EMAIL PROTECTED]:~/$ echo $PATH
/opt/context/2005.01.31/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[EMAIL PROTECTED]:~/$
[EMAIL PROTECTED]:/etc/texmf$ grep CONTEXT texmf.cnf
TEXMFCONTEXT = /opt/context/2005.01.31/texmf
TEXMF = 
{$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFOLDLOCAL,!!$VARTEXMF,!!$TEXMFCONTEXT,!!$TEXMFMAIN}
[EMAIL PROTECTED]:/etc/texmf$
kdp
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Czech compound word handling

2005-02-02 Thread David Antos
On Wed, Feb 02, 2005 at 04:19:51PM +0100, Vit Zyka wrote:
> This mechanism is already present in the ConTeXt: use |_| like 
> "bude|_|li". Unfortunately, AFAIK there are two drawbacks:

Hello,

this ispired an idea: would it be possible to make the characters
configurable? I.e. to have in fact || configurable for pre-break,
post-break, and no-break character? I think it might be generic enough
for most languages.

Say, we would have
\setuphyphenmark[.. = ..]
sign ... (for backwards compatibility, would set up all the following)
presign ...
postsign ...
nosign ...

D.A.

-- 
I am not a researcher, I am a key researcher!
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Czech compound word handling

2005-02-02 Thread David Antos
On Wed, Feb 02, 2005 at 03:46:00PM +0100, Hans Hagen wrote:
> \en \dorecurse{100}{test||}test \endgraf
> \cz \dorecurse{100}{test||}test \endgraf

Wow, that's exactly what we need. I suggest to make this also
default setting for Czech.

Thank you,
D.A.

-- 
Jim Hacker: "Humphrey, do you see it as part of your job to help
Ministers make fools of themselves?"
Sir Humphrey: "Well, I never met one that needed any help."
-- Yes, Minister (The Right to Know)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Czech compound word handling

2005-02-02 Thread David Antos

Hello,

would it be possible to define || for compound words to act as
\discretionary{-}{-}{-}? In Czech, the hyphen for compound words should
be repeated in the following line.

Thanks,
D.A.

-- 
Try to remove the color-problem by restarting your computer several times.
-- Microsoft-Internet Explorer README.TXT
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Displayed math--vertical space

2005-02-01 Thread David Antos

Hello,

I started to typeset real math in ConTeXt :-) and the following issue
occurred in vertical positioning. I know about start/stopformula,
nevertheless I suppose that good old $$ should work, too.

\starttext
A short line followed by a formula
$$\bigcup_{1\le n}$$
a text follows in the same paragraph. The big cup is too
close to the text.

If a displayed formula has enough text above
$$\bigcup_{1\le n}$$
the problem does not appear at all. The vertical space around the formula
is very nice here.

The only difference is whether the line above the formula goes more to the
right than the beginning the formula.

\stoptext

Thanks,
D.A.

-- 
Jim Hacker: "Would you be surprised, for instance, if a British aircraft
carrier turned up in the Central African Republic?"
Sir Humphrey: "Well, I for one, Minister, would be very surprised; it's
a 1,000 miles inland."
-- Yes, Minister (The Whisky Priest)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib module problem

2005-01-25 Thread David Munger
Taco Hoekwater wrote :
> David Munger wrote:
> > The bib module won't complete the publications list when there is more
> > than one cite command. Try the following:
> 
> Works for me, so .. what versions are you using?

Ok. Here it is:


$ texexec --version

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
   context : ver: 2005.01.24
   cont-en : ver: 2005.01.24  fmt: 2005.1.25  mes: english


$ grep version= tex/context/bib/t-bib.tex
%Dversion=2005.01.04,

$ bibtex --version
BibTeX (Web2C 7.4.5) 0.99c
kpathsea version 3.4.5



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module problem

2005-01-25 Thread David Munger
The bib module won't complete the publications list when there is more
than one cite command. Try the following:


\usemodule[bib]

\startpublication[k=biskamp2003,t=inbook,
a={Biskamp},y=2003,n=1,s=Bis03]
\author[]{Dieter}[D.]{}{Biskamp}
\pubyear{2003}
\title{Magnetohydrodynamic turbulence}
\pubname{Cambridge University Press}
\stoppublication

\startpublication[k=sneyd1994,t=article,
a={Sneyd and Wang},y=1994,n=2,s=SW94]
\artauthor[]{A.~D.}[A.~D.]{}{Sneyd}
\artauthor[]{A.}[A.]{}{Wang}
\pubyear{1994}
\arttitle{Interfacial instability due to {MHD} mode coupling in
aluminium
  reduction cells}
\journal{J. Fluid Mech.}
\volume{263}
\pages{343-359}
\stoppublication


\starttext
See \cite[authoryear][biskamp2003]
and \cite[authoryear][sneyd1994].

\placepublications
\stoptext


You'll get no publication list.

Then comment out either of the \cite commands and you'll get the
single-publication list.

Thanks for any help.


Regards,

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New ConTeXt cz interface installation problem

2005-01-11 Thread David Antos
On Tue, Jan 11, 2005 at 12:41:14PM +0100, Hans Hagen wrote:
> the integration of czech/slovak patterns in tex live is a mess, and among 
> the reasons for problems you will find:
> 
> - files not in the right places (generic hyphen paths)
> - using non standard names (*hyphen where oithers use *hyph)
> - combined with a latex depency (in the *hyph ones)
> 
> in spite of what you may think, tex distributions are not upward 
> compatible, and fonts and patterns are among the troublemakers.
> 
> In your case: locate [cont-usr or so] where context tries to load czhyph 
> and replace that by czhyphen; same for sk* (so, contrary to other 
> languages, czech/slovak had the pattersn in the *hyphen files); in your 
> current setup something "t1code.tex" is loaded and i don't even want to 
> think about what interference can come from that -)

Hello,

just a comment. In TeXlive2003, czhyph.tex contains first

\ifx\addlanguage\undefined
  \errmessage{This file can be used only in babelised formats!}
\fi

to test if the format is babelised. If the test succeeds it just reads
czhyphen.tex. I asked Petr Olsak either to remove this stupid test from
that file or to add a test for ConTeXt. We prepared a hack that I tried
to propagate into TeXlive, but after asking several times on texlive
mailing list I gave up. After reading a discussion on LaTeX Czech
support (and its backwards compatibility) in the CSTUG mailing list, I
like ConTeXt way of multilanguage support even more :-)

The path of least resistence is probably to make cont-usr.tex to point
directly to the actual position of czhyphen.tex directly :-(, sigh...

Yours,
D.A.

-- 
Science is what happens when preconception meets verification.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib module produces no output

2005-01-04 Thread David Antos
On Tue, Jan 04, 2005 at 11:00:51AM +0100, Christopher Creutzig wrote:
>  Definitely not.  I don't know about you, but I'd very much prefer to
> use the same .bib file for different articles/texts.  Numerous groups
> in this and other universities even use a collective .bib file for
> all the researchers.  (We are just doing too diverse things in this
> group for that.)

Hello,

don't worry, that is not the point. What I wanted is to include all
bibliographies cited in the work, not just the current chapter (which is
empty if you have a separate "bibliography chapter").

It has nothing to do with choosing the entries from .bib file. This
should include cited entries only and all entries as an option (as we're
used to).

D.A.

-- 
In host we trust
-- Cheswick, Bellowin, Rubin: Firewalls and Internet Security
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib module produces no output

2005-01-03 Thread David Antos

Hello Hans,

On Mon, Jan 03, 2005 at 12:17:34PM +0100, Hans Hagen wrote:
> >Alternatives a, b, and c produce number-title-spaces-pagenumber,
> >d, e, f, and g seem to be correct.
> >
> >Can you please have a look?
> 
> ah, some dutch left-overs in the interface translation:
> 
> search for variant in core-lst,tex:

sorry, I don't follow you :-(. What I'm saying is that alternatives a,
b, and c produce the same result (equal to `b' setting).

I expect this to expand to the macros you've cited in the end, so I
expect that
\setupcombinedlist
  [content]
  [alternative=c]
should work.

> \def\@@lialternative
>   {\@@lialternativeb}
> 
> \@@lialternativeb
> 
> (even better: \setvalue{\??li\c!alternative a}% )

OK, how should this help? I've tried all of them in the setup (with
other alternatives like a or c, too), only the first \def goes without
error and has no effect, though.

Thanks and sorry for being a bit slow,
D.A.

-- 
Q:  How many hardware engineers does it take to change a lightbulb?
A:  None.  We'll fix it in software.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib module produces no output

2005-01-03 Thread David Antos
On Sun, Jan 02, 2005 at 03:58:15PM +0100, Taco Hoekwater wrote:
> This item has remained on my todo list because the 'criterium=all' 
> seemed at the time to be a bug in context itself. Will fix soon.

Hello,

thanks, nevertheless, more things seem to be broken with lists now.

I often use
\setupcombinedlist
  [content]
  [alternative=c]

It should (and used to) produce a list with dot leaders between names
and page numbers. It doesn't in the last stable. (I've tried to look
into core-lst, but it's too complicated for me :-)

Alternatives a, b, and c produce number-title-spaces-pagenumber,
d, e, f, and g seem to be correct.

Can you please have a look?

Thanks,
D.A.

-- 
Sir Humphrey: "The purpose of minutes is not to record events, it is
to protect people."
-- Yes, Prime Minister (Official Secrets)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bib module produces no output

2005-01-02 Thread David Antos

Hello,

bib module of 30-8-2004 produces no bibliography list on
\placepublications with ConTeXt 2004.12.17 (last stable) and/or latest
beta.

The workaround is to use
\setuplist[pubs][criterium=all]
somewhere in the setup.

Can you please make including the whole bibliography make the default?
I'm pretty sure that's what everybody expects :-)

Thanks,
D.A.

-- 
Women have a wonderful instinct about things.  They can discover
everything except the obvious.
-- Oscar Wilde: An Ideal Husband
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] nath bug

2004-12-23 Thread David Munger
Giuseppe Bilotta wrote :

> \appendtoks
> \livesupsub@
> \to\everymath
> 
> in t-nath.tex after the definition of livesupsub@ and
> killsupsub@

Hmm... It seemed to work at first, but it just moved the problem. Now
it's (\sum) limits that are typeset like in inline style.

> Maybe Hans has some suggestion for a better solution: the
> problem is that the mathcode is ignored for characters with
> code 7 or 8 (sup- or subscript). So I'm currently changing the
> catcode of ^ and _ when entering mathmode.

I hope he has!


Regards,

David



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] http://www.pragma-ade.com/show-mag-9.htm

2004-12-16 Thread David Arnold
Hans et al,
I can get into this link:
http://www.pragma-ade.com/show-mag-9.htm
Any ideas?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] At a loss how to proceed

2004-12-14 Thread David Arnold
All,

Lately, I've had a number of discussions with the director of disabled
student services at our school regarding document preparation for the
visually impaired. As a result of these discussions, I am a bit lost as how
to proceed with the preparation of mathematics for the web and documents
for my course content.

I've paid a little attention to the develoment of MathML, but I've always
said "Who wants to code like that?" whenever I look at examples. However,
today I found:

http://www.dessci.com/en/company/press/releases/040722.htm

I now realize that software that reads web pages aloud it pretty important.
But how do I, in my limited time, prepare documents for multiple purposes?
Can I use Context to support all of our students at our school? Just how do
I proceed?

At a loss.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bad link -- Login?

2004-12-14 Thread David Arnold
All,

Perhaps a bad link?

http://www.pragma-ade.com/show-mag-9.htm

I cannot gain access to mag 8 either.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] French quotes ..

2004-12-13 Thread David Antos
On Tue, Dec 14, 2004 at 12:31:44PM +, Dirar BOUGATEF wrote:
> French quotes look like this : << my text >>, where english ones look like 
> this: "my text".
> 
> Of course, am using the  \mainlanguage[fr] option in my document.

Hello,

if \mainlanguage[fr] is set, \quotation{my quoted text} should typeset
the strange French quotes.

Yours,
D.A.

-- 
Science is what happens when preconception meets verification.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Converters to XML

2004-12-12 Thread David Arnold
All,

I understand very little about MathML and XML.

Is it possible to take a Context document and convert it into XML and
MathML to be displayed in a XML and MathML aware browser? And what browsers
are "aware" for this task?

Is it possible to take a Context document and convert it into Braille for
the seeing impaired?

I'd love to hear about these issues. Pointers on the net would be welcome.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \bfm broken

2004-12-10 Thread David Munger
\bfm seems broken in 2004.12.06


Compiling the following:

\setupformulas [method=bold]
\starttext
\startformula
  {\bfm x}
\stopformula
\stoptext

results in:
...
! Bad number (127).
 \defaultskewcharmi

\dosetskewchar ...ar \empty \skewchar \textfont #1
  #2\skewchar
\scriptfont #1...
 ...ultskewcharmi \dosetmathfamily
  \sybffam \textface
\script...
 ...\else \the \boldmathstrategies
  \fi
\autoenablemathcollect...

\synchronizemath ...athfonts \the \mathstrategies
  \fam \mrfam \fi
 ...bfamily \c!bf \synchronizemath
  \aftergroup
\synchronizemath
...
l.4   {\bfm
x}
?



Any help welcome. Thanks in advance,

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] using \startfiguretext ... \stopfiguretext

2004-12-09 Thread David Munger
Hi NIkolai,

It might not be the only way, this should work:

\placefigure
  [here]
  [fig:somelabel]
  {Caption}
  \placelegend{Figure}
  {Text}


Nikolai Weibull wrote :
> How do I get a figure with text that is displayed like
> 
>   Figure
>   Text
>   Caption
> 
> where we first have the figure, then a description of it below, and
> finally a caption?  So far I've only managed to get the text to appear
> to the left or right of the figure.
>   nikolai
> 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] nath bug

2004-12-03 Thread David Munger
Hello Giuseppe,

I think I found a bug in the nath module. Try the following:

\usemodule[nath]
\starttext
\[ e^{f(x)} \]
\stoptext

And by the way, fractions in exponents are typeset too big:

\usemodule[nath]
\starttext
\[ e^{\frac{1}{\gamma-1}} \]
\stoptext


Best regards,

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re[2]: [NTG-context] Updated math modules

2004-11-23 Thread David Munger
Giuseppe Bilotta wrote :
> 
> Try the attached nath module.
> 

Works great. Thanks.

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Request: translation of texshow-web

2004-11-22 Thread David Antos
On Mon, Nov 22, 2004 at 06:03:39PM +0100, Patrick Gundlach wrote:
> headaches... So I am looking for some native speakers to help me

Hello,

I can do the Czech translation.

Regards,
D.A.

-- 
Jim Hacker: "Humphrey, do you see it as part of your job to help
Ministers make fools of themselves?"
Sir Humphrey: "Well, I never met one that needed any help."
-- Yes, Minister (The Right to Know)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Updated math modules

2004-11-22 Thread David Munger
Ok. I got a simpler example (no TOC):

\usemodule [nath]
\enableregime [utf]
\starttext
^^c3^^a9
\stoptext

With nath, I get "^^c3^^a9" in the output; without, I get "Ã".

Thanks for any help,

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Updated math modules

2004-11-22 Thread David Munger
Hello Giuseppe,

Thanks for your good work. Sorry for reminding this bug to you, but it's
the only reason why I can't use nath even though I wish a lot. About the
problem unicode characters in toc.

Ref.: http://www.ntg.nl/pipermail/ntg-context/2004/005306.html

I attached a minimal example unicode file. You'll get garbage instead of
the expected the "e acute" on the word "MathÃmatiques" in the table of
contents.

No matter wheter I use the amsl module or not, I get the following entry
in my tuo file:

\listentry{section}{1}{1}{Math^^c3^^a9matiques}{2::0:0:1:0:0:0:0::1}{1}


Moreover, if you replace [nath] with just [amsl], you'll get different
alignment of the formula.

BTW: my TeX doesn't seem to like DOS-style newlines in t-amsl.tex, so I
had to convert them to Unix-style ones.

David
\usemodule [nath]
\enableregime [utf]
\starttext
\completecontent
\section{MathÃmatiques}
\[ f(x)= \frac 1x \]
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Request: translation of texshow-web

2004-11-22 Thread David Munger
Patrick Gundlach wrote :
> Dear ConTeXt (and texshow-web) users,
> 
> I am currently translating texshow-web into various languages. Well
> I'd like to, but all languages besides german (and english) give me
> headaches... So I am looking for some native speakers to help me
> translating. The job is pretty easy, I'd send you a small textfile and
> you send it back to me with some strings translated (currently 35
> strings, but there is also the help page and main page...)
> 
> Patrick

I'll take care of the french translation.

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bugs

2004-11-19 Thread David Antos
On Fri, Nov 19, 2004 at 04:15:34PM +0100, Christopher Creutzig wrote:
> >Sure. Think of it as ragged-right and ragged-left. This is one of the
> >first questions in all ConTeXt FAQs, it has deep historical reasons, and
> 
>  If nothing important has crept past me, being the first question in 
> all ConTeXt FAQs is something trivially true, given the number of 
> ConTeXt FAQs in existence. :-))

You're a mathematician, aren't you :-) Have a look at
http://contextgarden.net/, great material is there.

And this is documented in http://contextgarden.net/Right_and_left,
nevertheless, you're right, it isn't an FAQ :-)

D.A.

-- 
The Czechs announced after Sputnik that they, too, would launch a satellite.
Of course, it would orbit Sputnik, not Earth!
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bugs

2004-11-19 Thread David Antos
On Fri, Nov 19, 2004 at 02:19:56PM +, Dirar BOUGATEF wrote:
> I have noticed that align=right aligns text on the left edge of a frame 
> where it should align left as it says (and left aligns right).
> 
> Is this normal ?

Sure. Think of it as ragged-right and ragged-left. This is one of the
first questions in all ConTeXt FAQs, it has deep historical reasons, and
it constantly confuses beginners :-)

D.A.

-- 
* 14 Mar 1978
# (Came in evening after sleeping most of day, to get computer at better time.)
# (Some day we will have personal computers and will live more normally.)
-- Donald E. Knuth in errorlog.tex
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] HSU Colloquium Series

2004-11-19 Thread David Arnold
All,

Gave my talk today at Humboldt State University Mathematics Colloquium Series.

Slides are available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/slides.pdf

Notes are available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/slidesNot
es.pdf

Sketchpad files are available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/simpleCyc
loid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/doubleCyc
loid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/envelopeC
ycloid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/evoluteCy
cloid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/robervalC
ycloid.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/symmetryR
oberval.gsp

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/involuteC
ycloid.gsp

Source code available:

http://online.redwoods.edu/instruct/darnold/HSUColloquium/multcalc/hsu.zip

You're all welcome to use them in any way you wish. Thanks to all of those
who answered my questions while I was working on this.


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] 2 Slides per Page

2004-11-18 Thread David Arnold
Hans et al,

Thanks for the hints. I'll take a look when I have more time. I have to
give this talk today, so I was glad I found this in the mail archive (keep
up the good work Patrick):

texexec --pdfcombine --comb=1*2 slides

Worked like a charm!

At 12:07 PM 11/18/04 +0100, you wrote:
>Vit Zyka wrote:
>
>> Just a hint:
>> 
>> use
>>   \setuparranging[2TOPSIDE]
>>   \setuppapersize[S3][letter]
>
>for fun you can play with the imposition interface at
>
>   www.pragma-pod.com -> exa -> impose
>
>-
>   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
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] 2 Slides per Page

2004-11-17 Thread David Arnold
All,

I've got a slide show set up with:

\setuppapersize[S6][S6]

\setuplayout
  [width=middle,
top=1cm,
bottom=1cm,
backspace=1cm,
leftmargin=0pt,
rightmargin=0pt,
footer=0pt,
header=0pt]

Then, I have material on a slide (page), followed by a \page command,
material on a slide (second page), followed by a \page command, material on
a slide (third page), followed by a \page command, 

Now, I would like to print my slides on US Letter, two slides  the page.
Page 1 should contain my first slide at the top, second at the bottom. Page
2 should contain my third slide at the top, fourth slide at the bottom.
Etc, Etc, Etc, ...

Can someonw show me how to do this?

Thanks.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Czech support (Was: Re: does context support vietnamese?)

2004-11-17 Thread David Antos
On Wed, Nov 17, 2004 at 11:05:21AM +0100, Hans Hagen wrote:
> The Thanh Han wrote:
> >What is the current status of context support for czech?

Hello,

Hyphenation patterns work OK for Czech. Settings for Czech seem to be
reasonable (I'd only redefine subsentence setting and mainly date),
generated words (Chapter, ...) work fine, at least it is easy to
redefine them to one's personal taste :-)

System messages and names of macros are available in Czech (although I
cannot imagine anyone who would use them; things like "nastavramovani"
for setupframed seem really perverted to me:-).

Index sorting is missing in the distribution; in any case, Czech sorting
rules are really ugly and need incorporation of Cz::Sort into texutil. I
don't keep an eye on ConTeXt development very carefully so I might be
out-of-sync, nevertheless it'd be nice to have a sorting module
pluggable into texutil (just a suggestion).

The Czech support is based on master thesis of Tomas Hudec. After
finishing his study, he disappeared and I have no knowledge about him.
Fortunately, I have the complete sources of his work, so the missing
parts could be filled. I've prepared a Bc. thesis assignment saying in
fact "take Tomas' thesis and make it really work" but I haven't manage
anybody to do that :-(

Currently, I'm pretty busy (and use ConTeXt to write in English), so if
a Czech speaking ConTeXt user wants to have a look at it, I can send
him/her the archive.

Regards,
D.A.

-- 
I either want less decadence or more chance to participate in it.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \startexample

2004-11-13 Thread David Arnold
All,

I have this example I would like to typeset.

\startexample
Show that $0.\overline{621}$ is a rational number.
\stopexample

In this case, there are three digits under the repeating bar. If we
let $x=0.\overline{621}$, then multiply by 1000, we have

\startformula
\eqalign{1000x&=621.621621\dots\cr
  x&=\phantom{62}0.621621\dots.}
\stopformula

Subtracting,

\startformula
\eqalign{999x&=621\cr
x&={621\over 999}.}
\stopformula

Dividing numerator and denominator by 27 (or first by 9 then by 3), we
find that $0.\overline{621}=23/37$. Thus, $0.\overline{621}$, being
the ratio of two integers, is rational.

I have defined:

\defineenumeration
[example]
[location=serried,
  text=Example,
  before=\blank,
  after=\blank
  style=slanted]

What I would really like is an enumeration where only the example state is
in slanted type, then the solution follows (without an indent) in upright
(normal) font. At the end of the solution, I'd like a little symbol at the
lower right to indicate the end of the solution, then a little blank space
before continuing the narrative.

Can someone help me with this?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texmfstart

2004-11-12 Thread David Arnold
Hans,

Yes, it was read only. But I thought I tried changing that to no avail. The
only solution that worked was renaming the directory to Text. Then it worked.

But I'll look more closely on Monday when I am back into my office.

Did you have time to look anymore at my texmfstart issue on my Win95
machine at home?

At 07:43 PM 11/12/04 +0100, you wrote:
>Arnold, David wrote:
>> All,
>> 
>> In WinXP, ...
>> 
>> C:\MATHDEPT>cd \mathdept
>> 
>> C:\MATHDEPT>dir
>>  Volume in drive C has no label.
>>  Volume Serial Number is 50D6-E69D
>> 
>>  Directory of C:\MATHDEPT
>> 
>> 09/28/2004  07:54 PM  .
>> 09/28/2004  07:54 PM  ..
>> 09/28/2004  07:54 PM  Evaluations
>> 10/08/2004  10:08 AM  SteveDrasco
>> 10/08/2004  02:27 PM  wasc
>> 11/05/2004  04:21 PM  womenInMath
>> 11/08/2004  02:13 PM  JackKentCook
>> 11/10/2004  03:40 PM  FacultyDevelopment
>> 11/11/2004  01:20 PM  intalgtext
>>0 File(s)  0 bytes
>>9 Dir(s)  10,295,885,824 bytes free
>> 
>> C:\MATHDEPT>cd intalgtext
>> Invalid directory
>
>is it read only?
>
>attrib intalgtext
>
>
>-
>   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
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \mathbb

2004-11-11 Thread David Arnold
All,

In Latex, I would write:

\documentclass{article}

\usepackage{amsmath}
\usepackage{amssymb}

\newcommand{\Real}{\mathbb{R}}

\begin{document}

Let $x\in\Real$.

\end{document}


How to I get the "Blackboard Bold" R in Context?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Invalid directory

2004-11-11 Thread Arnold, David
All,

In WinXP, ...

C:\MATHDEPT>cd \mathdept

C:\MATHDEPT>dir
 Volume in drive C has no label.
 Volume Serial Number is 50D6-E69D

 Directory of C:\MATHDEPT

09/28/2004  07:54 PM  .
09/28/2004  07:54 PM  ..
09/28/2004  07:54 PM  Evaluations
10/08/2004  10:08 AM  SteveDrasco
10/08/2004  02:27 PM  wasc
11/05/2004  04:21 PM  womenInMath
11/08/2004  02:13 PM  JackKentCook
11/10/2004  03:40 PM  FacultyDevelopment
11/11/2004  01:20 PM  intalgtext
   0 File(s)  0 bytes
   9 Dir(s)  10,295,885,824 bytes free

C:\MATHDEPT>cd intalgtext
Invalid directory

Has anyone else experienced this? Workaround? I am trying to use texexec in
to compile a document, but I can't get into the directory.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texmfstart and scite installation problems

2004-11-10 Thread David Arnold
All,

F:\miktex\scripts\context\ruby>ver
Windows 95. [Version 4.00.]

F:\miktex\scripts\context\ruby>ruby --version
ruby 1.8.2 (2004-11-06) [i386-mswin32]

F:\miktex\scripts\context\ruby>texmfstart --version
Bad command or file name

F:\miktex\scripts\context\ruby>texmfstart.rb --version
Bad command or file name

F:\miktex\scripts\context\ruby>ruby texmfstart.rb --version
texmfstart.rb:32:in `initialize': GetProcAddress: GetLongPathName or
GetLongPath
NameA (RuntimeError)
from texmfstart.rb:32:in `new'
from texmfstart.rb:32

Any suggestions?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-10 Thread David Munger
Hans Hagen wrote :
> David Munger wrote:
> 
> > I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to
> > achieve this. I think now we need Hans' help.
> 
> I haven't followed the discussion so closely, what is the problem?

We're trying to implement steps-without-JavaScript for slides. You can
get the module here:

http://cfd.homelinux.org/tex/

The current problem, in its simplest form, is that using \mframed breaks
the spacing. Minimal example:

\starttext
We aim to get this spacing:
\startformula
a + b
\stopformula
but when using:
\startformula
a \mframed{+ b}
\stopformula
we get the same broken spacing as in:
\startformula
a {+ b}
\stopformula
\stoptext

> eh ... are you redefining low level macros?

I'd never dare to... ;-) Just overriding \placeformula within
\begingroup/\endgroup to mangle the formula numbers.


Thank you,

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-10 Thread David Munger
Otared Kavian wrote :
> Hi David and all ConTeXters,
> 
> I was away from my e-mail so I am late in answering.
> Thank you for the file you put on your site. Indeed everything works 
> as intended (the \placeformula no longer advances with each step), 
> and I think one may suggest to Hans to include this in future 
> distributions.
> 
> However, in the spirit of ConTeXters who are always asking for a 
> step(!) towards perfectness, I let you know the following drawbacks 
> of the macros:
> 
> 1) Somehow the \FromStep[n][reserve] changes the internal mechanism 
> of glue or spaces in displayed formulas. So one needs (as you do in 
> your example) to add \; around operators such as +, -, =. Can one 
> avoid this?

I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to
achieve this. I think now we need Hans' help.

I have indeed noticed that enclosing an operator between braces breaks
the spacing system. Try, for instance:

\startformula
   \vec\nabla\cdot\vec u = 0
\stopformula
\startformula
   \vec\nabla\cdot\vec u {=} 0
\stopformula

Unfortunately, using \phatom{=} results in the same broken spacing as
second formula.

> 2) When one refers (see example below) with the command (\in[eq:NS]) 
> to an equation which has been introduced with \placeformula[eq:NS] 
> the interaction makes appear the first instance of that formula, 
> which may be incomplete. Could one have a control over this, that is 
> for instance, in this particular case, make appear the completed 
> equation at the end of the slide made with \StartSteps[Navier||Stokes 
> equation]?

Good point! Here's the fix (file updated on my website):

37c37
<   \dodoubleempty\doplaceformula[##1]}
---
>   \dodoubleempty\doplaceformula}
50c50,54
<   \dodoubleempty\doplaceformula[1]}
---
>   [EMAIL PROTECTED]@number%
> [EMAIL PROTECTED]
>   \else
> [EMAIL PROTECTED]
>   [EMAIL PROTECTED]

Now we got rid of the duplicate label warnings. I also added your
contribution to the usage example. Thank you.

Regards,

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Tex or Context Editors.

2004-11-08 Thread David Arnold
Hans,

One of my favorite things about Auctex+Emacs is C-M-\ which will format
marked region, buffer, etc. The source coes is ually nicely aligned after
application of this macro.

Now, I've seen your source code over the years and it is quite beautiful,
easy to read.

Are you telling us that Scite will do alignment of tables and other nice
automatic formatting?

At 03:20 PM 11/8/04 +0100, you wrote:
>Dirar BOUGATEF wrote:
>
>> Am using eclipse as my editor (eTex) but it is really too heavy, anyone 
>> knows of an editor that works fine within tex and windows.
>
>i use scite
>
>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
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \reuseMPgraphic error

2004-11-08 Thread David Arnold
Hans, Matthias,

Thanks. Changing:

\startreusableMPgraphic{layout 1}

to

\startruseMPgraphic{layout 1}

fixed the problem. 

At 12:14 PM 11/8/04 +0100, you wrote:
>Matthias Weber wrote:
>> 
>> On Nov 4, 2004, at 1:07 PM, David Arnold wrote:
>> 
>>> All,
>>>
>>> This file:
>>>
>>> \setupoutput[pdf]
>>>
>>> \startreusableMPgraphic{layout 1}
>>> pickup pencircle scaled 1mm;
>>> fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
>>> fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 
>>> 0.625yellow;
>>> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 
>>> 0.625red;
>>> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 
>>> 0.625red;
>>> draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 
>>> 0.25white;
>>> drawarrow (2cm,8cm)--top (2cm,7.5cm);
>>> drawarrow (0cm,7cm)--lft(1cm,7cm);
>>> clip currentpicture to unitsquare xyscaled (7cm,8cm);
>>> \stopreusableMPgraphic
>>>
>>>
>>> \startreusableMPgraphic{layout 2}
>>> \includeMPgraphic{layout 1}
>> 
>> 
>> ^
>> is that allowed? (it works without)
>
>it is allowed, but only when layout 1 is a usableMPgraphic
>
>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
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Layout

2004-11-08 Thread David Arnold
Patrick,

Found it (t-layout) at http://levana.de/context/. Good stuff. Let me look
at this more carefully. This is definitely what is needed in any
introductory Context manual.

At 03:21 PM 11/8/04 +0100, you wrote:
>Hello David,
>
>> This is what is needed, but even in more detail.
>
>[...]
>
>> We need a picture(s) indicating all of the various layout parameters and
>> their location on the page, as shown in the figure generated when you run
>> the Latex code above.
>
>
>So you have tried out my t-layout? I guess you have to rename it since
>the distribution contains a layout module as well. What else do you
>miss? Do you need a graphical representation of everything?
>
>Patrick
>-- 
>ConTeXt wiki: http://contextgarden.net
>___
>ntg-context mailing list
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] More on compiling --- texmstart

2004-11-08 Thread Arnold, David
All,

OK, it seems the times are passing me by. I am running Miktex 2.4. It comes
with Context installed and there is a texexec.exe in /texmf/miktex/bin,
which is on my path. 

C:\CONTEXT\PRACTICE>path
PATH=C:\Perl\bin\;C:\texmf\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WIND
OWS\
System32\Wbem;c:\yandy\yandytex;c:\yandy\dviwind

After enabling write18 and setting these in my cont-sys.tex,

\runMPgraphicstrue
\runMPTEXgraphicstrue
\useMETAFUNformattrue

I could not get Context to build Metapost graphics on the fly (at least in
my test file).

I have installed Ruby. After reading:

http://www.contextgarden.net/Update_Hints

I tried the following:

texmfstart --make texexec.pl

This built a texexec.bat, which I moved to /texmf/miktex/bin, where I also
renamed texexec.exe to texexec.exe.bak. As a result, the file below compiled
nicely and I had my graphic in the background.

However, this killed Context running in Auctex and Emacs, which will no
longer compile the file below. I get the error message in the attached log
file.

Any thoughts on how I can get going in Auctex again?



The file junk.tex:

\setupoutput[pdf]

\setupwhitespace[medium]

  \startuniqueMPgraphic{concept} draw btex \bf CONCEPT etex rotated 60
  withcolor .8white; currentpicture:=currentpicture ysized
  (\overlayheight-0.5cm); \stopuniqueMPgraphic

  \defineoverlay[concept][\uniqueMPgraphic{concept}]

\setupbackgrounds[page][background=concept]


  \starttext

  Now is the time for all good men to come to the aid of their
  country. Now is the time for all good men to come to the aid of
  their country. Now is the time for all good men to come to the aid
  of their country. Now is the time for all good men to come to the
  aid of their country. Now is the time for all good men to come to
  the aid of their country. Now is the time for all good men to come
  to the aid of their country. Now is the time for all good men to
  come to the aid of their country. Now is the time for all good men
  to come to the aid of their country. Now is the time for all good
  men to come to the aid of their country. Now is the time for all
  good men to come to the aid of their country. Now is the time for
  all good men to come to the aid of their country. Now is the time
  for all good men to come to the aid of their country. Now is the
  time for all good men to come to the aid of their country.

  Now is the time for all good men to come to the aid of their
  country. Now is the time for all good men to come to the aid of
  their country. Now is the time for all good men to come to the aid
  of their country. Now is the time for all good men to come to the
  aid of their country. Now is the time for all good men to come to
  the aid of their country. Now is the time for all good men to come
  to the aid of their country. Now is the time for all good men to
  come to the aid of their country. Now is the time for all good men
  to come to the aid of their country. Now is the time for all good
  men to come to the aid of their country. Now is the time for all
  good men to come to the aid of their country. Now is the time for
  all good men to come to the aid of their country. Now is the time
  for all good men to come to the aid of their country. Now is the
  time for all good men to come to the aid of their country.

  Now is the time for all good men to come to the aid of their
  country. Now is the time for all good men to come to the aid of
  their country. Now is the time for all good men to come to the aid
  of their country. Now is the time for all good men to come to the
  aid of their country. Now is the time for all good men to come to
  the aid of their country. Now is the time for all good men to come
  to the aid of their country. Now is the time for all good men to
  come to the aid of their country. Now is the time for all good men
  to come to the aid of their country. Now is the time for all good
  men to come to the aid of their country. Now is the time for all
  good men to come to the aid of their country. Now is the time for
  all good men to come to the aid of their country. Now is the time
  for all good men to come to the aid of their country. Now is the
  time for all good men to come to the aid of their country.

  \stoptext




junklog2
Description: Binary data
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-08 Thread David Munger
Otared Kavian wrote :
> Hi David,
> 
> I could not get through the example file: here is what I get:


Argh... It's because of the line splits in email. I just put the file on
my website:

http://cfd.homelinux.org/tex/


Regards,

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-08 Thread David Munger
Otared Kavian wrote :
> Hi David,
> 
> Thanks for the details. Indeed I get now what is expected from your 
> macros, and as a matter of fact the result is much much better than 
> that of my crude macros... You did a great improvement!
> So I am going to use yours from now on: thanks again!
> 
> If I can suggest a possible improvement to the t-rsteps.tex macros, 
> it is the following:
> When one uses these macros with an automatic numbering such as 
> \placeformula[equation-reference] (see the example below), with each 
> invocation of \page (that is a step) the number increases, and this 
> is an unwanted side result. Would it possible to "freeze" the 
> numbering procedure in such a way that the number doesn't change in 
> each step? (When I was using my macros, I didn't use \placeformula in 
> sildes with steps, but rather an old \leqno from plain TeX).

Excellent idea indeed! Here's the fix. It is obviously not optimal,
though it allows for multiple formula numbers on the same slide. Try it
with:
texexec --pdf --mode=demo t-rsteps

Thanks for your advice.

David



%D \module
%D   [  file=t-rsteps,
%Dversion=2004.11.08,
%D  title=\CONTEXT\ User Module,
%D   subtitle=Raw steps for slides,
%D author=David Munger,
%D   date=\currentdate,
%D  copyright={David Munger}]

% Thanks to Otared Kavian whose work inspired this module,
% and who contributed to its development.



% steps for slides


\unprotect

\newif\ifUseSteps
\UseStepstrue
% \UseStepsfalse

\definecolor [highlightcolor] [blue]

\long\def\StartSteps[#1]#2\StopSteps{%
  \begingroup%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \ifUseSteps%
%%%
%% Workaround to make formula numbers "stick"
\def\placeformula[##1]{%
  \incrementnumber[formula]%
  \expandafter\xdef\csname [EMAIL PROTECTED]
\endcsname{\rawnumber[formula]}
  \expandafter\xdef\csname [EMAIL PROTECTED]
\endcsname{\rawnumber[formula]}
  \dodoubleempty\doplaceformula[##1]}
%%%
\loop%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@stopstep%
  [EMAIL PROTECTED]@autocounter%
[EMAIL PROTECTED]<[EMAIL PROTECTED]
  [EMAIL PROTECTED]
  %%%
  %% Workaround to make formula numbers "stick"
  \def\placeformula[1]{%
\setnumber[formula]{\csname [EMAIL PROTECTED]
\setfalse\incrementformulanumber%
\dodoubleempty\doplaceformula[1]}
  %%%
\repeat%
  \else%
[EMAIL PROTECTED]@stopstep%
  \fi%
  \endgroup}

[EMAIL PROTECTED]@startstep}

\def\OnlyStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@counter=#1}%
  [EMAIL PROTECTED]

\def\FromStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \increment([EMAIL PROTECTED],#1-1)%
  [EMAIL PROTECTED]@counter>[EMAIL PROTECTED]
  [EMAIL PROTECTED]

\def\AfterStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@counter>#1}%
  [EMAIL PROTECTED]

\def\UntilStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@counter<#1}%
  [EMAIL PROTECTED]

\def\HighlightStep[#1]#2{%
  {\UntilStep[#1]{#2}\OnlyStep[#1]{\highlightcolor
#2}\AfterStep[#1]{#2}}}


%%
% internal macros
%%

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

[EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \ifUseSteps%
[EMAIL PROTECTED]>[EMAIL PROTECTED]
  [EMAIL PROTECTED]
\fi%
  \fi%
  \starthidden}

[EMAIL PROTECTED]

[EMAIL PROTECTED]@number<#1%
  [EMAIL PROTECTED]
  \doglobal\increment([EMAIL PROTECTED],#1)\fi}

\defineframedtext
  [EMAIL PROTECTED]
  [offset=overlay,width=broad,height=fit,frame=off]

[EMAIL PROTECTED]@hide]}
[EMAIL PROTECTED]


[EMAIL PROTECTED]
  \processallactionsinset
[#1]
[   reserve=>[EMAIL PROTECTED]@dostepreserve,
\s!default=>[EMAIL PROTECTED]@dostepnoreserve]
  [EMAIL PROTECTED]

[EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \ifUseSteps%
[EMAIL PROTECTED]
  [EMAIL PROTECTED]
\fi%
  \fi%
  \ifmmode\expandafter\mframed\else\expandafter\framed\fi%
  [EMAIL PROTECTED],frame=off,offset=overlay]{#1}%
  \ifmmode\;\fi}

[EMAIL PROTECTED]
  [EMAIL PROTECTED];\fi}%
  \ifUseSteps%
[EMAIL PROTECTED]@next{\relax}\fi%
  [EMAIL PROTECTED]

\protect

\doifnotmode{demo}{\endinput}

%
% usage example
%

\usemodule [pre-original]
\usemodule [rsteps]

\starttext
\StartSteps[Slide Title]   % the title is passed to
   % the \Subject macro

\startitemi

Re: [NTG-context] \presentationstep

2004-11-07 Thread David Munger
Otared Kavian wrote :
> Hi David, Hi all Contexters,
> 
> Sorry for being late in answering.
> 
> I just tried to test your code but did not succeed in showing things 
> step by step, even after adding:
> \def\Subject#1{\centerline{\bf #1}}
> \setuppapersize [S6][S6]
> \setupcolors[state=start]
> and changing the commands \[ and \] (which are probably from a LaTeX 
> background) into \startformula and \stopformula.
> 
> What I get doesn't show any step, but only one or two pages with 
> several "Slide Title", and the items you had in your example, on it, 
> and one or two pages with "Navier-Stokes equation".
> 
> Am I missing something? Could you please send me (if necessary off 
> List) a source file of yours which is completely working?
> 
> Best regards: OK

Oh sorry for not being clear about it. I was assuming that some
presentation module would be imported, for instance:
\usemodule[pre-original]

So probably there lacks a \page command in your \Subject definition.

About the \[ and \]: you're right. I was using the amsl module from
Giuseppe Bilotta.

Thanks for your remarks. :-)


So, assuming that the steps code is in a file name t-rsteps.tex, the
complete example would be:

--

\usemodule [pre-original]
\usemodule [rsteps]

\starttext
\StartSteps[Slide Title]   % the title is passed to
   % the \Subject macro

\startitemize
\item Item 1
\OnlyStep[2]  {\item (oops!)}
\UntilStep[4] {\item Item 2*}
\FromStep[4]  {\item Item 2}
\stopitemize

\StopSteps

\StartSteps[Navier||Stokes equation]

\startformula
  \frac{D\vec u}{Dt} =
\FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}}
\FromStep[3][reserve]{+\;{\green \vec g}}
\FromStep[4][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S}}
\stopformula

Momentum transport: \NextStep
\item {\red   Pressure gradient}\par\NextStep
\item {\green Gravity}  \par\NextStep
\item {\blue  Stress (viscous, turbulent, Maxwell)}

\StopSteps
\stoptext

--


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fit in Window

2004-11-06 Thread David Arnold
All,

What commands do I use in Context to have my slide come up in Acrobat
Reader's "Fit In Window?"
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Layout

2004-11-06 Thread David Arnold
All,

This is what is needed, but even in more detail.

Try this in Latex:

\documentclass{article}
\usepackage{layout}
\begin{document}
\layout
\end{document}

We need a picture(s) indicating all of the various layout parameters and
their location on the page, as shown in the figure generated when you run
the Latex code above.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] lrmoved

2004-11-06 Thread David Arnold
All,

In this definition from mp-tool,

primarydef p lrmoved d =
  ((lrcorner p) shifted (+xpart paired(d),-ypart paired(d)))
enddef ;

I am not certain of its use. Does it adjust the corner of the path p, or
does it return the corner of the path p, or what?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Compiling questions

2004-11-06 Thread David Arnold
Willi,

This worked but it opened another problem:

This is TeX, Version 3.141592 (MiKTeX 2.3)
(c:/windows/TEMP/mpxF766.TMP/mpx314.tex
! Undefined control sequence.
l.1 \global \loadfontfileoncetrue
 %
! You can't use a prefix with `\shipout'.

   \shipout
l.2 \shipout
\hbox{\smash{\hbox{\hbox{% line 122 F:\ConTeXt\junk2-mpgraph.mp
[1] )
(see the transcript file for additional information)


At 09:59 PM 11/6/04 +0100, you wrote:
>Hi David,
>
>here your code from the second example runs without problem as well 
>started from Scite as also from the cmd.box.
>
>I thought that may be you should check your cont-sys.tex file, there
>should exist two lines as follows:
>
>\runMPgraphicstrue
>\runMPTEXgraphicstrue
>
>
>Willi
>
>David Arnold wrote:
>> All,
>> 
>> This test file:
>> 
>> \starttext
>> \setupcolors[state=start]
>> \startMPpage
>> colorcircle(10cm,red,green,blue) ;
>> \stopMPpage
>> \stoptext
>> 
>> If I follow this procedure:
>> 
>> f:/context/texutil --purgeall
>> f:/context/texexec --pdf test
>> 
>> Then I get a nice document when opened in Acrobat Reader.
>> 
>> However, with the document below, this same procedure doesn't produce the
>> "Concept" background. Indeed, I need to do this to get the "Concept"
>> background:
>> 
>> f:/context/texutil --purgeall
>> f:/context/texexec --pdf junk2
>> f:/context/mpost mpgraph
>> f:/context/texexec --pdf junk2
>> 
>> Then, I get a nice document with the "Concept" background. Suggestions?
>> 
>> The file junk2.tex:
>> 
>> \setupoutput[pdf]
>> 
>> \setupwhitespace[medium]
>> 
>> \startuniqueMPgraphic{concept}
>> draw btex \bf CONCEPT etex rotated 60 withcolor .8white;
>> currentpicture:=currentpicture ysized (\overlayheight-0.5cm);
>> \stopuniqueMPgraphic
>> 
>> \defineoverlay[concept][\uniqueMPgraphic{concept}]
>> 
>> \setupbackgrounds[page][background=concept]
>> 
>> 
>> \starttext
>> 
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> 
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> 
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for a

[NTG-context] FunnyText

2004-11-06 Thread David Arnold
All,

I've come across this in the Metafun manual:

\setupframedtexts
[FunnyText]
[backgroundcolor=lightgray,
framecolor=darkred,
rulethickness=2pt,
offset=\bodyfontsize,
before={\blank[big,medium]},
after={\blank[big]},
width=\textwidth]


But I am wondering how to use it to set up a big "Copyright" in the
background?


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Compiling questions

2004-11-06 Thread David Arnold
All,

This test file:

\starttext
\setupcolors[state=start]
\startMPpage
colorcircle(10cm,red,green,blue) ;
\stopMPpage
\stoptext

If I follow this procedure:

f:/context/texutil --purgeall
f:/context/texexec --pdf test

Then I get a nice document when opened in Acrobat Reader.

However, with the document below, this same procedure doesn't produce the
"Concept" background. Indeed, I need to do this to get the "Concept"
background:

f:/context/texutil --purgeall
f:/context/texexec --pdf junk2
f:/context/mpost mpgraph
f:/context/texexec --pdf junk2

Then, I get a nice document with the "Concept" background. Suggestions?

The file junk2.tex:

\setupoutput[pdf]

\setupwhitespace[medium]

\startuniqueMPgraphic{concept}
draw btex \bf CONCEPT etex rotated 60 withcolor .8white;
currentpicture:=currentpicture ysized (\overlayheight-0.5cm);
\stopuniqueMPgraphic

\defineoverlay[concept][\uniqueMPgraphic{concept}]

\setupbackgrounds[page][background=concept]


\starttext

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

\stoptext


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-06 Thread David Munger
Hi all,

Inspiring from Otared Kavian's code and Han's presentation styles with
support for steps, I cooked the following in order to solve the non
JavaScript version issue. I post it in case it could be useful to other
people.

This implementation supports an \{Only|From|Until}Step[n] syntax as well
as the simple \NextStep-style one.

Otared: Any comments or suggestions?

And here is an example of usage:

---
\StartSteps[Slide Title]   % the title is passed to
   % the \Subject macro

\startitemize
\item Item 1
\OnlyStep[2]  {\item (oops!)}
\UntilStep[4] {\item Item 2*}
\FromStep[4]  {\item Item 2}
\stopitemize

\StopSteps
---

And here is a mixed example:

---
\StartSteps[Navier||Stokes equation]

\[
  \frac{D\vec u}{Dt} =
\FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}}
\FromStep[3][reserve]{+\;{\green \vec g}}
\FromStep[4][reserve]{+\;{\blue \frac1\rho \div S}}
\]

Momentum transport: \NextStep
\item {\red   Pressure gradient}\par\NextStep
\item {\green Gravity}  \par\NextStep
\item {\blue  Stress (viscous, turbulent, Maxwell)}

\StopSteps
---

And here's the code:


% steps for slides


\unprotect

\newif\ifUseSteps
\UseStepstrue
% \UseStepsfalse


\long\def\StartSteps[#1]#2\StopSteps{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \ifUseSteps%
\loop%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@stopstep%
  [EMAIL PROTECTED]@autocounter%
[EMAIL PROTECTED]<[EMAIL PROTECTED]
  [EMAIL PROTECTED]
\repeat%
  \else%
[EMAIL PROTECTED]@stopstep%
  \fi}

[EMAIL PROTECTED]@startstep}

\def\OnlyStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@counter=#1}%
  [EMAIL PROTECTED]

\def\FromStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \increment([EMAIL PROTECTED],#1-1)%
  [EMAIL PROTECTED]@counter>[EMAIL PROTECTED]
  [EMAIL PROTECTED]

\def\UntilStep[#1]{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]@counter<#1}%
  [EMAIL PROTECTED]



%%
% internal macros
%%

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

[EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \ifUseSteps%
[EMAIL PROTECTED]>[EMAIL PROTECTED]
  [EMAIL PROTECTED]
\fi%
  \fi%
  \starthidden}

[EMAIL PROTECTED]

[EMAIL PROTECTED]@number<#1%
  [EMAIL PROTECTED]
  \doglobal\increment([EMAIL PROTECTED],#1)\fi}

\defineframedtext
  [EMAIL PROTECTED]
  [offset=overlay,width=broad,height=fit,frame=off]

[EMAIL PROTECTED]@hide]}
[EMAIL PROTECTED]


[EMAIL PROTECTED]
  \processallactionsinset
[#1]
[   reserve=>[EMAIL PROTECTED]@dostepreserve,
\s!default=>[EMAIL PROTECTED]@dostepnoreserve]
  [EMAIL PROTECTED]

[EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \ifUseSteps%
[EMAIL PROTECTED]
  [EMAIL PROTECTED]
\fi%
  \fi%
  \ifmmode\expandafter\mframed\else\expandafter\framed\fi%
  [EMAIL PROTECTED],frame=off,offset=overlay]{#1}%
  \ifmmode\;\fi}

[EMAIL PROTECTED]
  [EMAIL PROTECTED];\fi}%
  \ifUseSteps%
[EMAIL PROTECTED]@next{\relax}\fi%
  [EMAIL PROTECTED]

\protect



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] Re: \setuplayout --- what do parameters mean?

2004-11-04 Thread Arnold, David
Patrick,

Found it. Excellent source. I am working away at it as we speak.

Thanks.

-Original Message-
From: Patrick Gundlach [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 04, 2004 2:08 PM
To: [EMAIL PROTECTED]
Subject: [NTG-context] Re: \setuplayout --- what do parameters mean?


Hi David,


[...]

> I have a hard time working out what it means. I know I can do 
> \showframe, but that doesn't indicate everything I need to see. Does 
> anyone have a macro that shows ALL of these parameters in a visual 
> way, similar to that on page 182 of the Latex User Guide, 2nd ed., 
> Lamport?

Well, I don't own a Lamport, and probably not many ConTeXt users own one, so
your description could be more verbose.

Nevertheless you might want to have a look at http://levana.de/context/
there is somewhere a module that should do something like this. But there is
still a bug in there when the margins are too small. 

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \reuseMPgraphic error

2004-11-04 Thread David Arnold
Matthias,

This was allowed at one time. It is straight out of the Metafun manual.

At 02:03 PM 11/4/04 -0500, you wrote:
>
>On Nov 4, 2004, at 1:07 PM, David Arnold wrote:
>
>> All,
>>
>> This file:
>>
>> \setupoutput[pdf]
>>
>> \startreusableMPgraphic{layout 1}
>> pickup pencircle scaled 1mm;
>> fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
>> fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 
>> 0.625yellow;
>> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 
>> 0.625red;
>> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 
>> 0.625red;
>> draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 
>> 0.25white;
>> drawarrow (2cm,8cm)--top (2cm,7.5cm);
>> drawarrow (0cm,7cm)--lft(1cm,7cm);
>> clip currentpicture to unitsquare xyscaled (7cm,8cm);
>> \stopreusableMPgraphic
>>
>>
>> \startreusableMPgraphic{layout 2}
>> \includeMPgraphic{layout 1}
>
>^
>is that allowed? (it works without)
>
>
>> clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
>> currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
>> setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
>> \stopreusableMPgraphic
>>
>>
>>
>> \setupcolors[state=start]
>>
>> \starttext
>>
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>>
>>  \hbox
>> {\reuseMPgraphic{layout 1}\hskip1cm
>> \reuseMPgraphic{layout 2}}
>>
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>>
>> \page
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>>
>> \startlinecorrection[blank]
>>  \hbox
>> {\reuseMPgraphic{layout 1}\hskip1cm
>> \reuseMPgraphic{layout 2}}
>> \stoplinecorrection
>>
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>> Now is the time for all good men to come to the aid of their country.
>>
>> \stoptext
>>
>>
>> Produces this error:
>>
>> ERROR: Undefined control sequence.
>>
>> --- TeX said ---
>> \getobject ...->\blabelgroup \let \dohandleobject
>>   \dogetobject \csname
>> \r!ob...
>>  \includeMPgraphic {layout 1}
>> clip currentpicture to 
>> unitsquare
>> sc...
>>
>> \nonowriteMPgraphicline ... \long \edef \ascii {#1
>>   }\expandafter
>> \flushMPgrap...
>>
>> \sh

[NTG-context] \reuseMPgraphic error

2004-11-04 Thread David Arnold
All,

This file:

\setupoutput[pdf]

\startreusableMPgraphic{layout 1}
pickup pencircle scaled 1mm;
fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopreusableMPgraphic


\startreusableMPgraphic{layout 2}
\includeMPgraphic{layout 1}
clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
\stopreusableMPgraphic



\setupcolors[state=start]

\starttext

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

 \hbox
{\reuseMPgraphic{layout 1}\hskip1cm
\reuseMPgraphic{layout 2}}

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

\page
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

\startlinecorrection[blank]
 \hbox
{\reuseMPgraphic{layout 1}\hskip1cm
\reuseMPgraphic{layout 2}}
\stoplinecorrection

Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.

\stoptext


Produces this error:

ERROR: Undefined control sequence.

--- TeX said ---
\getobject ...->\blabelgroup \let \dohandleobject 
  \dogetobject \csname
\r!ob...
 \includeMPgraphic {layout 1}
clip currentpicture to unitsquare
sc...

\nonowriteMPgraphicline ... \long \edef \ascii {#1
  }\expandafter
\flushMPgrap...

\shortMPflushN ...nowriteMPgraphicline #1#2\MPend 
  \expandafter
\shortMPflush...
 ...itsquare scaled 3cm shifted (0,5cm);

currentpicture:=currentpi...

\writeMPgraphicshortN ... \space \shortMPflushN #1
  \empty ;\relax ;\egroup 
...
l.40 \reuseMPgraphic{layout 2}}
   
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentstyle
command.

Any ideas?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] No color even though \setupcolors[state=start]

2004-11-04 Thread David Arnold
All,

Duh! draw, not fill! Sorry.

At 09:07 AM 11/4/04 -0800, you wrote:
>All,
>
>Can anyone tell me why I am not getting any color (red and yellow)?
>
>\startuseMPgraphic{layout 1}
>pickup pencircle scaled 1mm;
>fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
>fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow;
>fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red;
>fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
>fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;

draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;

>drawarrow (2cm,8cm)--top (2cm,7.5cm);
>drawarrow (0cm,7cm)--lft(1cm,7cm);
>clip currentpicture to unitsquare xyscaled (7cm,8cm);
>\stopuseMPgraphic
>
>\startuseMPgraphic{layout 2}
>\includeMPgraphic{layout 1}
>clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
>currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
>setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
>\stopuseMPgraphic
>
>
>\setupcolors[state=start]
>
>\starttext
>
>\startlinecorrection[blank]
>\hbox
>{\useMPgraphic{layout 1}\hskip1cm
>\useMPgraphic{layout 2}}
>\stoplinecorrection
>
>\stoptext
>
>___
>ntg-context mailing list
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] No color even though \setupcolors[state=start]

2004-11-04 Thread David Arnold
All,

Can anyone tell me why I am not getting any color (red and yellow)?

\startuseMPgraphic{layout 1}
pickup pencircle scaled 1mm;
fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopuseMPgraphic

\startuseMPgraphic{layout 2}
\includeMPgraphic{layout 1}
clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
\stopuseMPgraphic


\setupcolors[state=start]

\starttext

\startlinecorrection[blank]
\hbox
{\useMPgraphic{layout 1}\hskip1cm
\useMPgraphic{layout 2}}
\stoplinecorrection

\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] s-pre-61

2004-11-04 Thread Arnold, David
Hans et al,

OK, s-pre-61 looks nice and the source is not too long. It looks like a good
place to start. So, I tried:

Texexec --pdf --mode=demo s-pre-61

I got:

(./type-spe.tex) (./type-exa.tex) (./type-akb.tex) (./type-ghz.tex)"makemf"
--ve
rbose "ec-lt55483"
"hbf2gf" -q -g "ec-lt55483" 300
maketfm: No creation rule for font "ec-lt55483".

! Font \*mainface12ptsstf*:=ec-lt55483 at 12.0pt not loadable: Metric (TFM)
fil
e not found.

   \let
\xxdododefinefont ... {#4}\newfontidentifier \let
  \localrelativefontsize
\de...

\fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
 ...yle \fontalternative \fontsize
  \fi \iftryingfont
\fontstr...

\synchronizefont ...strategy \the \fontstrategies
  \relax \fi \iftryingfont
\...
 \getvalue [EMAIL PROTECTED]@ \fontstyle }
   \edef \fontstyle {\fontstyle
}\if...
...
l.20 \setupbodyfont[mainface,ss,18pt]

?

Now, I know this is related to a font, so I looked in the source and found:

\usetypescriptfile[type-ghz]
\definetypeface[mainface][ss][sans][optima-nova][default][encoding=\defaulte
ncoding]
\setupbodyfont[mainface,ss,18pt]
\setupinterlinespace[line=3.25ex]

Since I am trying to learn Context in some depth this go round, I'd like to
start by getting this font installed, if possible. What's the easiest way to
get this done?

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Override starttyping environment

2004-11-04 Thread Arnold, David
Hans et al,

I have in my preamble:

\definetyping[matlab]

\setuptyping[matlab]
[before={\startframedtext[width=\makeupwidth,
  background=screen,
  backgroundscreen=0.9]},
  after={\stopframedtext},
  color=darkred]

Later in my document, I tried to center one of these environments:

\startalignment[middle]
\switchtobodyfont[big]
\startmatlab
y = x.^2 -2*x - 3
\stopmatlab
\stopalignment

But it comes out left justified, not centered. 

Any ideas how I can center one of these environments, one time only?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuplayout --- what do parameters mean?

2004-11-03 Thread David Arnold
All,

When I see something like this:

\setuplayout
  [topspace=10pt,
   header=40pt,
   headerdistance=20pt,
   height=middle,
   footerdistance=20pt,
   footer=0pt,
   bottomdistance=10pt,
   bottom=20pt,
   bottomspace=40pt,
   backspace=30pt,
   width=middle]

I have a hard time working out what it means. I know I can do \showframe,
but that doesn't indicate everything I need to see. Does anyone have a
macro that shows ALL of these parameters in a visual way, similar to that
on page 182 of the Latex User Guide, 2nd ed., Lamport?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-03 Thread David Munger
Hi Otared,

Thanks a lot for you macros. They do the job pretty well. They remind me
of the way Prosper does things. When I have time, I'll try to find out
how to Wiki your post. Thanks again!

David

Otared Kavian wrote :
> Hi David,
> 
> A few months ago I had to use steps in my presentations, but since I 
> could not use thouroughly s-pre-60.tex (and the examples given in 
> s-pre-61.tex) I ended up
> writing a few macros which work fine with ConTeXt and the presentation modules.
> These macros are very elementary and crude, but they work...
> If I succeed to learn how to use layers smartly as does Hans, I will 
> write these macros again. :-)
> 
> Below are the macros and some examples.
> Best regards: OK
>  begin test-step-ok.tex
> %%K test-step-ok.tex
> 
> %%K Here we use the plain \TeX\ command \phantom{} in order to have
> %%K some material appear step by step.
> %%K The structure is quite simple, but since I am not very
> %%K familiar with ConTeXt, I cannot write elegant code as does
> %%K Hans Hagen...
> %%K
> %%K An advantage is that the code can be used also in
> %%K plain TeX, in LaTeX and other macro-packages.
> %%K
> 
> \newif\ifSteppingSlide
> \SteppingSlidetrue   %%K this is when you want a step by step presentation
> %\SteppingSlidefalse %%K this is when you want to print the slides
> %
> \newcount\StepsCounter
> \StepsCounter=0
> %
> \newcount\NumberOfSteps
> \NumberOfSteps=10
> %
> \newcount\BeforeStepNumber
> \BeforeStepNumber=0
> %
> %%K StepBetween[number1,number2]{material} will make "material"
> %%K appear between steps "number1" and "number2"
> \def\StepBetween[#1,#2]#3{%
> \ifSteppingSlide
>   \ifnum#1>\StepsCounter \phantom{#3}
>\else
>  \ifnum#2<\StepsCounter \phantom{#3}
>\else \relax #3
>   \fi
>\fi
>\else {#3}
> \fi}
> %
> %%K Step{number1}{material} will make "material"
> %%K appear beginning with step "number1" until "NumberOfSteps"
> \def\Step#1#2{\StepBetween[#1,\NumberOfSteps]{#2}}
> %
> %%K OnlyStep{number1}{material} will make "material"
> %%K appear only on step "number1"
> \def\OnlyStep#1#2{\StepBetween[#1,#1]{#2}}
> %
> %%K StepBefore{number1}{material} will make "material"
> %%K appear only on all steps before "number1"
> \def\StepBefore#1#2{
> \global\BeforeStepNumber=#1
> \StepBetween[0,\BeforeStepNumber]{#2}}
> %
> \long\def\SlideWithSteps#1#2{
> \ifSteppingSlide
> \global\StepsCounter=0
> \global\NumberOfSteps=#1
> \MakeSteps{#2}
> \else #2
> \fi}
> %
> \long\def\MakeSteps#1{\loop #1
> \ifnum\StepsCounter<\NumberOfSteps
> \global\advance\StepsCounter by 1\vfill\eject
> \repeat
> \vfill\eject}
> %
> 
> 
> %%K This is the end of the macros
> %
> 
> % \endinput
> 
> %%K Here is a sample of how you can use these macros
> %%K
> \starttext
> 
> \startitemize
> 
> \SlideWithSteps{8}{
> \item Consider the following nonlinear equation:
> $$\Step{8}{{\partial u \over \partial t}} \Step{1}{-\Delta u + 
> |u|^{p-1}u} \Step{2}{=} \Step{3}{f} \Step{4}{+{\rm div}(g)} 
> \Step{5}{+|\nabla u|{\Step{6}{^2}}}$$
> \StepBetween[3,5]{\item This line appears only between steps 3 and 5}
> \Step{8}{\item The equation may be parabolic.}
> \StepBefore{4}{\item This line appears only before step 4.}
> \OnlyStep{4}{\item This line appears only at step 4.}
> \vfill (Here you see step number \the\StepsCounter)
> } % end of \SlideWithSteps
> 
> \stopitemize
> \page
> 
> \stoptext
> 
> ___
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-02 Thread David Munger
> try
> 
> texexec --pdf --mode=demo s-pre-61

This is actually what I tried.

> and see if that one suit syour needs (the stepper can be used with other sytles 
> as well, once \usemodule[pre-60] is done; acrobat 6 needed)

I think the latest Acrobat Reader version for Linux is 5.0.9. I guess
this means I should forget about steps. Thanks anyway.

David

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-02 Thread David Munger
Nothing seems to work here. I'm afraid the problem is indeed that
Acrobat Reader under Linux is not really JavaScript aware...

Would it be possible to implement the steps commands such that steps
span over multiple slides instead of being managed by JavaScript?

David


Le mardi 02 novembre 2004 Ã 10:58 +0100, Hans Hagen a Ãcrit :
> Henning Hraban Ramm wrote:
> 
> > Am 02.11.2004 um 07:04 schrieb David Munger:
> > 
> >> Could someone tell me if I'm doing something bad here, please?
> >>
> >> File test.tex
> >> ---
> >> \usemodule[pre-original]
> >> \starttext
> >> \Subject{Test}
> >> step 1
> >> \presentationstep
> >> step 2
> >> \stoptext
> >> ---
> >> texexec --mode=step --output=pdf test.tex
> >>
> >> This gives me a white page instead of the text I get without
> >> `--mode=step'.
> > 
> > 
> > You doesn't define a "step" mode, so there's no output.
> > Completely logical. What's the matter?
> > 
> > You can use "--mode=something" switch only for environments like
> > \startmode[something]
> > \stopmode[something]
> > 
> > \startnotmode[something]
> > \stopnotmode[something]
> > 
> > See the wiki:
> > http://contextgarden.net/Modes
> > 
> > But probably you're looking for:
> > http://contextgarden.net/Presentation_effects
> 
> another option is to use s-pre-60
> 
> 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
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: missing =

2004-11-02 Thread David Arnold
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 <[EMAIL PROTECTED]>
>>>Subject: Where did the equal sign go?
>>>To: [EMAIL PROTECTED]
>>>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
>[EMAIL PROTECTED]
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


<    3   4   5   6   7   8   9   10   >