|
|
Trouble with raw postscript in latex
I have a latex file (for my free 1300 page physics textbook)
that produces a flip movie, i.e. an image on every page.
I do this in raw postscript. (See part of the code below.)
But if I change one line only, namely from
\includeonly{C-2-CLSA}
to
\includeonly{C-0-INTR,C-2-CLSA}
the pattern disappears. Why?
After all, the pattern is only two commands,
one definition of a macro, and a \special
command. I do not use or redefine the
macro \cscscspage anywhere else.
So why does the pattern disappear?
My guess is that something strange happens with c@page.
I thought this is just the page number.
Any help is appreciated!
Christoph
Code: (works!)
\documentclass{motionmountain}
\includeonly{C-2-CLSA}
\begin{document}
%
\makeatletter%
\def\cscscspage{\the\c@page \space }%
%
\special{!userdict begin
.... some raw pstscript code deleted ...
% 30 means that the counter Pmv is the page number minus 30
/Pmv \cscscspage 30 sub def
.... more raw pstscript code deleted that is inside a bop-hook,
and based on the counter Pmv
}
\makeatother%
..... Rest of document ....
***
|
|
0
|
|
|
|
Reply
|
chri_schiller (136)
|
12/10/2006 6:52:32 PM |
|
"Christoph Schiller" <chri_schiller@yahoo.com> writes:
> But if I change one line only, namely from
> \includeonly{C-2-CLSA}
> to
> \includeonly{C-0-INTR,C-2-CLSA}
> the pattern disappears. Why?
It would appear you have something in the C-0-INTR file that
breaks the pattern. Perhaps something to do with pagenumbering.
--
Donald Arseneau asnd@triumf.ca
|
|
0
|
|
|
|
Reply
|
Donald
|
12/11/2006 8:55:13 AM
|
|
Donald Arseneau wrote:
> "Christoph Schiller" <chri_schiller@yahoo.com> writes:
> > But if I change one line only, namely from
> > \includeonly{C-2-CLSA}
> > to
> > \includeonly{C-0-INTR,C-2-CLSA}
> > the pattern disappears. Why?
>
> It would appear you have something in the C-0-INTR file that
> breaks the pattern. Perhaps something to do with pagenumbering.
I found the culprit: it was a \pagecolor{white} command.
That overprints the movie. I have to redesign certain things.
Regards
Christoph Schiller
|
|
0
|
|
|
|
Reply
|
Christoph
|
12/11/2006 9:37:49 PM
|
|
|
2 Replies
164 Views
(page loaded in 0.053 seconds)
|
|
|
|
|
|
|
|
|