Changes

Jump to navigation Jump to search
2,863 bytes added ,  01:52, 29 October 2020
m
no edit summary
< [[Main Page]] | [[Presentation Styles]] | \[[SlideWithSteps]] >= Warning =This page has rarely been updated since 2006.
 == Producing Your Presentations with ConTeXt ==
After using ConTeXt for a while, many users begin to think about producing
This section of the wiki wants to get you started with presentations in
ConTeXt. There's lots of <s>amazing </s> stuff in the distribution already, such as<s>truly amazing </s> 20-year-old [[Presentation Styles|prebuilt styles]] for presentations which
you can simply use by typing, e.g.
</texcode>
The styles are fully documented, and you can learn <s>amazing </s> tricks by looking at
the source and the documentation. However, for beginners, it might be easier to
start with a very basic presentation and then slowly add more fancy stuff. This
interactive screen presentations as well.
=Many information are included in this [http://www.tug.org/pracjourn/2006-2/schmitz/schmitz.pdf article] by Thomas (2006). Aditya Mahajan maintains a step by step instruction about [https://github.com/adityam/context-slides-example on how to create slides in ConTeXt] in 40 commits (2020). = Your First Presentation ==
=== Setting screen dimensions ===
<texcode>\setuppapersize[S6][S6]</texcode>
</texcode>
=== Setting the tolerance ===
Moreover, on slides, you want TeX to be tolerant with its horizontal space
</texcode>
=== Full-screen mode ===
<texcode>\setupinteractionscreen[option=max]</texcode>
will cause launcing the PDF document in full-screen mode. In Acrobat you can use CTRL-L to switch between normal and full-screen mode.
=== Hyperlinks, buttons & navigation ===
{{todo|write something about them}}
Here is a small example showing how to include hyperlinks: <texcode>\setupcolors[state=start]\setupinteraction[state=start,color= Including Graphics middlered]\useURL [garden][http://contextgarden.net]\starttextThe \from[garden] site is useful.\stoptext</texcode> It looks like this (in a PDF viewer the red link is clickable and should call up a browser on the link when you click it): <context>\setupcolors[state=start]\setupinteraction[state=start,color=middlered]\useURL [garden][http://contextgarden.net]\starttextThe \from[garden] site is useful.\stoptext</context> If you want an alternative text to show up in the clickable area, use the fourth argument to \useURL, like this:<texcode>\setupcolors[state=start]\setupinteraction[state=start,color=middlered]\useURL [garden][http://contextgarden.net][][Context garden]\starttextThe \from[garden] is useful.\stoptext</texcode> It looks like this: <context>\setupcolors[state=start]\setupinteraction[state=start,color=middlered]\useURL [garden][http://contextgarden.net][][Context garden]\starttext The \from[garden] is useful.\stoptext</context> The same technique can be used to add navigation buttons. [[Symbols/nav]] provides the symbol. <texcode>\def\fp{\goto{\symbol[firstpage]}[page(1)]}\setupheadertexts[\fp]</texcode> We can also add the button to the footer with [[Command/setupfootertexts]]. <context>\setupcolors[state=start]\setupinteraction[state=start]\def\fp{\goto{\symbol[firstpage]}[page(1)]}\setupheadertexts[\fp]\starttextLorem ipsum dolor sit amet.\stoptext</context>
Everything works just the same way as graphics in usual documents. But if a presentation is your first document, let's repeat it once more here:== Including Graphics ==
<texcode>\externalfigureSee [name[Using_Graphics]][width=...]%% (probably surrounded by \placefigure)</texcode>
=== Graphics with Metafun ===
{{todo|how to make page-dependant graphics}}
=== Animation ===
See [[Animation]] (page is still under construction).
=== Compiling Your First Presentation ===
If you compile a document with these settings, you have something that you
</texcode>
== Refining the Presentation ==
This looks better.
=== Colors ===
Next up: colors. Now I'm aware that the use of colors is an immensely personal
want.
=== Adding fancier effects ===
Now when you look at your slides, you will certainly feel that there's room for
such as "p,0" or "p,4."
=== Adding a Footer ===
Next, the bottom of our slides. If the audience is apt to forget your name, the
<texcode>
\setupfootertexts[{\color[white]{\tfxx \midaligned{\rlap{\currentdate} \hfill TITLE HERE\hfill \llap{YOUR NAME HERE}}}}]
</texcode>
Don't forget to put
the title of your presentation...).
=== Adding a Progress Meter ===
If your audience is able to remember these details, but you suspect they may
{\interactionbar[alternative=f,width=\makeupwidth,height=1ex]}
\stopinteractionmenu
</texcode>
Again, don't forget to put
Finally, a few things about the placement of pictures. This can be done with
the [[{{cmd:framed|\framed]] }} command. You probably have to try and adjust
different parameters to get exactly what you need, but here's something that
worked for me:
=== Adding Pictures ===
In the case of wide pictures, it's fairly easy. You will want them midaligned,
space between the top margin and the footer. I want the text accompanying the
picture opposite it, centered horizontally and vertically. This can be done
with a [[{{cmd:|startcombination|combination]]}}:
<texcode>
\setupcombinations[distance=0pt]
== Post Processing Presentation ==
Sometimes one wants to give a handout of the presentation, with multiple slides on one page. It is easy to do this using {{cmd|combinepages}} or <code>texexec --pdfcombine</code> To use {{cmd|combinepages}}, suppose that your presentation is <code>slides.tex</code>. Create a file <code>handout.tex</code> with the following content <texcode>\setuppapersize [A4][A4] % or [A4,landscape][A4,landscape] \setuplayout [header=0pt,footer=1cm, backspace=1cm,topspace=1cm, width=middle,height=middle] \setupfootertexts [presentation---\currentdate\space---\space\pagenumber] \starttext \combinepages[slides][nx=2,ny=3,frame=on]\stoptext</texcode>This will give you 2*3 slides on A4 paper. = Additional modules ==
* The [[RawSteps]] module enables you to build a presentation step-by-step without the usage of JavaScript
* <s>[[Stepper]] which is buit in ConTeXt.</s>Broken
* The simple slides module [http://github.com/adityam/simple-slides/tree/master simple-slides] serves too.
* [[Presentation effects]], [[Presentation Styles]], [[SlideWithSteps]]
* See in [[Using Graphics| using graphics]] how to use movies.
== Examples of presentations ==
See also [[Sample documents]]
If you're interested in presentations, your first stop should be the [http://www.pragma-ade.com/ pragma website]. You can download pdfs with the documented source-code of 18 presentation modules at http://www.pragma-ade.com/dir/general/sources/. To get a first impression of the visual appearance that the prebuilt styles offer, have a look at http://www.pragma-ade.com/show-pre.pdf (big document, ~ 3 MB!).
{{Todotodo|collect some + some extremely simple}}
* '''Introduction to ConTeXt''' (in French) by Denis Roegel at Gutenberg meeting in 2002 [http://www.gutenberg.eu.org/manifestations/92-supports-29mai2002.html] ([http://www.loria.fr/~roegel/TeX/context-gut2002.tex tex], [http://www.loria.fr/~roegel/TeX/context-gut2002.pdf pdf]) <i>(please add a link to the page from where these two documents are linked to if you find it)</i>.
== Some Ideas ==* [https://github.com/adityam/context-slides-example Slides example] by Aditya Mahajan
= Some Ideas =
<s>
Here's an Interesting post, written by Maurice Diamantini:
[[http://archive.contextgarden.net/message/20041103.074705.2f196f69.html]]
* In general, I seem to have much more luck with advi then with xdvi for doing slides. It supports all kinds of interactive things. I've been told it can even do plugins (movies and such), but they only have a LaTeX package to support that.
</s>
===Working Example (for the ones not satisfied with \presentationstep)===
Here are some simple macros almost fully satisfying the idea above with [[SlideWithSteps]], shared with the others by Otared Kavian:
[[http://archive.contextgarden.net/message/20041103.083500.43ac3121.html]]. David Munger also derived an alternative [[http://archive.contextgarden.net/message/20041106.080646.2544e4f3.html]] from Otared Kavian's work.Bateni has ported that work to MkiV [[https://github.com/bateni/rawsteps-mkiv]]  [[Category:Layout]][[Category:Interaction]][[Category:Presentation]]
17

edits

Navigation menu