Re: [NTG-context] Troubles with presentations

2015-10-14 Thread Otared Kavian
Hi Tomas,

The rawstep module is to be used with mkii, and the spurious « yes » you see 
appears only when you typeset with mkiv.
On the other hand, it is true that \SetupSteps is not defined or recognized, 
and \StartSteps does not honor the optional arguments, when given.
I have been using an old version of rawsteps for some time and do not remember 
these optional arguments nor having used \SetupSteps.

Here is a file which you can use and change whatever does not suit you. If you 
want to use it as an \input file, please uncomment the line 420, containing

%\doifnotmode{demo}{\endinput}

Best regards: OK



t-rsteps-ok-new.tex
Description: Binary data


> On 06 Oct 2015, at 17:24, Tomas Hala  wrote:
> 
> Hello all,
> 
> I would like to ask for a piece of help with presentations.
> 
> I decided to use the way described at 
> http://wiki.contextgarden.net/Presentations
> and http://wiki.contextgarden.net/RawSteps. (I use TL 2015.)
> 
> Problems I came across are:
> 1. On the first slide, a line with the word "yes" has been generated. 
> (Sometimes more than once, in dependence of number of modules.)
> 2. Command SetupSteps is undefined.
> 3. Command StartSteps is defined but not applied.
> 
> What I am doing wrong?
> Is somewhere any more detail documentation?
> 
> Thanks,
> 
> Tomas
> 
> 
> Almost minimal example:
> 
> 
> \usemodule[pre-original]
> \usemodule[rsteps]
> \usemodule[pre-60]
> 
> \setuppapersize[S6][S6]
> \setuppagenumbering[state=stop]
> \setuptolerance[verytolerant,stretch]
> \setupinteractionscreen[option=max]
> \setupinteraction[state=start,color=middlered]
> \useURL [garden][http://contextgarden.net][][Context garden]
> 
> %\SetupSteps[defaultsection=Subject,reserve=no]
> 
> \starttext%
> 
> \TitlePage {pre-funny\\Title Page}
> The \from[garden] site is useful.
> 
> \page
> The \from[garden] site is useful.
> 
> \page
> \StartSteps[Topic][Topic Title]
> This is a topic slide.
> \NextStep
> Another step.
> \StopSteps
> 
> \stoptext
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] use of preceding-sibling in xmlsetsetup

2015-10-14 Thread massifr
I've found a better solution:

\startxmlsetups xml:p
  \doif{\xmlattribute{#1}{reverse-sibling::p[1]}{class}}{incipit}{\noindent}%
  \xmlflush{#1}\par
\stopxmlsetups

Still I did not manage to put that rule in a xmlsetsetup.
Tried this:

\xmlsetsetup{#1}{p[reverse-sibling::p[1]/attribute('class') == 
'incipit']}{xml:p:noindent}

but it does not work.

> Hello list,
> I need a lpath expression to intercept the first p (HTML paragraph) 
> after a p of class "incipit". Here's a (not) working example:
> 
> \startbuffer[test]
> 
>   Dear list,
>   this paragraph should not be indented, because it follows the “incipit”
>   of the letter.
>   This one and the following ones should be indented.
>   You may question whether “Dear list,” should be a paragraph of his own,
>   but my text is already formatted like that and I can’t do anything 
>   about it.
> 
> \stopbuffer
> 
> \startxmlsetups xml:somesetups
>   \xmlsetsetup{#1}{text}{xml:text}
>   \xmlsetsetup{#1}{p}{xml:p}
>   \xmlsetsetup{#1}{p[@class='incipit']}{xml:p:noindent}
>   % the following lpath expression does not work
>   \xmlsetsetup{#1}{p[./preceding-sibling::[-1][@class = 
> 'incipit']]}{xml:p:noindent}
> \stopxmlsetups
> 
> \xmlregistersetup{xml:somesetups}
> 
> \startxmlsetups xml:text
>   \indenting[{yes,first,12pt}]
>   \xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:p
>   \xmlflush{#1}\par
> \stopxmlsetups
> 
> \startxmlsetups xml:p:noindent
>   \noindent\xmlflush{#1}\par
> \stopxmlsetups
> 
> \starttext
>   \xmlprocessbuffer{main}{test}{}
> \stoptext
> 
> Thanks for any help.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___