some equivalent of latex beamer \item<uncover@1>?
Hello,
I am trying to implement a similar effect to latex beamer's
\begin{itemize}
\item
On 18-2-2011 9:35, Pau wrote:
Hello,
I am trying to implement a similar effect to latex beamer's
\begin{itemize} \item
\item \item \end{itemize}
quite a horrible syntax
What'd be the equivalent/similar/better of that in ConTeXt?
see s-pre-6* and s-pre-7* styles (often examples at the end) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello Hans, thanks for your reply. This is Installed Packages Name : texlive-context Arch : i686 Version : 2007 Release : 56.fc14 Size : 103 k Repo : installed
From repo : fedora Summary : ConTeXt is a document preparation system based on TeX URL : http://tug.org/texlive/ License : GPLv2 and BSD and Public Domain and LGPLv2+ and GPLv2+ and LPPL Description : ConTeXt is a document preparation system based on TeX.
13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials : tex,postscript,rokicki loaded system : exemple.top loaded (./exemple.top specials : loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.tex (/usr/share/texmf/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,tpd loaded ) systems : system commands are disabled system : module s-pre-61 loaded (./s-pre-61.tex system : module pre-60 loaded (./s-pre-60.tex javascript : loading script set stp (/usr/share/texmf/tex/context/base/java-stp.tex)
on fedora 14 (latest release).
It seems that texlive is not the latest what you have. I don't know
whether that makes a difference.
In any case, I only have these here:
deukalion(pts/101)| locate s-pre-6
/usr/share/texmf/tex/context/base/s-pre-60.tex
/usr/share/texmf/tex/context/base/s-pre-61.tex
/usr/share/texmf/tex/context/base/s-pre-62.tex
/usr/share/texmf/tex/context/base/s-pre-63.tex
deukalion(pts/101)| locate s-pre-7
So, no s-pre-7*
In one of the 60 I have seen what seems to be what I asked for:
In s-pre-61.tex I see
\StartSteps
\startitemize
\item Mark Hollis \FlushStep
\item Roger Waters \FlushStep
\item David Gilmore \FlushStep
\item Peter Gabriel \FlushStep
\item Randy Newman \FlushStep
\stopitemize
\StopSteps
Obviously I have to define Steps and I am using for my presentation pre-fuzzy
How could I add Step to pre-fuzzy?
I have looked into s-pre-61.tex to see whether I could get an idea (I
apologise for my ignorance).
However, I do not see the function defined in it and, when I tried to
run texexec on "exemple.tex", which uses it as
------------
\usemodule[s-pre-61]
\usemodule[amsl]
\useMPlibrary[txt]
\starttext
\Topic{And Some More}
\StartSteps
\startitemize
\item Mark Hollis \FlushStep
\item Roger Waters \FlushStep
\item David Gilmore \FlushStep
\item Peter Gabriel \FlushStep
\item Randy Newman \FlushStep
\stopitemize
\StopSteps
\stoptext
------------------------------
If fails :
-------------------------------------------------------------------------
deukalion(pts/101)| texexec exemple.tex
TeXExec | processing document 'exemple.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file exemple.top
TeXExec | using randomseed 1381
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
(/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./exemple.tex
ConTeXt ver: 2007.01.12 15:56 MKII fmt: 2010.11.3 int: english/english
language : language en is active
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/home/pau/fitx_confg/texinputs/cont-sys.tex
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont : 12pt rm is loaded
language : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
metapost : loading metapost library nav
(/usr/share/texmf/tex/context/base/meta-nav.tex))
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-ghz.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-ghz.tex)kpathsea: Running
mktextfm ec-lt55483
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;
nonstopmode; input ec-lt55483
This is METAFONT, Version 2.71828 (Web2C 7.5.6)
kpathsea: Running mktexmf ec-lt55483
! I can't find file `ec-lt55483'.
<*> ...four; mag:=1; nonstopmode; input ec-lt55483
Please type another input file name
! Emergency stop.
<*> ...four; mag:=1; nonstopmode; input ec-lt55483
Transcript written on mfput.log.
grep: ec-lt55483.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input ec-lt55483' failed to make ec-lt55483.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \*mainface12ptsstfss*:=ec-lt55483 at 12.0pt not loadable: Metric (TFM) f
ile not found.
<to be read again>
\relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
\let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
\tryingfontfalse \fi
<inserted text> ...yle \fontalternative \fontsize
\fi \iftryingfont \fontstr...
\synchronizefont ...strategy \the \fontstrategies
\relax \fi \iftryingfont \...
<argument> \getvalue {\@style@ \fontstyle }
\edef \fontstyle {\fontstyle }\if...
...
l.22 \setupbodyfont[mainface,ss,18pt]
------------------------------------------------------------------------------------------
How can I use Steps with pre-fuzzy and what am I doing wrong altogether?
Thanks in any case for everything!
Pau
On 19 February 2011 12:42, Hans Hagen
On 18-2-2011 9:35, Pau wrote:
Hello,
I am trying to implement a similar effect to latex beamer's
\begin{itemize} \item
\item \item \end{itemize} quite a horrible syntax
What'd be the equivalent/similar/better of that in ConTeXt?
see s-pre-6* and s-pre-7* styles (often examples at the end)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 19-2-2011 9:57, Pau wrote:
Hello Hans,
thanks for your reply.
This is
Installed Packages Name : texlive-context
the minimals have some more ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello,
since I somehow managed to end up in the rpm dependence hell with a
broken "update" of texlive, I went and did a manual *full* install of
texlive 2010... still, I do not find more examples.
Could you enlighten my ignorance with a concise example?
thanks
On 20 February 2011 00:07, Hans Hagen
On 19-2-2011 9:57, Pau wrote:
Hello Hans,
thanks for your reply.
This is
Installed Packages Name : texlive-context
the minimals have some more
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thanks to Wolfgang's (seemingly infinite amount of!!) patience, I have
managed to get this one running.
I have one question, though.
Has anybody been successful at running any other software than
acroread for pdf documents which require javascript functions such as
in this example?
This should probably go to a different thread but, since it is the
first time I run into this snag, it kind of makes sense to have it
stick to the Steps function problem I had
Thanks to everybody for your help, context and everything!
Pau
On 20 February 2011 00:07, Hans Hagen
On 19-2-2011 9:57, Pau wrote:
Hello Hans,
thanks for your reply.
This is
Installed Packages Name : texlive-context
the minimals have some more
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 19.02.2011 um 21:57 schrieb Pau:
Obviously I have to define Steps and I am using for my presentation pre-fuzzy
How could I add Step to pre-fuzzy?
I have looked into s-pre-61.tex to see whether I could get an idea (I apologise for my ignorance).
To use the step-machanism you can load the file “pre-stepwise”, e.g. \usemodule[pre-stepwise] \starttext \StartSteps \startitemize \item one \FlushStep \item two \FlushStep \item three \FlushStep \stopitemize \StopSteps \stoptext is enough. To add the function to “pre-fuzzy” you can try \usemodule[pre-fuzzy,pre-stepwise] \starttext ... \stoptext Wolfgang
Dear Wolfgang,
thanks a lot for your clear and detailed example.
However I seem to be missing the pre-stepwise module and I do not understand why
I have followed step by step this
http://www.tug.org/texlive/acquire-netinstall.html
and everything has worked just fine. As a matter of fact
deukalion(pts/113)| texexec --check | grep source
TeXExec | context source date: 2010.05.24 13:05
Correct me if I am wrong, but isn't texlive supposed to give me a full
working recent version of all of context and its modules?
thanks for everything
On 20 February 2011 09:13, Wolfgang Schuster
Am 19.02.2011 um 21:57 schrieb Pau:
Obviously I have to define Steps and I am using for my presentation pre-fuzzy
How could I add Step to pre-fuzzy?
I have looked into s-pre-61.tex to see whether I could get an idea (I apologise for my ignorance).
To use the step-machanism you can load the file “pre-stepwise”, e.g.
\usemodule[pre-stepwise]
\starttext
\StartSteps
\startitemize \item one \FlushStep \item two \FlushStep \item three \FlushStep \stopitemize
\StopSteps
\stoptext
is enough. To add the function to “pre-fuzzy” you can try
\usemodule[pre-fuzzy,pre-stepwise]
\starttext ... \stoptext
Wolfgang
Am 20.02.2011 um 12:13 schrieb Pau:
Dear Wolfgang,
thanks a lot for your clear and detailed example.
However I seem to be missing the pre-stepwise module and I do not understand why
You need the file “s-pre-60.tex” (or “s-pre-60.mkii|mkiv”), “pre-stepwise” is just a synonym for this file.
I have followed step by step this
http://www.tug.org/texlive/acquire-netinstall.html
and everything has worked just fine. As a matter of fact
deukalion(pts/113)| texexec --check | grep source TeXExec | context source date: 2010.05.24 13:05
Correct me if I am wrong, but isn't texlive supposed to give me a full working recent version of all of context and its modules?
Modules are updated but context itself will always stay the same version till the next texlive version because mkiv needs always a certain luatex version and mkii is frozen. Wolfgang
On Fri, Feb 18, 2011 at 21:35, Pau wrote:
Hello,
I am trying to implement a similar effect to latex beamer's
\begin{itemize} \item
\item \item \end{itemize} What'd be the equivalent/similar/better of that in ConTeXt?
Apart from JavaScript-based mechanism somebody used to write t-rsteps module long time ago: http://modules.contextgarden.net/t-rsteps which creates multiple slides instead of using JavaScript (the same way as Beamer does, but is probably more primitive). It worked nicely (I used it several times), but I haven't tested it recently, so I'm not sure if it still works fine with recent ConTeXt versions. It would be great if \StartSteps, \FlushStep, ... written by Hans would also optionally support creating multiple slides for viewers other than Acrobat. Mojca
On 20-2-2011 7:58, Mojca Miklavec wrote:
On Fri, Feb 18, 2011 at 21:35, Pau wrote:
Hello,
I am trying to implement a similar effect to latex beamer's
\begin{itemize} \item
\item \item \end{itemize} What'd be the equivalent/similar/better of that in ConTeXt?
Apart from JavaScript-based mechanism somebody used to write t-rsteps module long time ago: http://modules.contextgarden.net/t-rsteps which creates multiple slides instead of using JavaScript (the same way as Beamer does, but is probably more primitive).
It worked nicely (I used it several times), but I haven't tested it recently, so I'm not sure if it still works fine with recent ConTeXt versions.
It would be great if \StartSteps, \FlushStep, ... written by Hans would also optionally support creating multiple slides for viewers other than Acrobat.
Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to patch core macros for this kind of stuff which is not what I like. Also, I've never seen anyone do a presentation with another viewer. Hans (who wonders why no one adds simple javascript support to the other pdf viewers, a reasonable subset would do) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Feb 21, 2011, at 12:57 AM, Hans Hagen wrote:
Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to patch core macros for this kind of stuff which is not what I like. Also, I've never seen anyone do a presentation with another viewer.
Hans
(who wonders why no one adds simple javascript support to the other pdf viewers, a reasonable subset would do)
I do presentations with evince, okular, or Apple's Preview when I'm on OS X. I avoid Adobe Reader as much as I can because it's incredibly bloated (more so at every new version), insists on taking over my operating system (almost impossible to keep it from checking for updates, helpfully "repairing" components and features that I have explicitly disabled), still doesn't autorefresh, and has uglier font rendering, especially in linux. So I don't like javascript solutions at all. For the problem at hand, maybe I'm naive, but here's my thoughts: would it be very hard to implement an alternative with layers? All we need for stepwise stuff to work would be - reset userpagenumber to current value - collect everything on slide in layer X, add layer X + 1 on top of this. Or is this too simplistic? Thomas
On 21-2-2011 8:00, Thomas A. Schmitz wrote:
On Feb 21, 2011, at 12:57 AM, Hans Hagen wrote:
Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to patch core macros for this kind of stuff which is not what I like. Also, I've never seen anyone do a presentation with another viewer.
Hans
(who wonders why no one adds simple javascript support to the other pdf viewers, a reasonable subset would do)
I do presentations with evince, okular, or Apple's Preview when I'm on OS X. I avoid Adobe Reader as much as I can because it's incredibly bloated (more so at every new version), insists on taking over my operating system (almost impossible to keep it from checking for updates, helpfully "repairing" components and features that I have explicitly disabled), still doesn't autorefresh, and has uglier font rendering, especially in linux. So I don't like javascript solutions at all.
For the problem at hand, maybe I'm naive, but here's my thoughts: would it be very hard to implement an alternative with layers? All we need for stepwise stuff to work would be - reset userpagenumber to current value - collect everything on slide in layer X, add layer X + 1 on top of this.
Or is this too simplistic?
there are presentation styles that do that indeed and it works as long as you don't rely on multipass trickery like automatically generated tocs and so (some can be intercepted, some not) .. but it's long ago that i used them so there might be clever tricks at work there Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 02/21/2011 12:57 AM, Hans Hagen wrote:
It would be great if \StartSteps, \FlushStep, ... written by Hans would also optionally support creating multiple slides for viewers other than Acrobat.
Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to patch core macros for this kind of stuff which is not what I like. Also, I've never seen anyone do a presentation with another viewer.
Ehm ... isn't that what s-pre-50 does already? Best wishes, Taco
On Mon, Feb 21, 2011 at 08:48, Taco Hoekwater wrote:
On 02/21/2011 12:57 AM, Hans Hagen wrote:
It would be great if \StartSteps, \FlushStep, ... written by Hans would also optionally support creating multiple slides for viewers other than Acrobat.
Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to patch core macros for this kind of stuff which is not what I like. Also, I've never seen anyone do a presentation with another viewer.
Ehm ... isn't that what s-pre-50 does already?
Interesting. Thanks a lot for pointing it out. (It does lack some less important features like "only put this on slide nr. 2", but the current functionality already covers most of one's needs.) Thanks again, Mojca PS: I won't blame myself for not knowing the file was there if not even Hans remembered :) :) :)
On 21-2-2011 8:48, Taco Hoekwater wrote:
On 02/21/2011 12:57 AM, Hans Hagen wrote:
It would be great if \StartSteps, \FlushStep, ... written by Hans would also optionally support creating multiple slides for viewers other than Acrobat.
Not in the short term, i might give it a try some day but I hate mechanisms that interfere with others in unpredictable ways as do such multiple page solutions (references, spacing etc) unless one sticks to predictable structure and wants to patch core macros for this kind of stuff which is not what I like. Also, I've never seen anyone do a presentation with another viewer.
Ehm ... isn't that what s-pre-50 does already?
indeed, and that's about as far as was reasonable (haven't used it in years) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2011-02-21 Hans Hagen
Also, I've never seen anyone do a presentation with another viewer.
I do. I never use Acrobat Reader.
(who wonders why no one adds simple javascript support to the other pdf viewers, a reasonable subset would do)
I don't think adding JavaScript is a feasible solution. It's very unlikely to be added to all PDF readers. I favour the multi page solution, since it works in all readers without problems. Marco
participants (7)
-
Hans Hagen
-
Marco
-
Mojca Miklavec
-
Pau
-
Taco Hoekwater
-
Thomas A. Schmitz
-
Wolfgang Schuster