[Problem] \fancypage, \fancyput, \LandScape, etc. in FancyBox package

Denis Girou Denis.Girou at idris.fr
Fri May 16 21:52:59 CEST 1997


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

  I know since a long time for one, and for others notice recently, that there
are today several major problems with the FancyBox package. The origin is
always that it was not adapted to internal changes of recent versions of
LaTeX.

  The \fancypage and \thisfancypage doesn't work and produce the following
error message:

! Emergency stop.
\GenericError  ...                                
                                                    #4  \errhelp \@err@     ...

  A test case is:

\documentclass{article}

\usepackage{fancybox}

%\fancypage{\setlength{\fboxsep}{1cm}\ovalbox}{}
\thisfancypage{\setlength{\fboxsep}{1cm}\ovalbox}{}

\begin{document}
  Text.
\end{document}

  Otherwise, there is the same problem that we described in the README of the
PSTricks 97 distribution with Seminar, relative to the \@begindvi now required
by LaTeX to allow dvips to include the PostScript header files. This problem
concern \fancypage, \thisfancypage, \fancyput, \thisfancyput, and all the
LandScape, Landscape and Landscape* environments and commands.

  A test case for one of these problems is:

\documentclass{article}

\usepackage{pstricks}
\usepackage{fancybox}

%\fancyput(8cm,-11cm){\rput{54}{\scalebox{15}{\lightgray DRAFT 1}}}
\thisfancyput(8cm,-11cm){\rput{54}{\scalebox{15}{\lightgray DRAFT 1}}}

\begin{document}
  Text.
\end{document}


  So, required corrections are:
 
\def\fileversion{1.0/97 patch 1}
\def\filedate{97/05/16}

......................................................................

\typeout{Style option: `fancybox' v\fileversion \space  <\filedate> (tvz)}

% DG/SR modification begin - May 16, 1997
\providecommand\@begindvi{} % For rather old versions of LaTeX 2e
% Problem FancyBox 1.0 <-> LaTeX 2e with the \fancyput macro
\newcount\c at tocdepth
% DG/SR modification end

......................................................................

\def\fancypage#1#2{%
% DG/SR modification begin - May 16, 1997
  \@begindvi                    % Need today by LaTeX 2e
% DG/SR modification end
  \def\the at fancypage{#1}%
  \def\the@@fancypage{#2}%
  \def\@outputpage{\fb at outputpage}}

\def\thisfancypage#1#2{%
% DG/SR modification begin - May 16, 1997
  \@begindvi                    % Need today by LaTeX 2e
% DG/SR modification end
  \gdef\@outputpage{\fb at outputpage}%
  \gdef\this at fancypage{\def\the at fancypage{#1}\def\the@@fancypage{#2}}}

......................................................................

\def\fancyput{%
% DG/SR modification begin - May 16, 1997
  \@begindvi                    % Need today by LaTeX 2e
% DG/SR modification end
  \def\@outputpage{\fb at outputpage}
  \@ifstar{\@testtrue\@fancyput}{\@testfalse\@fancyput}}
\def\@fancyput{\@ifnextchar({\@@fancyput}{\@@fancyput(\z@,\z@)}}
\def\@@fancyput(#1,#2)#3{%
  \if at test
    \expandafter\the at fancyput\expandafter{\the\the at fancyput\do{#1}{#2}{#3}}%
  \else
    \the at fancyput{\do{#1}{#2}{#3}}%
  \fi
  \gdef\fancyput at flag{\z@}}

\def\thisfancyput{%
% DG/SR modification begin - May 16, 1997
  \@begindvi                    % Need today by LaTeX 2e
% DG/SR modification end

......................................................................

\def\@Landscape#1#2#3{%
% DG/SR modification begin - May 16, 1997
  \@begindvi                    % Need today by LaTeX 2e
% DG/SR modification end

......................................................................

\def\LandScape#1{%
% DG/SR modification begin - May 16, 1997
  \@begindvi                    % Need today by LaTeX 2e
% DG/SR modification end
  \clearpage


D.G.

-----------------------------------------------------------------------------
To [un]subscribe to this list, send mail to pstricks-request at mail.tug.org
Leave the subject line blank and in the body put the line
[un]subscribe <email-address>
For help, put the word "help" in the message body.
To obtain current archive, put the words "get current" in the message body.
-----------------------------------------------------------------------------



More information about the PSTricks mailing list