Bug#63797: dvips produces bad postcript
From: Brian
Subject: Bug#63797:
Date: 22
> >>>>> "C" == C M Connelly <c@eskimo.com> writes:
>
> C> As Atsuhito has pointed out, the \overlay command is similar to
> C> commands such as \bfseries (what George Gratzer calls ``command
> C> declarations'') -- these commands affect everything following
> C> their appearance until their scope is closed. That means that
> C> you *must* create a scope for the command using either braces
> C> or environment declarations (``special braces'').
>
> I would have though that the \begin{slide}...\end{slide} should be
> sufficient for this scope?
In general, \end of environments would be sufficient but
it is not *absolutely* true.
I did not check but perhaps \end{slide} will do something
before ending its group so it is not surprising that
\begin{slide}...\end{slide} is not sufficient.
> I would have thought that as soon as the compiler hit the \end{slide}
> item, everything including the overlay should be reset.
Before resetting the overlay, \end{slide} will do extra works
for itself and they might cause trouble.
Moreover simple font changing like \bfseries will be reset well
with almost every \end{foo} but \overlay{} might do more complicated
work so the situation is more difficult.
(But please note that even for \bfseries I can not say that
this is absolutely true.)
> For example, change your example to have some text underneath:
>
> --- cut ---
> \begin{slide}
> \overlay{0} What is Crashing?
> \begin{itemize}
> \overlay{1}\item Crashing is a bad thing.
> \overlay{2}\item Why is crashing important?
> \overlay{3}\item Working around crashes.
> \end{itemize}
> \end{slide}
>
> hello is anyone there?
> --- cut ---
>
> viewing page 1,1a,1b,1c all work fine. Viewing the last page (the
> notes) is what causes it to crash.
>
> This fixes the problem:
>
> --- cut ---
> \begin{slide}
> {\overlay{0} What is Crashing?
> \begin{itemize}
> \overlay{1}\item Crashing is a bad thing.
> \overlay{2}\item Why is crashing important?
> \overlay{3}\item Working around crashes.
> \end{itemize}}
> \end{slide}
>
> hello is anyone there?
> --- cut ---
At least, from the above examples, we can conclude that "grouping"
is the essential point.
I feel that you ask too much to TeX macros.
> In fact, the definition of \BOL looks rather simple:
> /BOL { BeginOL } def
>
> Will investigate in more detail when I next get a chance.
I do not know about PostScript at all so I hope you will find
some solution.
Regards, 2000.5.23
--
Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>
Department of Math., Tokushima Univ.
Reply to: