Re: calling \begin{slide} from a new env or a macro.

2001-06-15 Thread Stephan Lehmke

"Stefan Monnier" wrote on 14 Jun 2001 18:18:15 -0400:
> 
> I seem to be unable to use \begin{slide} and\end{slide} from
> a \newenvironment or a \newcommand when using powersem with the
> display option.  More specifically something like:
> 
> \documentclass[display]{powersem}
> \newenvironment{myslide} {\begin{slide}} {\end{slide}}
> \begin{document}
>   \begin{myslide}
> hello there
>   \end{myslide}
> \end{document}
> 
> simply produces no output.  Removing the `display' option or using `slide'
> rather than `myslide' results in the expected single-page dvi file.
> 
> The same problem seems to happen with newcommand:
> 
> \documentclass[display]{powersem}
> \newcommand\foo{\end{slide}\begin{slide}}
> \begin{document}
>   \begin{slide}
> hello \foo there
>   \end{slide}
> \end{document}
> 
> only outputs a single page (which says "hello").
> Any idea what might be going on ?

Both seem to be ideosyncrasies of seminar. I get the same results
when replacing 

\documentclass[display]{powersem}

by 

\documentclass[slidesonly]{seminar}

I'm on the verge of taking the automatic activation of 
`slidesonly' by powersem's display option out for the
first alpha version, but it'll need some more meditation 
on my part ;-) .

It seemed natural enough in the beginning, but I didn't
consider all side effects...

Alan showed how to circumvent the myslide problem, for
the other one I'm at a loss also.

regards
Stephan

-- 
  Stephan Lehmke [EMAIL PROTECTED]
  Fachbereich Informatik, LS I   Tel. +49 231 755 6434 
  Universitaet Dortmund  FAX  6555
  D-44221 Dortmund, Germany 




Re: calling \begin{slide} from a new env or a macro.

2001-06-15 Thread Stephan Lehmke

Alan Williams wrote on Fri, 15 Jun 2001 08:32:57 +0100:
>
> Stefan> I seem to be unable to use \begin{slide} and\end{slide}
> Stefan> from a \newenvironment or a \newcommand when using
> Stefan> powersem with the display option.  More specifically
> Stefan> something like:
> 
> [I havent got time to check this now Im afraid, but..]
> 
> 
> Is this possibly a seminar problem rather than a texpower problem?

A powersem `problem' really, which will activate seminar's
slidesonly option if the display option is given.

regards
Stephan

-- 
  Stephan Lehmke [EMAIL PROTECTED]
  Fachbereich Informatik, LS I   Tel. +49 231 755 6434 
  Universitaet Dortmund  FAX  6555
  D-44221 Dortmund, Germany 




Re: calling \begin{slide} from a new env or a macro.

2001-06-15 Thread Stefan Monnier

> "Alan" == Alan Williams <[EMAIL PROTECTED]> writes:
> Have you `registered' myslide as a slide environment, using
> \addtoslidelist{myslide} I think? Otherwise seminar will just think
> you're doing notes rather than slides. Check the seminar documentation.

Great!  Indeed it solves the problem for \newenvironment.
Now, if I could find something equivalent for the \newcommand case...

Thank you,


Stefan




Re: calling \begin{slide} from a new env or a macro.

2001-06-15 Thread Alan Williams

Stefan,

Stefan> I seem to be unable to use \begin{slide} and\end{slide}
Stefan> from a \newenvironment or a \newcommand when using
Stefan> powersem with the display option.  More specifically
Stefan> something like:

[I havent got time to check this now Im afraid, but..]


Is this possibly a seminar problem rather than a texpower problem?

Have you `registered' myslide as a slide environment, using
\addtoslidelist{myslide} I think? Otherwise seminar will just think
you're doing notes rather than slides. Check the seminar
documentation.

regards,

Alan.
--
 Dr. A Williams, Room 2.107,  email: [EMAIL PROTECTED] 
 Department of Computer Science   Tel: +44 (0) 161-275-6152
 University of Manchester,fax: +44 (0) 161-275-6204
 Manchester, M13 9PL, ENGLAND