Re: [NTG-context] FunnyText

2004-11-07 Thread Peter Mnster
On Sat, 6 Nov 2004, David Arnold wrote:

 \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?

Not really an answer to your question, but I know about this possibility:

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

\defineoverlay[copyright][\uniqueMPgraphic{copyright}]
\setupbackgrounds[page][background=copyright]

\starttext
\input tufte
\stoptext

Thanks to Tobias Burnus for this code!

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fit in Window

2004-11-07 Thread Peter Mnster
On Sat, 6 Nov 2004, David Arnold wrote:

 What commands do I use in Context to have my slide come up in Acrobat
 Reader's Fit In Window?

This should work:

\setupoutput[pdftex]
\setupinteraction[state=start,focus=fit]
\starttext
some text
\stoptext

But it doesn't... (see also http://contextgarden.net/PDF_startview)

Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \presentationstep

2004-11-07 Thread Otared Kavian
At 3:07 -0500 6/11/04, David Munger wrote:
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
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
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


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