https://wiki.contextgarden.net/api.php?action=feedcontributions&user=141.84.28.191&feedformat=atomWiki - User contributions [en]2024-03-29T10:19:39ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Main_Page&diff=1264Main Page2004-11-03T16:52:27Z<p>141.84.28.191: </p>
<hr />
<div>==Welcome to the ConTeXt wiki!==<br />
<br />
[[Image:kochloewe_c.jpg|ConTeXt cooking lion (by Anna-Lena Ramm)]]<br />
<br />
This is an open community website for the wonderful TeX macro package ConTeXt, created by [http://www.pragma-ade.com Pragma ADE]. <br />
Here you may explore the abundance of information on ConTeXt and participate by creating your own ConTeXt related wiki pages.<br />
<br />
Getting started:<br />
* [[First Document]]<br />
* [[Installation hints]]<br />
* [[Web resources|Resources]] on the web<br />
* [[Related Programs]] and Tools<br />
<br />
* [[Sample documents]]<br />
* [[The ConTeXt Way]]<br />
* [[Visuals]] (Layout, Graphics, Fonts)<br />
* [[Structurals]] (Titles, Tables, Enumerations)<br />
* [[Presentations]]<br />
* [[XML]]<br />
* [[Math]] and Science<br />
* [[Inside ConTeXt]] (Programming)<br />
* [[From LaTeX to ConTeXt]]<br />
* [[Bugs and workarounds]]</div>141.84.28.191https://wiki.contextgarden.net/index.php?title=Presentations&diff=376Presentations2004-11-03T16:50:39Z<p>141.84.28.191: </p>
<hr />
<div>< [[Main Page]] | \[[SlideWithSteps]] ><br />
<br />
==Official modules==<br />
<br />
Waiting for someone to write something about them ...<br />
<br />
==Some Ideas==<br />
<br />
Here's an Interesting post, written by Maurice Diamantini:<br />
[[http://archive.contextgarden.net/message/20041103.074705.2f196f69.html]]<br />
<br />
...<br />
<br />
So I think that ConTeXt should provide a mean (option in textexec)<br />
to make pdf-only version of presentation.<br />
<br />
Finaly there could be three output levels for pdf presentation :<br />
<br />
* presentation step '''using javascript''' (with allow blinking, merging, zooming or other nice flashing features ;-)<br />
* presentation step '''without javascript''' (one pdf page by step)<br />
** Good format for presentation by foreign pdf reader<br />
* pdf file '''one pdf page''' for each final step by page<br />
** Good format for printing 2up or 4up slides<br />
** This third output would also allow to print a ''"slide + comment"'' version of the presentation for the speacker.<br />
<br />
The option of texexec could be something like<br />
<br />
--pdfonly<br />
<br />
instead of --pdf, or simply<br />
<br />
--use-javascript=false<br />
<br />
==Working Example (for the ones not satisfied with \presentationstep)==<br />
<br />
Here are some simple macros almost fully satisfying the idea above with \[[SlideWithSteps]], shared with the others by Otared Kavian:<br />
[[http://archive.contextgarden.net/message/20041103.083500.43ac3121.html]]</div>141.84.28.191https://wiki.contextgarden.net/index.php?title=Presentations&diff=374Presentations2004-11-03T16:48:39Z<p>141.84.28.191: </p>
<hr />
<div>< [[Main Page]] ><br />
<br />
==Official modules==<br />
<br />
Waiting for someone to write something about them ...<br />
<br />
==Some Ideas==<br />
<br />
Here's an Interesting post, written by Maurice Diamantini:<br />
[[http://archive.contextgarden.net/message/20041103.074705.2f196f69.html]]<br />
<br />
...<br />
<br />
So I think that ConTeXt should provide a mean (option in textexec)<br />
to make pdf-only version of presentation.<br />
<br />
Finaly there could be three output levels for pdf presentation :<br />
<br />
* presentation step '''using javascript''' (with allow blinking, merging, zooming or other nice flashing features ;-)<br />
* presentation step '''without javascript''' (one pdf page by step)<br />
** Good format for presentation by foreign pdf reader<br />
* pdf file '''one pdf page''' for each final step by page<br />
** Good format for printing 2up or 4up slides<br />
** This third output would also allow to print a ''"slide + comment"'' version of the presentation for the speacker.<br />
<br />
The option of texexec could be something like<br />
<br />
--pdfonly<br />
<br />
instead of --pdf, or simply<br />
<br />
--use-javascript=false<br />
<br />
==Working Example (for the ones not satisfied with \presentationstep)==<br />
<br />
Here are some simple macros almost fully satisfying the idea above with \[[SlideWithSteps]], shared with the others by Otared Kavian:<br />
[[http://archive.contextgarden.net/message/20041103.083500.43ac3121.html]]</div>141.84.28.191https://wiki.contextgarden.net/index.php?title=SlideWithSteps&diff=390SlideWithSteps2004-11-03T16:35:45Z<p>141.84.28.191: /* Commands */</p>
<hr />
<div>< [[Main Page]] | [[Presentations]] ><br />
<br />
These macros were written by Otared Kavian:<br />
[[http://archive.contextgarden.net/message/20041103.083500.43ac3121.html]]<br />
<br />
==Commands==<br />
<br />
<table><br />
<tr><th>Command</th><th>Description</th></tr><br />
<tr><td>\SlideWithSteps{''n''}{... slide content ...}</td><td>''n'' - the overall number of steps on this slide</td></tr><br />
<tr><td>\Step{''n''}{... content ...}</td><td>content appears on step ''n''</td></tr><br />
<tr><td>\StepBefore{''n''}{... content ...}</td><td>content disappears on step ''n''</td></tr><br />
<tr><td>\OnlyStep{''n''}{... content ...}</td><td>content appears on step ''n'' only</td></tr><br />
<tr><td>\StepBetween[''n'',''m'']{... content ...}</td><td>content appears between steps ''n'' and ''m'' only</td></tr><br />
<tr><th>Other Commands</th><th>Description</th></tr><br />
<tr><td>\the\StepCounter</td><td>step number</td></tr><br />
<tr><td>\SteppingSlidetrue</td><td>for screen presentations</td></tr><br />
<tr><td>\SteppingSlidefalse</td><td>for printed material (full content on one page)</td></tr><br />
</table><br />
<br />
See the following example as a reference.<br />
<br />
==Code==<br />
<br />
<texcode><br />
<br />
%%%%%%%%%%%% begin test-step-ok.tex<br />
%%K test-step-ok.tex<br />
<br />
%%K Here we use the plain \TeX\ command \phantom{} in order to have<br />
%%K some material appear step by step.<br />
%%K The structure is quite simple, but since I am not very<br />
%%K familiar with ConTeXt, I cannot write elegant code as does<br />
%%K Hans Hagen...<br />
%%K<br />
%%K An advantage is that the code can be used also in<br />
%%K plain TeX, in LaTeX and other macro-packages.<br />
%%K<br />
<br />
\newif\ifSteppingSlide<br />
\SteppingSlidetrue %%K this is when you want a step by step presentation<br />
%\SteppingSlidefalse %%K this is when you want to print the slides<br />
%<br />
\newcount\StepsCounter<br />
\StepsCounter=0<br />
%<br />
\newcount\NumberOfSteps<br />
\NumberOfSteps=10<br />
%<br />
\newcount\BeforeStepNumber<br />
\BeforeStepNumber=0<br />
%<br />
%%K StepBetween[number1,number2]{material} will make "material"<br />
%%K appear between steps "number1" and "number2"<br />
\def\StepBetween[#1,#2]#3{%<br />
\ifSteppingSlide<br />
\ifnum#1>\StepsCounter \phantom{#3}<br />
\else<br />
\ifnum#2<\StepsCounter \phantom{#3}<br />
\else \relax #3<br />
\fi<br />
\fi<br />
\else {#3}<br />
\fi}<br />
%<br />
%%K Step{number1}{material} will make "material"<br />
%%K appear beginning with step "number1" until "NumberOfSteps"<br />
\def\Step#1#2{\StepBetween[#1,\NumberOfSteps]{#2}}<br />
%<br />
%%K OnlyStep{number1}{material} will make "material"<br />
%%K appear only on step "number1"<br />
\def\OnlyStep#1#2{\StepBetween[#1,#1]{#2}}<br />
%<br />
%%K StepBefore{number1}{material} will make "material"<br />
%%K appear only on all steps before "number1"<br />
\def\StepBefore#1#2{<br />
\global\BeforeStepNumber=#1<br />
\StepBetween[0,\BeforeStepNumber]{#2}}<br />
%<br />
\long\def\SlideWithSteps#1#2{<br />
\ifSteppingSlide<br />
\global\StepsCounter=0<br />
\global\NumberOfSteps=#1<br />
\MakeSteps{#2}<br />
\else #2<br />
\fi}<br />
%<br />
\long\def\MakeSteps#1{\loop #1<br />
\ifnum\StepsCounter<\NumberOfSteps<br />
\global\advance\StepsCounter by 1\vfill\eject<br />
\repeat<br />
\vfill\eject}<br />
%<br />
<br />
<br />
%%K This is the end of the macros<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% \endinput<br />
<br />
%%K Here is a sample of how you can use these macros<br />
%%K<br />
\starttext<br />
<br />
\startitemize<br />
<br />
\SlideWithSteps{8}{<br />
\item Consider the following nonlinear equation:<br />
$$\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}}}$$<br />
\StepBetween[3,5]{\item This line appears only between steps 3 and 5}<br />
\Step{8}{\item The equation may be parabolic.}<br />
\StepBefore{4}{\item This line appears only before step 4.}<br />
\OnlyStep{4}{\item This line appears only at step 4.}<br />
\vfill (Here you see step number \the\StepsCounter)<br />
} % end of \SlideWithSteps<br />
<br />
\stopitemize<br />
\page<br />
<br />
\stoptext<br />
<br />
</texcode></div>141.84.28.191https://wiki.contextgarden.net/index.php?title=SlideWithSteps&diff=373SlideWithSteps2004-11-03T16:30:33Z<p>141.84.28.191: </p>
<hr />
<div>< [[Main Page]] | [[Presentations]] ><br />
<br />
These macros were written by Otared Kavian:<br />
[[http://archive.contextgarden.net/message/20041103.083500.43ac3121.html]]<br />
<br />
==Commands==<br />
<br />
<table><br />
<tr><th>Command</th><th>Description</th></tr><br />
<tr><td>\SlideWithSteps{''n''}{... slide content ...}</td><td>''n'' - the overall number of steps on this slide</td></tr><br />
<tr><td>\Step{''n''}{... content ...}</td><td>content appears on step ''n''</td></tr><br />
<tr><td>\StepBefore{''n''}{... content ...}</td><td>content disappears on step ''n''</td></tr><br />
<tr><td>\OnlyStep{''n''}{... content ...}</td><td>content appears on step ''n'' only</td></tr><br />
<tr><td>\StepBetween[''n'',''m'']{... content ...}</td><td>content appears between steps ''n'' and ''m'' only</td></tr><br />
<tr><td>\the\StepCounter</td><td>step number</td></tr><br />
</table><br />
<br />
See the following example as a reference.<br />
<br />
==Code==<br />
<br />
<texcode><br />
<br />
%%%%%%%%%%%% begin test-step-ok.tex<br />
%%K test-step-ok.tex<br />
<br />
%%K Here we use the plain \TeX\ command \phantom{} in order to have<br />
%%K some material appear step by step.<br />
%%K The structure is quite simple, but since I am not very<br />
%%K familiar with ConTeXt, I cannot write elegant code as does<br />
%%K Hans Hagen...<br />
%%K<br />
%%K An advantage is that the code can be used also in<br />
%%K plain TeX, in LaTeX and other macro-packages.<br />
%%K<br />
<br />
\newif\ifSteppingSlide<br />
\SteppingSlidetrue %%K this is when you want a step by step presentation<br />
%\SteppingSlidefalse %%K this is when you want to print the slides<br />
%<br />
\newcount\StepsCounter<br />
\StepsCounter=0<br />
%<br />
\newcount\NumberOfSteps<br />
\NumberOfSteps=10<br />
%<br />
\newcount\BeforeStepNumber<br />
\BeforeStepNumber=0<br />
%<br />
%%K StepBetween[number1,number2]{material} will make "material"<br />
%%K appear between steps "number1" and "number2"<br />
\def\StepBetween[#1,#2]#3{%<br />
\ifSteppingSlide<br />
\ifnum#1>\StepsCounter \phantom{#3}<br />
\else<br />
\ifnum#2<\StepsCounter \phantom{#3}<br />
\else \relax #3<br />
\fi<br />
\fi<br />
\else {#3}<br />
\fi}<br />
%<br />
%%K Step{number1}{material} will make "material"<br />
%%K appear beginning with step "number1" until "NumberOfSteps"<br />
\def\Step#1#2{\StepBetween[#1,\NumberOfSteps]{#2}}<br />
%<br />
%%K OnlyStep{number1}{material} will make "material"<br />
%%K appear only on step "number1"<br />
\def\OnlyStep#1#2{\StepBetween[#1,#1]{#2}}<br />
%<br />
%%K StepBefore{number1}{material} will make "material"<br />
%%K appear only on all steps before "number1"<br />
\def\StepBefore#1#2{<br />
\global\BeforeStepNumber=#1<br />
\StepBetween[0,\BeforeStepNumber]{#2}}<br />
%<br />
\long\def\SlideWithSteps#1#2{<br />
\ifSteppingSlide<br />
\global\StepsCounter=0<br />
\global\NumberOfSteps=#1<br />
\MakeSteps{#2}<br />
\else #2<br />
\fi}<br />
%<br />
\long\def\MakeSteps#1{\loop #1<br />
\ifnum\StepsCounter<\NumberOfSteps<br />
\global\advance\StepsCounter by 1\vfill\eject<br />
\repeat<br />
\vfill\eject}<br />
%<br />
<br />
<br />
%%K This is the end of the macros<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% \endinput<br />
<br />
%%K Here is a sample of how you can use these macros<br />
%%K<br />
\starttext<br />
<br />
\startitemize<br />
<br />
\SlideWithSteps{8}{<br />
\item Consider the following nonlinear equation:<br />
$$\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}}}$$<br />
\StepBetween[3,5]{\item This line appears only between steps 3 and 5}<br />
\Step{8}{\item The equation may be parabolic.}<br />
\StepBefore{4}{\item This line appears only before step 4.}<br />
\OnlyStep{4}{\item This line appears only at step 4.}<br />
\vfill (Here you see step number \the\StepsCounter)<br />
} % end of \SlideWithSteps<br />
<br />
\stopitemize<br />
\page<br />
<br />
\stoptext<br />
<br />
</texcode></div>141.84.28.191